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
36 changes: 36 additions & 0 deletions doc/Editing-the-Wiki.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,42 @@ You can then add the image in markdown using the URL `test.png`:

![alternative text](test.png)

## Mermaid Diagrams
Mermaid diagrams can be added using the following syntax (example):
````
```{mermaid}
---
title: Simple sample
---
stateDiagram-v2
[*] --> Document
Develop_software --> Document
Document --> Develop_software
Develop_software --> Test_software
Test_software --> Crash
Crash --> Develop_software
Test_software --> [*]
```
````

will render as:
```{mermaid}
---
title: Simple sample
---
stateDiagram-v2
[*] --> Document
Document --> Develop_software
Develop_software --> Document
Develop_software --> Test_software
Test_software --> Crash
Crash --> Develop_software
Test_software --> [*]
```


The Mermaid syntax is documented [here](https://mermaid.js.org/intro/syntax-reference.html).

## Spellchecking

The wiki has a built-in spellchecker, which will automatically run when a commit
Expand Down
3 changes: 3 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
"sphinx.ext.viewcode",
# Redirects
"sphinx_reredirects",
# Mermaid diagrams
"sphinxcontrib.mermaid",
]
mermaid_d3_zoom = True
napoleon_google_docstring = True
napoleon_numpy_docstring = False

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies = [
"sphinxcontrib-spelling",
"sphinx-reredirects",
"pytest",
"sphinxcontrib-mermaid"
]

[project.optional-dependencies]
Expand Down