Mermaid graph support for sphinx generated documentations
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_mermaid-0.0.8-py2.py3-none-any.whl.
File metadata
- Download URL: sphinx_mermaid-0.0.8-py2.py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03cbad30c04130e5644c5112b4b2da7850d142f897876ac5aea83c8b5965bf76
|
|
| MD5 |
fc33f5e6a7b94d639a6db68541ea66bf
|
|
| BLAKE2b-256 |
bd6596cb3a4117ea2a4ead808377259659885ea0fe5e539a9f29fc1c8a723ed1
|