Feature Request: Configurable Admonitions Mapping in mkdocs.yaml
for mkdocstrings
#664
Labels
feature
New feature or request
mkdocs.yaml
for mkdocstrings
#664
Hello
mkdocstrings
maintainers and the wider community,First and foremost, a big thank you for developing
mkdocstrings
. It's been instrumental in producing stunning documentation for our projects!I'd like to discuss a potential feature that could enhance how docstrings are rendered, specifically regarding the automatic creation of admonitions.
Feature Enhancement
The current mechanism of generating admonitions from docstrings automatically is quite innovative, yet it doesn't provide granular control over how distinct docstring sections are rendered in the final output.
I propose an enhancement to allow mapping specific docstring sections to defined admonitions directly within the
mkdocs.yaml
. This could be realized with configuration options like the following:Notes:
could automatically transform intonote
admonitions.See Also:
could becomeinfo
admonitions.Warning:
would be rendered aswarning
admonitions.This added layer of customization would grant developers enhanced control over their documentation's presentation and prove exceedingly beneficial for extensive projects with consistent formatting needs.
Thank you for taking the time to consider this feature enhancement!
The text was updated successfully, but these errors were encountered: