Skip to content

Commit a286ebd

Browse files
authored
docs: make section card grids includable from the top-level gallery (#11)
1 parent 05b0f51 commit a286ebd

2 files changed

Lines changed: 14 additions & 10 deletions

File tree

examples/index.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,30 @@
22

33
Examples from real datasets you'd actually analyse.
44

5+
<!-- gallery-cards-start -->
56
::::{grid} 1 2 2 2
67
:gutter: 3
78

89
:::{grid-item-card} Visium mouse brain
9-
:link: visium_mouse_brain
10+
:link: /notebooks/examples/visium_mouse_brain
1011
:link-type: doc
11-
:img-top: ../_static/img/visium_mouse_brain.png
12+
:img-top: /notebooks/_static/img/visium_mouse_brain.png
1213

1314
Render H&E tissue, overlay spots, color by gene expression and by cluster,
1415
and finish with a publication-style figure.
1516
:::
1617

1718
:::{grid-item-card} Interactive region annotation
18-
:link: interactive_annotate
19+
:link: /notebooks/examples/interactive_annotate
1920
:link-type: doc
20-
:img-top: ../_static/img/interactive_annotate.png
21+
:img-top: /notebooks/_static/img/interactive_annotate.png
2122

2223
Draw regions of interest directly on a `spatialdata-plot` canvas with
2324
`sdata.pl.annotate(...)` and persist them as a `ShapesModel` element.
2425
:::
2526

2627
::::
28+
<!-- gallery-cards-end -->
2729

2830
```{toctree}
2931
:hidden:

tutorials/index.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,41 @@
22

33
Entry-point material for learning the API on synthetic data.
44

5+
<!-- gallery-cards-start -->
56
::::{grid} 1 2 2 2
67
:gutter: 3
78

89
:::{grid-item-card} Getting started
9-
:link: getting_started
10+
:link: /notebooks/tutorials/getting_started
1011
:link-type: doc
11-
:img-top: ../_static/img/getting_started.png
12+
:img-top: /notebooks/_static/img/getting_started.png
1213

1314
The fluent `.pl` API, layering, and styling on the in-memory `blobs`
1415
dataset. Ideal first read.
1516
:::
1617

1718
:::{grid-item-card} Colour and palettes
18-
:link: color_and_palette
19+
:link: /notebooks/tutorials/color_and_palette
1920
:link-type: doc
20-
:img-top: ../_static/img/color_and_palette.png
21+
:img-top: /notebooks/_static/img/color_and_palette.png
2122

2223
How `color=` resolves, the v0.3.0 `groups` behaviour, and building
2324
perceptually well-spaced or colourblind-safe palettes with
2425
`make_palette` and `make_palette_from_data`.
2526
:::
2627

2728
:::{grid-item-card} Speeding up rendering
28-
:link: performance
29+
:link: /notebooks/tutorials/performance
2930
:link-type: doc
30-
:img-top: ../_static/img/performance.png
31+
:img-top: /notebooks/_static/img/performance.png
3132

3233
Keep rendering fast on large data: automatic rasterization and scale
3334
selection for images, and the `datashader` backend for large collections
3435
of shapes and points.
3536
:::
3637

3738
::::
39+
<!-- gallery-cards-end -->
3840

3941
```{toctree}
4042
:hidden:

0 commit comments

Comments
 (0)