mkdocstrings-python 1.19.0__py3-none-any.whl → 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mkdocstrings_handlers/python/__init__.py +0 -4
- mkdocstrings_handlers/python/_internal/handler.py +5 -44
- mkdocstrings_handlers/python/_internal/rendering.py +14 -111
- mkdocstrings_handlers/python/templates/material/_base/attribute.html.jinja +2 -4
- mkdocstrings_handlers/python/templates/material/_base/class.html.jinja +8 -16
- mkdocstrings_handlers/python/templates/material/_base/docstring/attributes.html.jinja +4 -8
- mkdocstrings_handlers/python/templates/material/_base/docstring/classes.html.jinja +1 -2
- mkdocstrings_handlers/python/templates/material/_base/docstring/examples.html.jinja +1 -2
- mkdocstrings_handlers/python/templates/material/_base/docstring/functions.html.jinja +1 -2
- mkdocstrings_handlers/python/templates/material/_base/docstring/modules.html.jinja +1 -2
- mkdocstrings_handlers/python/templates/material/_base/docstring/other_parameters.html.jinja +4 -8
- mkdocstrings_handlers/python/templates/material/_base/docstring/parameters.html.jinja +7 -14
- mkdocstrings_handlers/python/templates/material/_base/docstring/raises.html.jinja +4 -8
- mkdocstrings_handlers/python/templates/material/_base/docstring/receives.html.jinja +5 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/returns.html.jinja +5 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/type_aliases.html.jinja +1 -1
- mkdocstrings_handlers/python/templates/material/_base/docstring/type_parameters.html.jinja +9 -9
- mkdocstrings_handlers/python/templates/material/_base/docstring/warns.html.jinja +4 -8
- mkdocstrings_handlers/python/templates/material/_base/docstring/yields.html.jinja +5 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring.html.jinja +15 -30
- mkdocstrings_handlers/python/templates/material/_base/function.html.jinja +5 -9
- mkdocstrings_handlers/python/templates/material/_base/language.html.jinja +3 -6
- mkdocstrings_handlers/python/templates/material/_base/module.html.jinja +4 -8
- mkdocstrings_handlers/python/templates/material/_base/signature.html.jinja +3 -6
- mkdocstrings_handlers/python/templates/material/_base/summary/attributes.html.jinja +1 -2
- mkdocstrings_handlers/python/templates/material/_base/summary/classes.html.jinja +1 -2
- mkdocstrings_handlers/python/templates/material/_base/summary/functions.html.jinja +1 -2
- mkdocstrings_handlers/python/templates/material/_base/summary/modules.html.jinja +1 -2
- mkdocstrings_handlers/python/templates/material/_base/summary/type_aliases.html.jinja +1 -2
- mkdocstrings_handlers/python/templates/material/_base/summary.html.jinja +5 -10
- mkdocstrings_handlers/python/templates/material/_base/type_alias.html.jinja +3 -6
- mkdocstrings_handlers/python/templates/material/_base/type_parameters.html.jinja +2 -4
- mkdocstrings_handlers/python/templates/readthedocs/_base/class.html.jinja +18 -18
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/attributes.html.jinja +2 -4
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/other_parameters.html.jinja +2 -4
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/parameters.html.jinja +3 -6
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/raises.html.jinja +2 -4
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/receives.html.jinja +2 -4
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/returns.html.jinja +2 -4
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/warns.html.jinja +2 -4
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/yields.html.jinja +2 -4
- mkdocstrings_handlers/python/templates/readthedocs/_base/language.html.jinja +3 -6
- mkdocstrings_python-2.0.0.dist-info/METADATA +179 -0
- mkdocstrings_python-2.0.0.dist-info/RECORD +121 -0
- {mkdocstrings_python-1.19.0.dist-info → mkdocstrings_python-2.0.0.dist-info}/WHEEL +1 -1
- mkdocstrings_handlers/python/config.py +0 -17
- mkdocstrings_handlers/python/handler.py +0 -17
- mkdocstrings_handlers/python/rendering.py +0 -17
- mkdocstrings_handlers/python/templates/material/_base/attribute.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/children.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/class.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/admonition.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/attributes.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/classes.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/examples.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/functions.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/modules.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/other_parameters.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/parameters.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/raises.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/receives.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/returns.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/type_aliases.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/type_parameters.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/warns.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring/yields.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/docstring.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/expression.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/function.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/labels.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/language.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/languages/en.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/languages/ja.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/languages/zh.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/module.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/signature.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/summary/attributes.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/summary/classes.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/summary/functions.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/summary/modules.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/summary/type_aliases.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/summary.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/type_alias.html +0 -10
- mkdocstrings_handlers/python/templates/material/_base/type_parameters.html +0 -10
- mkdocstrings_handlers/python/templates/material/attribute.html +0 -2
- mkdocstrings_handlers/python/templates/material/children.html +0 -2
- mkdocstrings_handlers/python/templates/material/class.html +0 -2
- mkdocstrings_handlers/python/templates/material/docstring/admonition.html +0 -2
- mkdocstrings_handlers/python/templates/material/docstring/attributes.html +0 -2
- mkdocstrings_handlers/python/templates/material/docstring/classes.html +0 -2
- mkdocstrings_handlers/python/templates/material/docstring/examples.html +0 -2
- mkdocstrings_handlers/python/templates/material/docstring/functions.html +0 -2
- mkdocstrings_handlers/python/templates/material/docstring/modules.html +0 -2
- mkdocstrings_handlers/python/templates/material/docstring/other_parameters.html +0 -2
- mkdocstrings_handlers/python/templates/material/docstring/parameters.html +0 -2
- mkdocstrings_handlers/python/templates/material/docstring/raises.html +0 -2
- mkdocstrings_handlers/python/templates/material/docstring/receives.html +0 -2
- mkdocstrings_handlers/python/templates/material/docstring/returns.html +0 -2
- mkdocstrings_handlers/python/templates/material/docstring/warns.html +0 -2
- mkdocstrings_handlers/python/templates/material/docstring/yields.html +0 -2
- mkdocstrings_handlers/python/templates/material/docstring.html +0 -2
- mkdocstrings_handlers/python/templates/material/expression.html +0 -2
- mkdocstrings_handlers/python/templates/material/function.html +0 -2
- mkdocstrings_handlers/python/templates/material/labels.html +0 -2
- mkdocstrings_handlers/python/templates/material/language.html +0 -2
- mkdocstrings_handlers/python/templates/material/languages/en.html +0 -2
- mkdocstrings_handlers/python/templates/material/languages/ja.html +0 -2
- mkdocstrings_handlers/python/templates/material/languages/zh.html +0 -2
- mkdocstrings_handlers/python/templates/material/module.html +0 -2
- mkdocstrings_handlers/python/templates/material/signature.html +0 -2
- mkdocstrings_handlers/python/templates/material/summary/attributes.html +0 -2
- mkdocstrings_handlers/python/templates/material/summary/classes.html +0 -2
- mkdocstrings_handlers/python/templates/material/summary/functions.html +0 -2
- mkdocstrings_handlers/python/templates/material/summary/modules.html +0 -2
- mkdocstrings_handlers/python/templates/material/summary.html +0 -2
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/attributes.html +0 -10
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/other_parameters.html +0 -10
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/parameters.html +0 -10
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/raises.html +0 -10
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/receives.html +0 -10
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/returns.html +0 -10
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/warns.html +0 -10
- mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/yields.html +0 -10
- mkdocstrings_handlers/python/templates/readthedocs/_base/language.html +0 -10
- mkdocstrings_handlers/python/templates/readthedocs/_base/languages/en.html +0 -10
- mkdocstrings_handlers/python/templates/readthedocs/_base/languages/ja.html +0 -10
- mkdocstrings_handlers/python/templates/readthedocs/_base/languages/zh.html +0 -10
- mkdocstrings_handlers/python/templates/readthedocs/docstring/attributes.html +0 -2
- mkdocstrings_handlers/python/templates/readthedocs/docstring/other_parameters.html +0 -2
- mkdocstrings_handlers/python/templates/readthedocs/docstring/parameters.html +0 -2
- mkdocstrings_handlers/python/templates/readthedocs/docstring/raises.html +0 -2
- mkdocstrings_handlers/python/templates/readthedocs/docstring/receives.html +0 -2
- mkdocstrings_handlers/python/templates/readthedocs/docstring/returns.html +0 -2
- mkdocstrings_handlers/python/templates/readthedocs/docstring/warns.html +0 -2
- mkdocstrings_handlers/python/templates/readthedocs/docstring/yields.html +0 -2
- mkdocstrings_handlers/python/templates/readthedocs/language.html +0 -2
- mkdocstrings_handlers/python/templates/readthedocs/languages/en.html +0 -2
- mkdocstrings_handlers/python/templates/readthedocs/languages/ja.html +0 -2
- mkdocstrings_handlers/python/templates/readthedocs/languages/zh.html +0 -2
- mkdocstrings_python-1.19.0.dist-info/METADATA +0 -121
- mkdocstrings_python-1.19.0.dist-info/RECORD +0 -215
- {mkdocstrings_python-1.19.0.dist-info → mkdocstrings_python-2.0.0.dist-info}/entry_points.txt +0 -0
- {mkdocstrings_python-1.19.0.dist-info → mkdocstrings_python-2.0.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -15,8 +15,7 @@ Context:
|
|
|
15
15
|
{{ log.debug("Rendering receives section") }}
|
|
16
16
|
{% endblock logs %}
|
|
17
17
|
|
|
18
|
-
{
|
|
19
|
-
{% import "language"|get_template as lang with context %}
|
|
18
|
+
{% import "language.html.jinja" as lang with context %}
|
|
20
19
|
{#- Language module providing the `t` translation method. -#}
|
|
21
20
|
|
|
22
21
|
{% if config.docstring_section_style == "table" %}
|
|
@@ -39,8 +38,7 @@ Context:
|
|
|
39
38
|
<td>
|
|
40
39
|
{% if receives.annotation %}
|
|
41
40
|
{% with expression = receives.annotation, backlink_type = "received-by" %}
|
|
42
|
-
{
|
|
43
|
-
<code>{% include "expression"|get_template with context %}</code>
|
|
41
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
44
42
|
{% endwith %}
|
|
45
43
|
{% endif %}
|
|
46
44
|
</td>
|
|
@@ -65,8 +63,7 @@ Context:
|
|
|
65
63
|
{% if receives.annotation %}
|
|
66
64
|
{% with expression = receives.annotation, backlink_type = "received-by" %}
|
|
67
65
|
{% if receives.name %} ({% endif %}
|
|
68
|
-
{
|
|
69
|
-
<code>{% include "expression"|get_template with context %}</code>
|
|
66
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
70
67
|
{% if receives.name %}){% endif %}
|
|
71
68
|
{% endwith %}
|
|
72
69
|
{% endif %}
|
|
@@ -97,8 +94,7 @@ Context:
|
|
|
97
94
|
{% elif receives.annotation %}
|
|
98
95
|
<span class="doc-receives-annotation">
|
|
99
96
|
{% with expression = receives.annotation, backlink_type = "received-by" %}
|
|
100
|
-
{
|
|
101
|
-
<code>{% include "expression"|get_template with context %}</code>
|
|
97
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
102
98
|
{% endwith %}
|
|
103
99
|
</span>
|
|
104
100
|
{% endif %}
|
|
@@ -112,8 +108,7 @@ Context:
|
|
|
112
108
|
<span class="doc-receives-annotation">
|
|
113
109
|
<b>{{ lang.t("TYPE:") }}</b>
|
|
114
110
|
{% with expression = receives.annotation, backlink_type = "received-by" %}
|
|
115
|
-
{
|
|
116
|
-
<code>{% include "expression"|get_template with context %}</code>
|
|
111
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
117
112
|
{% endwith %}
|
|
118
113
|
</span>
|
|
119
114
|
</p>
|
|
@@ -15,8 +15,7 @@ Context:
|
|
|
15
15
|
{{ log.debug("Rendering returns section") }}
|
|
16
16
|
{% endblock logs %}
|
|
17
17
|
|
|
18
|
-
{
|
|
19
|
-
{% import "language"|get_template as lang with context %}
|
|
18
|
+
{% import "language.html.jinja" as lang with context %}
|
|
20
19
|
{#- Language module providing the `t` translation method. -#}
|
|
21
20
|
|
|
22
21
|
{% if config.docstring_section_style == "table" %}
|
|
@@ -39,8 +38,7 @@ Context:
|
|
|
39
38
|
<td>
|
|
40
39
|
{% if returns.annotation %}
|
|
41
40
|
{% with expression = returns.annotation, backlink_type = "returned-by" %}
|
|
42
|
-
{
|
|
43
|
-
<code>{% include "expression"|get_template with context %}</code>
|
|
41
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
44
42
|
{% endwith %}
|
|
45
43
|
{% endif %}
|
|
46
44
|
</td>
|
|
@@ -65,8 +63,7 @@ Context:
|
|
|
65
63
|
{% if returns.annotation %}
|
|
66
64
|
{% with expression = returns.annotation, backlink_type = "returned-by" %}
|
|
67
65
|
{% if returns.name %} ({% endif %}
|
|
68
|
-
{
|
|
69
|
-
<code>{% include "expression"|get_template with context %}</code>
|
|
66
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
70
67
|
{% if returns.name %}){% endif %}
|
|
71
68
|
{% endwith %}
|
|
72
69
|
{% endif %}
|
|
@@ -97,8 +94,7 @@ Context:
|
|
|
97
94
|
{% elif returns.annotation %}
|
|
98
95
|
<span class="doc-returns-annotation">
|
|
99
96
|
{% with expression = returns.annotation, backlink_type = "returned-by" %}
|
|
100
|
-
{
|
|
101
|
-
<code>{% include "expression"|get_template with context %}</code>
|
|
97
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
102
98
|
{% endwith %}
|
|
103
99
|
</span>
|
|
104
100
|
{% endif %}
|
|
@@ -112,8 +108,7 @@ Context:
|
|
|
112
108
|
<span class="doc-returns-annotation">
|
|
113
109
|
<b>{{ lang.t("TYPE:") }}</b>
|
|
114
110
|
{% with expression = returns.annotation, backlink_type = "returned-by" %}
|
|
115
|
-
{
|
|
116
|
-
<code>{% include "expression"|get_template with context %}</code>
|
|
111
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
117
112
|
{% endwith %}
|
|
118
113
|
</span>
|
|
119
114
|
</p>
|
|
@@ -15,7 +15,7 @@ Context:
|
|
|
15
15
|
{{ log.debug("Rendering type aliases section") }}
|
|
16
16
|
{% endblock logs %}
|
|
17
17
|
|
|
18
|
-
{% import "language"
|
|
18
|
+
{% import "language.html.jinja" as lang with context %}
|
|
19
19
|
{#- Language module providing the `t` translation method. -#}
|
|
20
20
|
|
|
21
21
|
{% if config.docstring_section_style == "table" %}
|
|
@@ -15,7 +15,7 @@ Context:
|
|
|
15
15
|
{{ log.debug("Rendering type parameters section") }}
|
|
16
16
|
{% endblock logs %}
|
|
17
17
|
|
|
18
|
-
{% import "language"
|
|
18
|
+
{% import "language.html.jinja" as lang with context %}
|
|
19
19
|
{#- Language module providing the `t` translation method. -#}
|
|
20
20
|
|
|
21
21
|
{% if config.docstring_section_style == "table" %}
|
|
@@ -56,7 +56,7 @@ Context:
|
|
|
56
56
|
<td>
|
|
57
57
|
{% if type_parameter.annotation %}
|
|
58
58
|
{% with expression = type_parameter.annotation %}
|
|
59
|
-
<code>{% include "expression"
|
|
59
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
60
60
|
{% endwith %}
|
|
61
61
|
{% endif %}
|
|
62
62
|
</td>
|
|
@@ -68,7 +68,7 @@ Context:
|
|
|
68
68
|
<td>
|
|
69
69
|
{% if type_parameter.default %}
|
|
70
70
|
{% with expression = type_parameter.default %}
|
|
71
|
-
<code>{% include "expression"
|
|
71
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
72
72
|
{% endwith %}
|
|
73
73
|
{% else %}
|
|
74
74
|
<em>{{ lang.t("required") }}</em>
|
|
@@ -108,12 +108,12 @@ Context:
|
|
|
108
108
|
{%- endif -%}
|
|
109
109
|
{%- if type_parameter.bound -%}
|
|
110
110
|
{%- with expression = type_parameter.bound -%}
|
|
111
|
-
<code>{% include "expression"
|
|
111
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
112
112
|
{%- endwith -%}
|
|
113
113
|
{%- if type_parameter.default %}, {% endif -%}
|
|
114
114
|
{%- elif type_parameter.constraints -%}
|
|
115
115
|
{%- for expression in type_parameter.constraints -%}
|
|
116
|
-
<code>{% include "expression"
|
|
116
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
117
117
|
{%- if not loop.last %}, {% endif -%}
|
|
118
118
|
{%- endfor -%}
|
|
119
119
|
{%- if type_parameter.default %}, {% endif -%}
|
|
@@ -121,7 +121,7 @@ Context:
|
|
|
121
121
|
{%- if type_parameter.default -%}
|
|
122
122
|
{{ lang.t("default:") }}
|
|
123
123
|
{% with expression = type_parameter.default %}
|
|
124
|
-
<code>{% include "expression"
|
|
124
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
125
125
|
{%- endwith -%}
|
|
126
126
|
{%- endif -%}
|
|
127
127
|
{%- if type_parameter.constraints or type_parameter.default -%}
|
|
@@ -177,7 +177,7 @@ Context:
|
|
|
177
177
|
<b>{{ lang.t("CONSTRAINTS:") }}</b>
|
|
178
178
|
{% for constraint in type_parameter.constraints -%}
|
|
179
179
|
{%- with expression = constraint -%}
|
|
180
|
-
<code>{% include "expression"
|
|
180
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
181
181
|
{%- endwith -%}
|
|
182
182
|
{%- if not loop.last %}, {% endif -%}
|
|
183
183
|
{% endfor %}
|
|
@@ -186,7 +186,7 @@ Context:
|
|
|
186
186
|
<span class="doc-type_param-bound">
|
|
187
187
|
<b>{{ lang.t("BOUND:") }}</b>
|
|
188
188
|
{% with expression = type_parameter.bound %}
|
|
189
|
-
<code>{% include "expression"
|
|
189
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
190
190
|
{% endwith %}
|
|
191
191
|
</span>
|
|
192
192
|
{% endif %}
|
|
@@ -194,7 +194,7 @@ Context:
|
|
|
194
194
|
<span class="doc-type_param-default">
|
|
195
195
|
<b>{{ lang.t("DEFAULT:") }}</b>
|
|
196
196
|
{% with expression = type_parameter.default %}
|
|
197
|
-
<code>{% include "expression"
|
|
197
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
198
198
|
{% endwith %}
|
|
199
199
|
</span>
|
|
200
200
|
{% endif %}
|
|
@@ -15,8 +15,7 @@ Context:
|
|
|
15
15
|
{{ log.debug("Rendering warns section") }}
|
|
16
16
|
{% endblock logs %}
|
|
17
17
|
|
|
18
|
-
{
|
|
19
|
-
{% import "language"|get_template as lang with context %}
|
|
18
|
+
{% import "language.html.jinja" as lang with context %}
|
|
20
19
|
{#- Language module providing the `t` translation method. -#}
|
|
21
20
|
|
|
22
21
|
{% if config.docstring_section_style == "table" %}
|
|
@@ -36,8 +35,7 @@ Context:
|
|
|
36
35
|
<td>
|
|
37
36
|
{% if warns.annotation %}
|
|
38
37
|
{% with expression = warns.annotation, backlink_type = "emitted-by" %}
|
|
39
|
-
{
|
|
40
|
-
<code>{% include "expression"|get_template with context %}</code>
|
|
38
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
41
39
|
{% endwith %}
|
|
42
40
|
{% endif %}
|
|
43
41
|
</td>
|
|
@@ -60,8 +58,7 @@ Context:
|
|
|
60
58
|
<li class="doc-section-item field-body">
|
|
61
59
|
{% if warns.annotation %}
|
|
62
60
|
{% with expression = warns.annotation, backlink_type = "emitted-by" %}
|
|
63
|
-
{
|
|
64
|
-
<code>{% include "expression"|get_template with context %}</code>
|
|
61
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
65
62
|
{% endwith %}
|
|
66
63
|
–
|
|
67
64
|
{% endif %}
|
|
@@ -88,8 +85,7 @@ Context:
|
|
|
88
85
|
<td>
|
|
89
86
|
<span class="doc-warns-annotation">
|
|
90
87
|
{% with expression = warns.annotation, backlink_type = "emitted-by" %}
|
|
91
|
-
{
|
|
92
|
-
<code>{% include "expression"|get_template with context %}</code>
|
|
88
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
93
89
|
{% endwith %}
|
|
94
90
|
</span>
|
|
95
91
|
</td>
|
|
@@ -15,8 +15,7 @@ Context:
|
|
|
15
15
|
{{ log.debug("Rendering yields section") }}
|
|
16
16
|
{% endblock logs %}
|
|
17
17
|
|
|
18
|
-
{
|
|
19
|
-
{% import "language"|get_template as lang with context %}
|
|
18
|
+
{% import "language.html.jinja" as lang with context %}
|
|
20
19
|
{#- Language module providing the `t` translation method. -#}
|
|
21
20
|
|
|
22
21
|
{% if config.docstring_section_style == "table" %}
|
|
@@ -39,8 +38,7 @@ Context:
|
|
|
39
38
|
<td>
|
|
40
39
|
{% if yields.annotation %}
|
|
41
40
|
{% with expression = yields.annotation, backlink_type = "yielded-by" %}
|
|
42
|
-
{
|
|
43
|
-
<code>{% include "expression"|get_template with context %}</code>
|
|
41
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
44
42
|
{% endwith %}
|
|
45
43
|
{% endif %}
|
|
46
44
|
</td>
|
|
@@ -65,8 +63,7 @@ Context:
|
|
|
65
63
|
{% if yields.annotation %}
|
|
66
64
|
{% with expression = yields.annotation, backlink_type = "yielded-by" %}
|
|
67
65
|
{% if yields.name %} ({% endif %}
|
|
68
|
-
{
|
|
69
|
-
<code>{% include "expression"|get_template with context %}</code>
|
|
66
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
70
67
|
{% if yields.name %}){% endif %}
|
|
71
68
|
{% endwith %}
|
|
72
69
|
{% endif %}
|
|
@@ -97,8 +94,7 @@ Context:
|
|
|
97
94
|
{% elif yields.annotation %}
|
|
98
95
|
<span class="doc-yields-annotation">
|
|
99
96
|
{% with expression = yields.annotation, backlink_type = "yielded-by" %}
|
|
100
|
-
{
|
|
101
|
-
<code>{% include "expression"|get_template with context %}</code>
|
|
97
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
102
98
|
{% endwith %}
|
|
103
99
|
</span>
|
|
104
100
|
{% endif %}
|
|
@@ -112,8 +108,7 @@ Context:
|
|
|
112
108
|
<span class="doc-yields-annotation">
|
|
113
109
|
<b>{{ lang.t("TYPE:") }}:</b>
|
|
114
110
|
{% with expression = yields.annotation, backlink_type = "yielded-by" %}
|
|
115
|
-
{
|
|
116
|
-
<code>{% include "expression"|get_template with context %}</code>
|
|
111
|
+
<code>{% include "expression.html.jinja" with context %}</code>
|
|
117
112
|
{% endwith %}
|
|
118
113
|
</span>
|
|
119
114
|
</p>
|
|
@@ -24,50 +24,35 @@ Context:
|
|
|
24
24
|
{% if config.show_docstring_description and section.kind.value == "text" %}
|
|
25
25
|
{{ section.value|convert_markdown(heading_level, html_id, autoref_hook=autoref_hook) }}
|
|
26
26
|
{% elif config.show_docstring_attributes and section.kind.value == "attributes" %}
|
|
27
|
-
{
|
|
28
|
-
{% include "docstring/attributes"|get_template with context %}
|
|
27
|
+
{% include "docstring/attributes.html.jinja" with context %}
|
|
29
28
|
{% elif config.show_docstring_functions and section.kind.value == "functions" %}
|
|
30
|
-
{
|
|
31
|
-
{% include "docstring/functions"|get_template with context %}
|
|
29
|
+
{% include "docstring/functions.html.jinja" with context %}
|
|
32
30
|
{% elif config.show_docstring_classes and section.kind.value == "classes" %}
|
|
33
|
-
{
|
|
34
|
-
{% include "docstring/classes"|get_template with context %}
|
|
31
|
+
{% include "docstring/classes.html.jinja" with context %}
|
|
35
32
|
{% elif config.show_docstring_type_aliases and section.kind.value == "type aliases" %}
|
|
36
|
-
{
|
|
37
|
-
{% include "docstring/type_aliases"|get_template with context %}
|
|
33
|
+
{% include "docstring/type_aliases.html.jinja" with context %}
|
|
38
34
|
{% elif config.show_docstring_modules and section.kind.value == "modules" %}
|
|
39
|
-
{
|
|
40
|
-
{% include "docstring/modules"|get_template with context %}
|
|
35
|
+
{% include "docstring/modules.html.jinja" with context %}
|
|
41
36
|
{% elif config.show_docstring_type_parameters and section.kind.value == "type parameters" %}
|
|
42
|
-
{
|
|
43
|
-
{% include "docstring/type_parameters"|get_template with context %}
|
|
37
|
+
{% include "docstring/type_parameters.html.jinja" with context %}
|
|
44
38
|
{% elif config.show_docstring_parameters and section.kind.value == "parameters" %}
|
|
45
|
-
{
|
|
46
|
-
{% include "docstring/parameters"|get_template with context %}
|
|
39
|
+
{% include "docstring/parameters.html.jinja" with context %}
|
|
47
40
|
{% elif config.show_docstring_other_parameters and section.kind.value == "other parameters" %}
|
|
48
|
-
{
|
|
49
|
-
{% include "docstring/other_parameters"|get_template with context %}
|
|
41
|
+
{% include "docstring/other_parameters.html.jinja" with context %}
|
|
50
42
|
{% elif config.show_docstring_raises and section.kind.value == "raises" %}
|
|
51
|
-
{
|
|
52
|
-
{% include "docstring/raises"|get_template with context %}
|
|
43
|
+
{% include "docstring/raises.html.jinja" with context %}
|
|
53
44
|
{% elif config.show_docstring_warns and section.kind.value == "warns" %}
|
|
54
|
-
{
|
|
55
|
-
{% include "docstring/warns"|get_template with context %}
|
|
45
|
+
{% include "docstring/warns.html.jinja" with context %}
|
|
56
46
|
{% elif config.show_docstring_yields and section.kind.value == "yields" %}
|
|
57
|
-
{
|
|
58
|
-
{% include "docstring/yields"|get_template with context %}
|
|
47
|
+
{% include "docstring/yields.html.jinja" with context %}
|
|
59
48
|
{% elif config.show_docstring_receives and section.kind.value == "receives" %}
|
|
60
|
-
{
|
|
61
|
-
{% include "docstring/receives"|get_template with context %}
|
|
49
|
+
{% include "docstring/receives.html.jinja" with context %}
|
|
62
50
|
{% elif config.show_docstring_returns and section.kind.value == "returns" %}
|
|
63
|
-
{
|
|
64
|
-
{% include "docstring/returns"|get_template with context %}
|
|
51
|
+
{% include "docstring/returns.html.jinja" with context %}
|
|
65
52
|
{% elif config.show_docstring_examples and section.kind.value == "examples" %}
|
|
66
|
-
{
|
|
67
|
-
{% include "docstring/examples"|get_template with context %}
|
|
53
|
+
{% include "docstring/examples.html.jinja" with context %}
|
|
68
54
|
{% elif config.show_docstring_description and section.kind.value == "admonition" %}
|
|
69
|
-
{
|
|
70
|
-
{% include "docstring/admonition"|get_template with context %}
|
|
55
|
+
{% include "docstring/admonition.html.jinja" with context %}
|
|
71
56
|
{% endif %}
|
|
72
57
|
{% endfor %}
|
|
73
58
|
{% endwith %}
|
|
@@ -17,8 +17,7 @@ Context:
|
|
|
17
17
|
{{ log.debug("Rendering " + function.path) }}
|
|
18
18
|
{% endblock logs %}
|
|
19
19
|
|
|
20
|
-
{
|
|
21
|
-
{% import "language"|get_template as lang with context %}
|
|
20
|
+
{% import "language.html.jinja" as lang with context %}
|
|
22
21
|
{#- Language module providing the `t` translation method. -#}
|
|
23
22
|
|
|
24
23
|
<div class="doc doc-object doc-function">
|
|
@@ -62,9 +61,8 @@ Context:
|
|
|
62
61
|
{% else %}
|
|
63
62
|
{%+ filter highlight(language="python", inline=True) -%}
|
|
64
63
|
{{ function_name }}
|
|
65
|
-
{
|
|
66
|
-
{%- include "
|
|
67
|
-
{%- include "signature"|get_template with context -%}
|
|
64
|
+
{%- include "type_parameters.html.jinja" with context -%}
|
|
65
|
+
{%- include "signature.html.jinja" with context -%}
|
|
68
66
|
{%- endfilter %}
|
|
69
67
|
{% endif %}
|
|
70
68
|
{% endblock heading %}
|
|
@@ -75,8 +73,7 @@ Context:
|
|
|
75
73
|
This block renders the labels for the function.
|
|
76
74
|
-#}
|
|
77
75
|
{% with labels = function.labels %}
|
|
78
|
-
{
|
|
79
|
-
{% include "labels"|get_template with context %}
|
|
76
|
+
{% include "labels.html.jinja" with context %}
|
|
80
77
|
{% endwith %}
|
|
81
78
|
{% endblock labels %}
|
|
82
79
|
|
|
@@ -134,8 +131,7 @@ Context:
|
|
|
134
131
|
This block renders the docstring for the function.
|
|
135
132
|
-#}
|
|
136
133
|
{% with docstring_sections = function.docstring.parsed %}
|
|
137
|
-
{
|
|
138
|
-
{% include "docstring"|get_template with context %}
|
|
134
|
+
{% include "docstring.html.jinja" with context %}
|
|
139
135
|
{% endwith %}
|
|
140
136
|
{% endblock docstring %}
|
|
141
137
|
|
|
@@ -7,15 +7,12 @@
|
|
|
7
7
|
-#}
|
|
8
8
|
{% endblock logs %}
|
|
9
9
|
|
|
10
|
-
{
|
|
11
|
-
{% set lang_pth = "languages/" ~ locale | get_template %}
|
|
10
|
+
{% set lang_pth = "languages/" ~ locale ~ ".html.jinja" %}
|
|
12
11
|
{% if lang_pth is existing_template %}
|
|
13
12
|
{% import lang_pth as lang %}
|
|
14
|
-
{
|
|
15
|
-
{% import "languages/en"|get_template as fallback %}
|
|
13
|
+
{% import "languages/en.html.jinja" as fallback %}
|
|
16
14
|
{% macro t(key) %}{{ lang.t(key) or fallback.t(key) }}{% endmacro %}
|
|
17
15
|
{% else %}
|
|
18
|
-
{
|
|
19
|
-
{% import "languages/en"|get_template as lang %}
|
|
16
|
+
{% import "languages/en.html.jinja" as lang %}
|
|
20
17
|
{% macro t(key) %}{{ lang.t(key) }}{% endmacro %}
|
|
21
18
|
{% endif %}
|
|
@@ -63,8 +63,7 @@ Context:
|
|
|
63
63
|
This block renders the labels for the module.
|
|
64
64
|
-#}
|
|
65
65
|
{% with labels = module.labels %}
|
|
66
|
-
{
|
|
67
|
-
{% include "labels"|get_template with context %}
|
|
66
|
+
{% include "labels.html.jinja" with context %}
|
|
68
67
|
{% endwith %}
|
|
69
68
|
{% endblock labels %}
|
|
70
69
|
|
|
@@ -98,8 +97,7 @@ Context:
|
|
|
98
97
|
This block renders the docstring for the module.
|
|
99
98
|
-#}
|
|
100
99
|
{% with docstring_sections = module.docstring.parsed %}
|
|
101
|
-
{
|
|
102
|
-
{% include "docstring"|get_template with context %}
|
|
100
|
+
{% include "docstring.html.jinja" with context %}
|
|
103
101
|
{% endwith %}
|
|
104
102
|
{% endblock docstring %}
|
|
105
103
|
|
|
@@ -112,8 +110,7 @@ Context:
|
|
|
112
110
|
|
|
113
111
|
This block renders auto-summaries for classes, methods, and attributes.
|
|
114
112
|
-#}
|
|
115
|
-
{
|
|
116
|
-
{% include "summary"|get_template with context %}
|
|
113
|
+
{% include "summary.html.jinja" with context %}
|
|
117
114
|
{% endblock summary %}
|
|
118
115
|
|
|
119
116
|
{% block children scoped %}
|
|
@@ -123,8 +120,7 @@ Context:
|
|
|
123
120
|
-#}
|
|
124
121
|
{% set root = False %}
|
|
125
122
|
{% set heading_level = heading_level + 1 %}
|
|
126
|
-
{
|
|
127
|
-
{% include "children"|get_template with context %}
|
|
123
|
+
{% include "children.html.jinja" with context %}
|
|
128
124
|
{% endblock children %}
|
|
129
125
|
{% endblock contents %}
|
|
130
126
|
</div>
|
|
@@ -50,8 +50,7 @@ Context:
|
|
|
50
50
|
{%- if config.separate_signature -%}
|
|
51
51
|
{%- with expression = parameter.annotation -%}
|
|
52
52
|
{%- set ns.annotation -%}: {% with backlink_type = "used-by" -%}
|
|
53
|
-
{
|
|
54
|
-
{%- include "expression"|get_template with context -%}
|
|
53
|
+
{%- include "expression.html.jinja" with context -%}
|
|
55
54
|
{%- endwith -%}{%- endset -%}
|
|
56
55
|
{%- endwith -%}
|
|
57
56
|
{%- else -%}
|
|
@@ -106,8 +105,7 @@ Context:
|
|
|
106
105
|
{{ ns.equal }}
|
|
107
106
|
{%- if config.signature_crossrefs and config.separate_signature -%}
|
|
108
107
|
{%- with expression = parameter.default, backlink_type = "used-by" -%}
|
|
109
|
-
{
|
|
110
|
-
{%- include "expression"|get_template with context -%}
|
|
108
|
+
{%- include "expression.html.jinja" with context -%}
|
|
111
109
|
{%- endwith -%}
|
|
112
110
|
{%- else -%}
|
|
113
111
|
{{ parameter.default|safe }}
|
|
@@ -126,8 +124,7 @@ Context:
|
|
|
126
124
|
and not (config.merge_init_into_class and function.name == "__init__" )
|
|
127
125
|
%} -> {% if config.separate_signature and config.signature_crossrefs -%}
|
|
128
126
|
{%- with expression = function.annotation, backlink_type = "returned-by" -%}
|
|
129
|
-
{
|
|
130
|
-
{%- include "expression"|get_template with context -%}
|
|
127
|
+
{%- include "expression.html.jinja" with context -%}
|
|
131
128
|
{%- endwith -%}
|
|
132
129
|
{%- else -%}
|
|
133
130
|
{{ function.annotation|safe }}
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
|order_members(config.members_order, members_list)
|
|
19
19
|
|as_attributes_section(check_public=not members_list)
|
|
20
20
|
%}
|
|
21
|
-
{
|
|
22
|
-
{% if section %}{% include "docstring/attributes"|get_template with context %}{% endif %}
|
|
21
|
+
{% if section %}{% include "docstring/attributes.html.jinja" with context %}{% endif %}
|
|
23
22
|
{% endwith %}
|
|
24
23
|
{% endif %}
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
|order_members(config.members_order, members_list)
|
|
19
19
|
|as_classes_section(check_public=not members_list)
|
|
20
20
|
%}
|
|
21
|
-
{
|
|
22
|
-
{% if section %}{% include "docstring/classes"|get_template with context %}{% endif %}
|
|
21
|
+
{% if section %}{% include "docstring/classes.html.jinja" with context %}{% endif %}
|
|
23
22
|
{% endwith %}
|
|
24
23
|
{% endif %}
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
|order_members(config.members_order, members_list)
|
|
19
19
|
|as_functions_section(check_public=not members_list)
|
|
20
20
|
%}
|
|
21
|
-
{
|
|
22
|
-
{% if section %}{% include "docstring/functions"|get_template with context %}{% endif %}
|
|
21
|
+
{% if section %}{% include "docstring/functions.html.jinja" with context %}{% endif %}
|
|
23
22
|
{% endwith %}
|
|
24
23
|
{% endif %}
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
|order_members("alphabetical", members_list)
|
|
19
19
|
|as_modules_section(check_public=not members_list)
|
|
20
20
|
%}
|
|
21
|
-
{
|
|
22
|
-
{% if section %}{% include "docstring/modules"|get_template with context %}{% endif %}
|
|
21
|
+
{% if section %}{% include "docstring/modules.html.jinja" with context %}{% endif %}
|
|
23
22
|
{% endwith %}
|
|
24
23
|
{% endif %}
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
|order_members("alphabetical", members_list)
|
|
19
19
|
|as_type_aliases_section(check_public=not members_list)
|
|
20
20
|
%}
|
|
21
|
-
{
|
|
22
|
-
{% if section %}{% include "docstring/type_aliases"|get_template with context %}{% endif %}
|
|
21
|
+
{% if section %}{% include "docstring/type_aliases.html.jinja" with context %}{% endif %}
|
|
23
22
|
{% endwith %}
|
|
24
23
|
{% endif %}
|
|
@@ -9,27 +9,22 @@
|
|
|
9
9
|
|
|
10
10
|
{% with members_list = config.members if root_members else None %}
|
|
11
11
|
{% if config.summary.modules %}
|
|
12
|
-
{
|
|
13
|
-
{% include "summary/modules"|get_template with context %}
|
|
12
|
+
{% include "summary/modules.html.jinja" with context %}
|
|
14
13
|
{% endif %}
|
|
15
14
|
|
|
16
15
|
{% if config.summary.type_aliases %}
|
|
17
|
-
{
|
|
18
|
-
{% include "summary/type_aliases"|get_template with context %}
|
|
16
|
+
{% include "summary/type_aliases.html.jinja" with context %}
|
|
19
17
|
{% endif %}
|
|
20
18
|
|
|
21
19
|
{% if config.summary.classes %}
|
|
22
|
-
{
|
|
23
|
-
{% include "summary/classes"|get_template with context %}
|
|
20
|
+
{% include "summary/classes.html.jinja" with context %}
|
|
24
21
|
{% endif %}
|
|
25
22
|
|
|
26
23
|
{% if config.summary.functions %}
|
|
27
|
-
{
|
|
28
|
-
{% include "summary/functions"|get_template with context %}
|
|
24
|
+
{% include "summary/functions.html.jinja" with context %}
|
|
29
25
|
{% endif %}
|
|
30
26
|
|
|
31
27
|
{% if config.summary.attributes %}
|
|
32
|
-
{
|
|
33
|
-
{% include "summary/attributes"|get_template with context %}
|
|
28
|
+
{% include "summary/attributes.html.jinja" with context %}
|
|
34
29
|
{% endif %}
|
|
35
30
|
{% endwith %}
|
|
@@ -51,8 +51,7 @@ Context:
|
|
|
51
51
|
<span class="doc doc-object-name doc-type_alias-name">{{ type_alias_name }}</span>
|
|
52
52
|
{% else %}
|
|
53
53
|
{%+ filter highlight(language="python", inline=True) %}
|
|
54
|
-
{
|
|
55
|
-
{{ type_alias_name }}{% include "type_parameters"|get_template with context %} = {{ type_alias.value }}
|
|
54
|
+
{{ type_alias_name }}{% include "type_parameters.html.jinja" with context %} = {{ type_alias.value }}
|
|
56
55
|
{% endfilter %}
|
|
57
56
|
{% endif %}
|
|
58
57
|
{% endblock heading %}
|
|
@@ -63,8 +62,7 @@ Context:
|
|
|
63
62
|
This block renders the labels for the type alias.
|
|
64
63
|
-#}
|
|
65
64
|
{% with labels = type_alias.labels %}
|
|
66
|
-
{
|
|
67
|
-
{% include "labels"|get_template with context %}
|
|
65
|
+
{% include "labels.html.jinja" with context %}
|
|
68
66
|
{% endwith %}
|
|
69
67
|
{% endblock labels %}
|
|
70
68
|
|
|
@@ -109,8 +107,7 @@ Context:
|
|
|
109
107
|
This block renders the docstring for the type alias.
|
|
110
108
|
-#}
|
|
111
109
|
{% with docstring_sections = type_alias.docstring.parsed %}
|
|
112
|
-
{
|
|
113
|
-
{% include "docstring"|get_template with context %}
|
|
110
|
+
{% include "docstring.html.jinja" with context %}
|
|
114
111
|
{% endwith %}
|
|
115
112
|
{% endblock docstring %}
|
|
116
113
|
{% endblock contents %}
|
|
@@ -27,8 +27,7 @@ Context:
|
|
|
27
27
|
{%- set ns.equal = " = " -%}
|
|
28
28
|
{%- if config.separate_signature and config.signature_crossrefs -%}
|
|
29
29
|
{%- with expression = type_parameter.annotation -%}
|
|
30
|
-
{
|
|
31
|
-
{%- set ns.annotation -%}: {% include "expression"|get_template with context %}{%- endset -%}
|
|
30
|
+
{%- set ns.annotation -%}: {% include "expression.html.jinja" with context %}{%- endset -%}
|
|
32
31
|
{%- endwith -%}
|
|
33
32
|
{%- else -%}
|
|
34
33
|
{%- set ns.annotation = ": " + type_parameter.annotation|safe -%}
|
|
@@ -72,8 +71,7 @@ Context:
|
|
|
72
71
|
{{ ns.equal }}
|
|
73
72
|
{%- if config.signature_crossrefs and config.separate_signature -%}
|
|
74
73
|
{%- with expression = type_parameter.default -%}
|
|
75
|
-
{
|
|
76
|
-
{%- include "expression"|get_template with context -%}
|
|
74
|
+
{%- include "expression.html.jinja" with context -%}
|
|
77
75
|
{%- endwith -%}
|
|
78
76
|
{%- else -%}
|
|
79
77
|
{{ type_parameter.default|safe }}
|