-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Update
*.html
top-level templates to extend the `*.html.j…
…inja` base templates Issue-151: #151
- Loading branch information
Showing
43 changed files
with
43 additions
and
434 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/attribute.html
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 +1 @@ | ||
{% extends "_base/attribute.html" %} | ||
{% extends "_base/attribute.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/children.html
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 +1 @@ | ||
{% extends "_base/children.html" %} | ||
{% extends "_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{% extends "_base/class.html" %} | ||
{% extends "_base/class.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/docstring.html
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 +1 @@ | ||
{% extends "_base/docstring.html" %} | ||
{% extends "_base/docstring.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/docstring/admonition.html
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 +1 @@ | ||
{% extends "_base/docstring/admonition.html" %} | ||
{% extends "_base/docstring/admonition.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/docstring/attributes.html
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 +1 @@ | ||
{% extends "_base/docstring/attributes.html" %} | ||
{% extends "_base/docstring/attributes.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/docstring/classes.html
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 +1 @@ | ||
{% extends "_base/docstring/classes.html" %} | ||
{% extends "_base/docstring/classes.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/docstring/examples.html
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 +1 @@ | ||
{% extends "_base/docstring/examples.html" %} | ||
{% extends "_base/docstring/examples.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/docstring/functions.html
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 +1 @@ | ||
{% extends "_base/docstring/functions.html" %} | ||
{% extends "_base/docstring/functions.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/docstring/modules.html
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 +1 @@ | ||
{% extends "_base/docstring/modules.html" %} | ||
{% extends "_base/docstring/modules.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/docstring/other_parameters.html
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 +1 @@ | ||
{% extends "_base/docstring/other_parameters.html" %} | ||
{% extends "_base/docstring/other_parameters.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/docstring/parameters.html
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 +1 @@ | ||
{% extends "_base/docstring/parameters.html" %} | ||
{% extends "_base/docstring/parameters.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/docstring/raises.html
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 +1 @@ | ||
{% extends "_base/docstring/raises.html" %} | ||
{% extends "_base/docstring/raises.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/docstring/receives.html
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 +1 @@ | ||
{% extends "_base/docstring/receives.html" %} | ||
{% extends "_base/docstring/receives.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/docstring/returns.html
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 +1 @@ | ||
{% extends "_base/docstring/returns.html" %} | ||
{% extends "_base/docstring/returns.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/docstring/warns.html
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 +1 @@ | ||
{% extends "_base/docstring/warns.html" %} | ||
{% extends "_base/docstring/warns.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/docstring/yields.html
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 +1 @@ | ||
{% extends "_base/docstring/yields.html" %} | ||
{% extends "_base/docstring/yields.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/expression.html
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 +1 @@ | ||
{% extends "_base/expression.html" %} | ||
{% extends "_base/expression.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/function.html
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 +1 @@ | ||
{% extends "_base/function.html" %} | ||
{% extends "_base/function.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/labels.html
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 +1 @@ | ||
{% extends "_base/labels.html" %} | ||
{% extends "_base/labels.html.jinja" %} |
11 changes: 1 addition & 10 deletions
11
src/mkdocstrings_handlers/python/templates/material/language.html
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,10 +1 @@ | ||
<!-- Import translations for given language and fallback --> | ||
{% set lang_pth = "languages/" ~ locale ~ ".html" %} | ||
{% if lang_pth is existing_template %} | ||
{% import lang_pth as lang %} | ||
{% import "languages/en.html" as fallback %} | ||
{% macro t(key) %}{{ lang.t(key) or fallback.t(key) }}{% endmacro %} | ||
{% else %} | ||
{% import "languages/en.html" as lang %} | ||
{% macro t(key) %}{{ lang.t(key) }}{% endmacro %} | ||
{% endif %} | ||
{% extends "_base/language.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/languages/en.html
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 +1 @@ | ||
{% extends "_base/languages/en.html" %} | ||
{% extends "_base/languages/en.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/languages/ja.html
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 +1 @@ | ||
{% extends "_base/languages/ja.html" %} | ||
{% extends "_base/languages/ja.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/languages/zh.html
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 +1 @@ | ||
{% extends "_base/languages/zh.html" %} | ||
{% extends "_base/languages/zh.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/module.html
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 +1 @@ | ||
{% extends "_base/module.html" %} | ||
{% extends "_base/module.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/signature.html
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 +1 @@ | ||
{% extends "_base/signature.html" %} | ||
{% extends "_base/signature.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/summary.html
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 +1 @@ | ||
{% extends "_base/summary.html" %} | ||
{% extends "_base/summary.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/summary/attributes.html
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 +1 @@ | ||
{% extends "_base/summary/attributes.html" %} | ||
{% extends "_base/summary/attributes.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/summary/classes.html
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 +1 @@ | ||
{% extends "_base/summary/classes.html" %} | ||
{% extends "_base/summary/classes.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/summary/functions.html
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 +1 @@ | ||
{% extends "_base/summary/functions.html" %} | ||
{% extends "_base/summary/functions.html.jinja" %} |
2 changes: 1 addition & 1 deletion
2
src/mkdocstrings_handlers/python/templates/material/summary/modules.html
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 +1 @@ | ||
{% extends "_base/summary/modules.html" %} | ||
{% extends "_base/summary/modules.html.jinja" %} |
34 changes: 1 addition & 33 deletions
34
src/mkdocstrings_handlers/python/templates/readthedocs/docstring/attributes.html
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,33 +1 @@ | ||
{{ log.debug() }} | ||
|
||
{% import "language.html" as lang with context %} | ||
|
||
<table class="field-list"> | ||
<colgroup> | ||
<col class="field-name" /> | ||
<col class="field-body" /> | ||
</colgroup> | ||
<tbody valign="top"> | ||
<tr class="field"> | ||
<th class="field-name">{{ section.title or lang.t("Attributes:") }}</th> | ||
<td class="field-body"> | ||
<ul class="first simple"> | ||
{% for attribute in section.value %} | ||
<li> | ||
<b><code>{{ attribute.name }}</code></b> | ||
{% if attribute.annotation %} | ||
{% with expression = attribute.annotation %} | ||
(<code>{% include "expression.html" with context %}</code>) | ||
{% endwith %} | ||
{% endif %} | ||
– | ||
<div class="doc-md-description"> | ||
{{ attribute.description|convert_markdown(heading_level, html_id) }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
{% extends "_base/docstring/attributes.html.jinja" %} |
34 changes: 1 addition & 33 deletions
34
src/mkdocstrings_handlers/python/templates/readthedocs/docstring/other_parameters.html
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,33 +1 @@ | ||
{{ log.debug() }} | ||
|
||
{% import "language.html" as lang with context %} | ||
|
||
<table class="field-list"> | ||
<colgroup> | ||
<col class="field-name" /> | ||
<col class="field-body" /> | ||
</colgroup> | ||
<tbody valign="top"> | ||
<tr class="field"> | ||
<th class="field-name">{{ section.title or lang.t("Other parameters:") }}</th> | ||
<td class="field-body"> | ||
<ul class="first simple"> | ||
{% for parameter in section.value %} | ||
<li> | ||
<b><code>{{ parameter.name }}</code></b> | ||
{% if parameter.annotation %} | ||
{% with expression = parameter.annotation %} | ||
(<code>{% include "expression.html" with context %}</code>) | ||
{% endwith %} | ||
{% endif %} | ||
– | ||
<div class="doc-md-description"> | ||
{{ parameter.description|convert_markdown(heading_level, html_id) }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
{% extends "_base/docstring/other_parameters.html.jinja" %} |
39 changes: 1 addition & 38 deletions
39
src/mkdocstrings_handlers/python/templates/readthedocs/docstring/parameters.html
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,38 +1 @@ | ||
{{ log.debug() }} | ||
|
||
{% import "language.html" as lang with context %} | ||
|
||
<table class="field-list"> | ||
<colgroup> | ||
<col class="field-name" /> | ||
<col class="field-body" /> | ||
</colgroup> | ||
<tbody valign="top"> | ||
<tr class="field"> | ||
<th class="field-name">{{ section.title or lang.t("Parameters:") }}</th> | ||
<td class="field-body"> | ||
<ul class="first simple"> | ||
{% for parameter in section.value %} | ||
<li> | ||
<b><code>{{ parameter.name }}</code></b> | ||
{% if parameter.annotation %} | ||
{% with expression = parameter.annotation %} | ||
(<code>{% include "expression.html" with context %}</code> | ||
{%- if parameter.default %}, {{ lang.t("default:") }} | ||
{% with expression = parameter.default %} | ||
<code>{% include "expression.html" with context %}</code> | ||
{% endwith %} | ||
{% endif %}) | ||
{% endwith %} | ||
{% endif %} | ||
– | ||
<div class="doc-md-description"> | ||
{{ parameter.description|convert_markdown(heading_level, html_id) }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
{% extends "_base/docstring/parameters.html.jinja" %} |
33 changes: 1 addition & 32 deletions
33
src/mkdocstrings_handlers/python/templates/readthedocs/docstring/raises.html
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,32 +1 @@ | ||
{{ log.debug() }} | ||
|
||
{% import "language.html" as lang with context %} | ||
|
||
<table class="field-list"> | ||
<colgroup> | ||
<col class="field-name" /> | ||
<col class="field-body" /> | ||
</colgroup> | ||
<tbody valign="top"> | ||
<tr class="field"> | ||
<th class="field-name">{{ section.title or lang.t("Raises:") }}</th> | ||
<td class="field-body"> | ||
<ul class="first simple"> | ||
{% for raises in section.value %} | ||
<li> | ||
{% if raises.annotation %} | ||
{% with expression = raises.annotation %} | ||
<code>{% include "expression.html" with context %}</code> | ||
{% endwith %} | ||
{% endif %} | ||
– | ||
<div class="doc-md-description"> | ||
{{ raises.description|convert_markdown(heading_level, html_id) }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
{% extends "_base/docstring/raises.html.jinja" %} |
36 changes: 1 addition & 35 deletions
36
src/mkdocstrings_handlers/python/templates/readthedocs/docstring/receives.html
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,35 +1 @@ | ||
{{ log.debug() }} | ||
|
||
{% import "language.html" as lang with context %} | ||
|
||
<table class="field-list"> | ||
<colgroup> | ||
<col class="field-name" /> | ||
<col class="field-body" /> | ||
</colgroup> | ||
<tbody valign="top"> | ||
<tr class="field"> | ||
<th class="field-name">{{ section.title or lang.t("Receives:") }}</th> | ||
<td class="field-body"> | ||
<ul class="first simple"> | ||
{% for receives in section.value %} | ||
<li> | ||
{% if receives.name %}<b><code>{{ receives.name }}</code></b>{% endif %} | ||
{% if receives.annotation %} | ||
{% with expression = receives.annotation %} | ||
{% if receives.name %}({% endif %} | ||
<code>{% include "expression.html" with context %}</code> | ||
{% if receives.name %}){% endif %} | ||
{% endwith %} | ||
{% endif %} | ||
– | ||
<div class="doc-md-description"> | ||
{{ receives.description|convert_markdown(heading_level, html_id) }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
{% extends "_base/docstring/receives.html.jinja" %} |
36 changes: 1 addition & 35 deletions
36
src/mkdocstrings_handlers/python/templates/readthedocs/docstring/returns.html
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,35 +1 @@ | ||
{{ log.debug() }} | ||
|
||
{% import "language.html" as lang with context %} | ||
|
||
<table class="field-list"> | ||
<colgroup> | ||
<col class="field-name" /> | ||
<col class="field-body" /> | ||
</colgroup> | ||
<tbody valign="top"> | ||
<tr class="field"> | ||
<th class="field-name">{{ section.title or lang.t("Returns:") }}</th> | ||
<td class="field-body"> | ||
<ul class="first simple"> | ||
{% for returns in section.value %} | ||
<li> | ||
{% if returns.name %}<b><code>{{ returns.name }}</code></b>{% endif %} | ||
{% if returns.annotation %} | ||
{% with expression = returns.annotation %} | ||
{% if returns.name %}({% endif %} | ||
<code>{% include "expression.html" with context %}</code> | ||
{% if returns.name %}){% endif %} | ||
{% endwith %} | ||
{% endif %} | ||
– | ||
<div class="doc-md-description"> | ||
{{ returns.description|convert_markdown(heading_level, html_id) }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
{% extends "_base/docstring/returns.html.jinja" %} |
33 changes: 1 addition & 32 deletions
33
src/mkdocstrings_handlers/python/templates/readthedocs/docstring/warns.html
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,32 +1 @@ | ||
{{ log.debug() }} | ||
|
||
{% import "language.html" as lang with context %} | ||
|
||
<table class="field-list"> | ||
<colgroup> | ||
<col class="field-name" /> | ||
<col class="field-body" /> | ||
</colgroup> | ||
<tbody valign="top"> | ||
<tr class="field"> | ||
<th class="field-name">{{ section.title or lang.t("Warns:") }}</th> | ||
<td class="field-body"> | ||
<ul class="first simple"> | ||
{% for warns in section.value %} | ||
<li> | ||
{% if warns.annotation %} | ||
{% with expression = warns.annotation %} | ||
<code>{% include "expression.html" with context %}</code> | ||
{% endwith %} | ||
{% endif %} | ||
– | ||
<div class="doc-md-description"> | ||
{{ warns.description|convert_markdown(heading_level, html_id) }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
{% extends "_base/docstring/warns.html.jinja" %} |
36 changes: 1 addition & 35 deletions
36
src/mkdocstrings_handlers/python/templates/readthedocs/docstring/yields.html
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,35 +1 @@ | ||
{{ log.debug() }} | ||
|
||
{% import "language.html" as lang with context %} | ||
|
||
<table class="field-list"> | ||
<colgroup> | ||
<col class="field-name" /> | ||
<col class="field-body" /> | ||
</colgroup> | ||
<tbody valign="top"> | ||
<tr class="field"> | ||
<th class="field-name">{{ section.title or lang.t("Yields:") }}</th> | ||
<td class="field-body"> | ||
<ul class="first simple"> | ||
{% for yields in section.value %} | ||
<li> | ||
{% if yields.name %}<b></code>{{ yields.name }}</code></b>{% endif %} | ||
{% if yields.annotation %} | ||
{% with expression = yields.annotation %} | ||
{% if yields.name %}({% endif %} | ||
<code>{% include "expression.html" with context %}</code> | ||
{% if yields.name %}){% endif %} | ||
{% endwith %} | ||
{% endif %} | ||
– | ||
<div class="doc-md-description"> | ||
{{ yields.description|convert_markdown(heading_level, html_id) }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
{% extends "_base/docstring/yields.html.jinja" %} |
Oops, something went wrong.