Example Markdown File#
Sphinx Placeholder#
just making this as a placeholder to test basic documentation building
Mermaid Example#
Sphinx can build Mermaid diagrams thanks to
sphinxcontrib.mermaid
andmyst-parser
(included withmyst-nb
)if
myst_fence_as_directive = ["mermaid"]
is set inconf.py
, Sphinx will render diagrams created with triple backtick mermaid code blocks (otherwise you’ll get the errorPygments lexer name 'mermaid is not known
while building docs)I had to add custom.css with
!important
flags to get the arrows to show up against the background in Sphinx Book Theme’s Dark Mode, as mermaid themes and regular css styles were being overridden by really high-specificity css (something must be set really late in the process, maybe even live when pressing the Dark Mode button)
graph LR A-->B B-->C