Mermaid support for Sphinx documentation
Mermaid graphs support for sphinx generated documentations.
- GitHub repository at Doreapp/sphinx-mermaid
- Pypi package sphinx-mermaid
- Example of usage: GitHub pages of this repo
Install
pip install sphinx-mermaid
Setup in conf.py
In the conf.py file of your documentation, add the extension:
extensions = [
...,
'sphinxmermaid'
]
Config Options
sphinxmermaid_mermaid_init can be set as a dictionary of values.
These will be passed to mermaid.initialize(). Find more info at
MermaidJS
Example:
sphinxmermaid_mermaid_init = {
'theme': 'base',
'themeVariables': {
'primaryColor': '#BB2528',
'primaryTextColor': '#fff',
'primaryBorderColor': '#7C0000',
'lineColor': '#F8B229',
'secondaryColor': '#006100',
'tertiaryColor': '#fff'
}
}
Usage
In your rst (or md) files, use the directive just like:
.. mermaid ::
graph TD
A --> B
B -- Label --> C
Metadata
Release files for sphinx-mermaid 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinx_mermaid-0.0.8-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for sphinx_mermaid-0.0.8-py2.py3-none-any.whl |
Release files / sphinx_mermaid-0.0.8-py2.py3-none-any.whl
| Download URL | sphinx_mermaid-0.0.8-py2.py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
03cbad30c04130e5644c5112b4b2da7850d142f897876ac5aea83c8b5965bf76
|
|
BLAKE2b-256 checksum How to use checksums |
bd6596cb3a4117ea2a4ead808377259659885ea0fe5e539a9f29fc1c8a723ed1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.2
|
Security for sphinx-mermaid 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.