jbms / sphinx-immaterial

Adaptation of the popular mkdocs-material material design theme to the sphinx documentation system
https://jbms.github.io/sphinx-immaterial/
Other
177 stars 28 forks source link

document the `theme_result` extension #323

Closed 2bndy5 closed 3 weeks ago

2bndy5 commented 4 months ago

I should document the rst-example directive (& its myst-example alias for .md doc sources).

I keep seeing possible use cases for this directive in user projects/examples. But there is no documentation to make users aware that the sphinx_immaterial.theme_result extension exists and what it provides.

For those passing by, the rst-example directive works by taking RST code as content and rendering an RST code block followed by a rendition of the RST code using the given sphinx builder (HTML-based is preferred/tested). This is used liberally throughout our docs and avoids the common copy-and-paste that doc authors would normally have to do to achieve a similar result.