Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: 2d2a72d
_commit: 02f55bd
_src_path: https://github.com/python-project-templates/base.git
add_docs: true
add_extension: js
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
persist-credentials: false

- name: Setup Python
uses: actions-ext/python/setup@c8228d827a81b9f8c808825328af361c45461ba3
uses: actions-ext/python/setup@c7ef9cbf13bc854a8d1422e9f8c6ee7a7ce1b911
with:
version: "3.11"

- name: Setup Node.js
uses: actions-ext/node/setup@03c9f6b2d9c9fa2c26cfa22d0fa379a69329b319
uses: actions-ext/node/setup@8bcebee998923fcc26f5854b4fd05ea378b58262
with:
version: 22.x

Expand Down Expand Up @@ -79,12 +79,12 @@ jobs:
run: make dist

- name: Test wheel
uses: actions-ext/python/test-wheel@c8228d827a81b9f8c808825328af361c45461ba3
uses: actions-ext/python/test-wheel@c7ef9cbf13bc854a8d1422e9f8c6ee7a7ce1b911
with:
module: sphinx_pele

- name: Test source distribution
uses: actions-ext/python/test-sdist@c8228d827a81b9f8c808825328af361c45461ba3
uses: actions-ext/python/test-sdist@c7ef9cbf13bc854a8d1422e9f8c6ee7a7ce1b911
with:
module: sphinx_pele

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
persist-credentials: false

- name: Setup Python
uses: actions-ext/python/setup@c8228d827a81b9f8c808825328af361c45461ba3
uses: actions-ext/python/setup@c7ef9cbf13bc854a8d1422e9f8c6ee7a7ce1b911
with:
version: "3.11"

- name: Download distributions
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
pattern: dist
merge-multiple: true
Expand Down
28 changes: 16 additions & 12 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ The tutorial takes you from an empty directory to a page with a captioned,
zoomable diagram.

```{toctree}
:maxdepth: 1
:caption: Tutorial

---
maxdepth: 1
caption: Tutorial
---
src/tutorial
```

Expand All @@ -21,9 +22,10 @@ These guides cover existing Sphinx projects, visual customization, migration,
and local checks.

```{toctree}
:maxdepth: 1
:caption: How-to guides

---
maxdepth: 1
caption: How-to guides
---
src/usage
src/styling
src/migration
Expand All @@ -37,9 +39,10 @@ The reference records supported settings and their precedence. The example
pages pair reusable source with output from the bundled renderer.

```{toctree}
:maxdepth: 1
:caption: Reference

---
maxdepth: 1
caption: Reference
---
src/configuration
src/examples
src/rst-examples
Expand All @@ -51,8 +54,9 @@ Learn why diagrams render in the browser and what that means for layout,
configuration, and non-HTML output.

```{toctree}
:maxdepth: 1
:caption: Explanation

---
maxdepth: 1
caption: Explanation
---
src/rendering
```
80 changes: 58 additions & 22 deletions docs/src/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ and [how to add diagrams](usage.md). Styling recipes are in
Diagram frontmatter supplies a title, layout settings, font size, and a CSS variable.

```{literalinclude} examples/publishing.mmd
:language: text
---
language: text
---
```

```{mermaid} examples/publishing.mmd
Expand All @@ -25,35 +27,45 @@ Diagram frontmatter supplies a title, layout settings, font size, and a CSS vari
A caption, named reference, accessible label, width, and zoom controls are attached by the Sphinx directive.

```{literalinclude} examples/sequence.mmd
:language: text
---
language: text
---
```

```{mermaid} examples/sequence.mmd
:name: request-flow
:caption: A **request** and response.
:alt: Client requests a page from the server.
:zoom: true
:width: 75%
---
name: request-flow
caption: A **request** and response.
alt: Client requests a page from the server.
zoom: true
width: 75%
---
```

## External file

The same UTF-8 file supplies the source listing and diagram. Sphinx tracks it as a build dependency.

```{literalinclude} publishing.mmd
:language: text
---
language: text
---
```

```{mermaid} publishing.mmd
:caption: Loaded from a Mermaid document.
---
caption: Loaded from a Mermaid document.
---
```

## Pie chart

A chart with two labeled slices.

```{literalinclude} examples/pie.mmd
:language: text
---
language: text
---
```

```{mermaid} examples/pie.mmd
Expand All @@ -64,7 +76,9 @@ A chart with two labeled slices.
Classes, members, and a composition relationship.

```{literalinclude} examples/classes.mmd
:language: text
---
language: text
---
```

```{mermaid} examples/classes.mmd
Expand All @@ -75,7 +89,9 @@ Classes, members, and a composition relationship.
A documentation collection with pages and embedded diagrams.

```{literalinclude} examples/entities.mmd
:language: text
---
language: text
---
```

```{mermaid} examples/entities.mmd
Expand All @@ -86,7 +102,9 @@ A documentation collection with pages and embedded diagrams.
Transitions through a review cycle, including a return to the draft state.

```{literalinclude} examples/states.mmd
:language: text
---
language: text
---
```

```{mermaid} examples/states.mmd
Expand All @@ -97,7 +115,9 @@ Transitions through a review cycle, including a return to the draft state.
Fixed dates and a disabled today marker keep this example stable across builds.

```{literalinclude} examples/gantt.mmd
:language: text
---
language: text
---
```

```{mermaid} examples/gantt.mmd
Expand All @@ -108,7 +128,9 @@ Fixed dates and a disabled today marker keep this example stable across builds.
Scores describe how a reader experiences each part of a documentation task.

```{literalinclude} examples/journey.mmd
:language: text
---
language: text
---
```

```{mermaid} examples/journey.mmd
Expand All @@ -119,7 +141,9 @@ Scores describe how a reader experiences each part of a documentation task.
A documentation branch merged back into main.

```{literalinclude} examples/git-history.mmd
:language: text
---
language: text
---
```

```{mermaid} examples/git-history.mmd
Expand All @@ -130,7 +154,9 @@ A documentation branch merged back into main.
A hierarchy of documentation topics.

```{literalinclude} examples/mindmap.mmd
:language: text
---
language: text
---
```

```{mermaid} examples/mindmap.mmd
Expand All @@ -141,7 +167,9 @@ A hierarchy of documentation topics.
Milestones grouped by month.

```{literalinclude} examples/timeline.mmd
:language: text
---
language: text
---
```

```{mermaid} examples/timeline.mmd
Expand All @@ -152,7 +180,9 @@ Milestones grouped by month.
Work items positioned by effort and reader impact.

```{literalinclude} examples/quadrants.mmd
:language: text
---
language: text
---
```

```{mermaid} examples/quadrants.mmd
Expand All @@ -163,7 +193,9 @@ Work items positioned by effort and reader impact.
Values represent reader traffic between documentation sections.

```{literalinclude} examples/sankey.mmd
:language: text
---
language: text
---
```

```{mermaid} examples/sankey.mmd
Expand All @@ -174,7 +206,9 @@ Values represent reader traffic between documentation sections.
Bars show completed examples over four weeks.

```{literalinclude} examples/xy-chart.mmd
:language: text
---
language: text
---
```

```{mermaid} examples/xy-chart.mmd
Expand All @@ -185,7 +219,9 @@ Bars show completed examples over four weeks.
A test element verifies a rendering requirement.

```{literalinclude} examples/requirements.mmd
:language: text
---
language: text
---
```

```{mermaid} examples/requirements.mmd
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ develop = [
"hatch-js",
"hatchling",
"mdformat",
"mdformat-frontmatter",
"mdformat-myst",
"myst-parser>=3",
"mdformat-tables>=1",
"pytest",
Expand Down