Skip to content

Commit f5f44cf

Browse files
committed
docs: split "From Zero to Zarr" into four pages
Split the single data-model guide into a landing page plus Part I/II/III subpages, with section nav and cross-page links. Rework the shard diagram as an HTML table, merge side-by-side figure pairs, caption every figure, and add per-page figure numbering and mermaid sizing via CSS.
1 parent 6bf1fba commit f5f44cf

6 files changed

Lines changed: 817 additions & 737 deletions

File tree

docs/overrides/stylesheets/extra.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,34 @@
207207
margin: 0 !important;
208208
min-width: auto !important;
209209
}
210+
211+
/* Automatic per-page figure numbering.
212+
The counter resets on each page's content root and increments once per
213+
<figure>, so every figcaption is prefixed with "Figure N.". */
214+
.md-typeset {
215+
counter-reset: figure;
216+
}
217+
218+
.md-typeset figure {
219+
counter-increment: figure;
220+
}
221+
222+
.md-typeset figure > figcaption::before {
223+
content: "Figure " counter(figure) ". ";
224+
font-weight: 700;
225+
}
226+
227+
/* Mermaid diagrams wrapped in a <figure>: Material sets figures to
228+
width:fit-content, so a diagram with a small natural size renders tiny and
229+
hard to read. For figures tagged .mermaid-figure, let the figure span the
230+
content column and scale the SVG up to fill it (overriding mermaid's inline
231+
max-width), keeping landscape diagrams legible. */
232+
.md-typeset figure.mermaid-figure {
233+
width: 100%;
234+
}
235+
236+
.md-typeset figure.mermaid-figure .mermaid svg {
237+
width: 100%;
238+
max-width: 100% !important;
239+
height: auto;
240+
}

0 commit comments

Comments
 (0)