-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue-153: #153
- Loading branch information
Showing
25 changed files
with
139 additions
and
54 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
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
37 changes: 37 additions & 0 deletions
37
src/mkdocstrings_handlers/python/templates/material/_base/backlinks.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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{#- Template for backlinks. | ||
This template renders backlinks. | ||
Context: | ||
backlinks (Mapping[str, Iterable[str]]): The backlinks to render. | ||
config (dict): The configuration options. | ||
-#} | ||
|
||
{% block logs scoped %} | ||
{#- Logging block. | ||
This block can be used to log debug messages, deprecation messages, warnings, etc. | ||
-#} | ||
{{ log.debug("Rendering backlinks") }} | ||
{% endblock logs %} | ||
|
||
<div class="doc doc-backlinks"> | ||
{% for backlink_type, backlink_list in backlinks | dictsort %} | ||
<b class="doc doc-backlink-type">{{ verbose_type[backlink_type] }}:</b> | ||
<ul class="doc doc-backlink-list"> | ||
{% for backlink in backlink_list | sort(attribute="crumbs") %} | ||
<li class="doc doc-backlink"> | ||
{% for crumb in backlink.crumbs %} | ||
<span class="doc doc-backlink-crumb"> | ||
{% if crumb.url and crumb.title %} | ||
<a href="{{ crumb.url }}">{{ crumb.title | safe }}</a> | ||
{% elif crumb.title %} | ||
<span>{{ crumb.title | safe }}</span> | ||
{% endif %} | ||
</span> | ||
{% endfor %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endfor %} | ||
</div> |
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
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
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
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
Oops, something went wrong.