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

Styling version directives #246

Closed 2bndy5 closed 1 year ago

2bndy5 commented 1 year ago

resolves #243

This does not override the original sphinx directives versionadded, versionchanged, and deprecated. Rather, the CSS styles have been adjusted to render these directives as admonitions. The default styles can be customized using the custom admonitions feature, but only color and icon will apply (as long as the name matches the directive name).

Also adds the italicized style inherent in Sphinx' basic theme CSS.

Updated admonitions.rst accordingly.

jbms commented 1 year ago

This looks great, thanks!