-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
666 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/mkdocstrings_handlers/python/templates/material/_base/children.html.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/mkdocstrings_handlers/python/templates/material/_base/docstring.html.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 14 additions & 1 deletion
15
src/mkdocstrings_handlers/python/templates/material/_base/docstring/admonition.html.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
{#- Template for admonitions in docstrings. | ||
This template renders admonitions using the `details` HTML element. | ||
Context: | ||
section (griffe.docstrings.dataclasses.DocstringSectionAdmonition): The section to render. | ||
-#} | ||
|
||
{% block logs scoped %} | ||
{#- Logging block. | ||
This block can be used to log debug messages, deprecation messages, warnings, etc. | ||
-#} | ||
{{ log.debug("Rendering admonition") }} | ||
{% endblock logs %} | ||
|
||
<details class="{{ section.value.kind }}" open> | ||
<summary>{{ section.title|convert_markdown(heading_level, html_id, strip_paragraph=True) }}</summary> | ||
{{ section.value.contents|convert_markdown(heading_level, html_id) }} | ||
</details> | ||
</details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/mkdocstrings_handlers/python/templates/material/_base/docstring/examples.html.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.