mkdocstrings-python 1.16.9__py3-none-any.whl → 1.16.11__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/_internal/config.py +2 -2
- mkdocstrings_handlers/python/_internal/rendering.py +6 -4
- mkdocstrings_handlers/python/templates/material/_base/attribute.html.jinja +5 -3
- mkdocstrings_handlers/python/templates/material/_base/class.html.jinja +4 -2
- mkdocstrings_handlers/python/templates/material/_base/function.html.jinja +4 -2
- mkdocstrings_handlers/python/templates/material/_base/module.html.jinja +4 -2
- mkdocstrings_handlers/python/templates/material/style.css +10 -0
- {mkdocstrings_python-1.16.9.dist-info → mkdocstrings_python-1.16.11.dist-info}/METADATA +1 -1
- {mkdocstrings_python-1.16.9.dist-info → mkdocstrings_python-1.16.11.dist-info}/RECORD +12 -12
- {mkdocstrings_python-1.16.9.dist-info → mkdocstrings_python-1.16.11.dist-info}/WHEEL +1 -1
- {mkdocstrings_python-1.16.9.dist-info → mkdocstrings_python-1.16.11.dist-info}/entry_points.txt +0 -0
- {mkdocstrings_python-1.16.9.dist-info → mkdocstrings_python-1.16.11.dist-info}/licenses/LICENSE +0 -0
|
@@ -971,7 +971,7 @@ class Inventory:
|
|
|
971
971
|
),
|
|
972
972
|
]
|
|
973
973
|
|
|
974
|
-
|
|
974
|
+
base_url: Annotated[
|
|
975
975
|
str | None,
|
|
976
976
|
_Field(
|
|
977
977
|
parent="inventories",
|
|
@@ -989,7 +989,7 @@ class Inventory:
|
|
|
989
989
|
|
|
990
990
|
@property
|
|
991
991
|
def _config(self) -> dict[str, Any]:
|
|
992
|
-
return {"
|
|
992
|
+
return {"base_url": self.base_url, "domains": self.domains}
|
|
993
993
|
|
|
994
994
|
|
|
995
995
|
# YORE: EOL 3.9: Replace `**_dataclass_options` with `frozen=True, kw_only=True` within line.
|
|
@@ -185,10 +185,12 @@ def do_format_signature(
|
|
|
185
185
|
# Pygments sees it as a function call and not a function definition.
|
|
186
186
|
# The result is that the function name is not parsed as such,
|
|
187
187
|
# but instead as a regular name: `n` CSS class instead of `nf`.
|
|
188
|
-
#
|
|
189
|
-
#
|
|
190
|
-
|
|
191
|
-
|
|
188
|
+
# When the function name is a known special name like `__exit__`,
|
|
189
|
+
# Pygments will set an `fm` (function -> magic) CSS class.
|
|
190
|
+
# To fix this, we replace the CSS class in the first span with `nf`,
|
|
191
|
+
# unless we already found an `nf` span.
|
|
192
|
+
if not re.search(r'<span class="nf">', signature):
|
|
193
|
+
signature = re.sub(r'<span class="[a-z]+">', '<span class="nf">', signature, count=1)
|
|
192
194
|
|
|
193
195
|
if stash := env.filters["stash_crossref"].stash:
|
|
194
196
|
for key, value in stash.items():
|
|
@@ -39,7 +39,7 @@ Context:
|
|
|
39
39
|
role="data" if attribute.parent.kind.value == "module" else "attr",
|
|
40
40
|
id=html_id,
|
|
41
41
|
class="doc doc-heading",
|
|
42
|
-
toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-attribute"></code> '|safe if config.show_symbol_type_toc else '') + (config.toc_label if config.toc_label and root else
|
|
42
|
+
toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-attribute"></code> '|safe if config.show_symbol_type_toc else '') + (config.toc_label if config.toc_label and root else attribute.name),
|
|
43
43
|
) %}
|
|
44
44
|
|
|
45
45
|
{% block heading scoped %}
|
|
@@ -48,8 +48,10 @@ Context:
|
|
|
48
48
|
This block renders the heading for the attribute.
|
|
49
49
|
-#}
|
|
50
50
|
{% if config.show_symbol_type_heading %}<code class="doc-symbol doc-symbol-heading doc-symbol-attribute"></code>{% endif %}
|
|
51
|
-
{% if config.
|
|
52
|
-
|
|
51
|
+
{% if config.heading and root %}
|
|
52
|
+
{{ config.heading }}
|
|
53
|
+
{% elif config.separate_signature %}
|
|
54
|
+
<span class="doc doc-object-name doc-attribute-name">{{ attribute_name }}</span>
|
|
53
55
|
{% else %}
|
|
54
56
|
{%+ filter highlight(language="python", inline=True) %}
|
|
55
57
|
{{ attribute_name }}{% if attribute.annotation and config.show_signature_annotations %}: {{ attribute.annotation }}{% endif %}
|
|
@@ -47,8 +47,10 @@ Context:
|
|
|
47
47
|
This block renders the heading for the class.
|
|
48
48
|
-#}
|
|
49
49
|
{% if config.show_symbol_type_heading %}<code class="doc-symbol doc-symbol-heading doc-symbol-class"></code>{% endif %}
|
|
50
|
-
{% if config.
|
|
51
|
-
|
|
50
|
+
{% if config.heading and root %}
|
|
51
|
+
{{ config.heading }}
|
|
52
|
+
{% elif config.separate_signature %}
|
|
53
|
+
<span class="doc doc-object-name doc-class-name">{{ class_name }}</span>
|
|
52
54
|
{% elif config.merge_init_into_class and "__init__" in all_members %}
|
|
53
55
|
{% with function = all_members["__init__"] %}
|
|
54
56
|
{%+ filter highlight(language="python", inline=True) -%}
|
|
@@ -54,8 +54,10 @@ Context:
|
|
|
54
54
|
This block renders the heading for the function.
|
|
55
55
|
-#}
|
|
56
56
|
{% if config.show_symbol_type_heading %}<code class="doc-symbol doc-symbol-heading doc-symbol-{{ symbol_type }}"></code>{% endif %}
|
|
57
|
-
{% if config.
|
|
58
|
-
|
|
57
|
+
{% if config.heading and root %}
|
|
58
|
+
{{ config.heading }}
|
|
59
|
+
{% elif config.separate_signature %}
|
|
60
|
+
<span class="doc doc-object-name doc-function-name">{{ function_name }}</span>
|
|
59
61
|
{% else %}
|
|
60
62
|
{%+ filter highlight(language="python", inline=True) -%}
|
|
61
63
|
{#- YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. -#}
|
|
@@ -47,8 +47,10 @@ Context:
|
|
|
47
47
|
This block renders the heading for the module.
|
|
48
48
|
-#}
|
|
49
49
|
{% if config.show_symbol_type_heading %}<code class="doc-symbol doc-symbol-heading doc-symbol-module"></code>{% endif %}
|
|
50
|
-
{% if config.
|
|
51
|
-
|
|
50
|
+
{% if config.heading and root %}
|
|
51
|
+
{{ config.heading }}
|
|
52
|
+
{% elif config.separate_signature %}
|
|
53
|
+
<span class="doc doc-object-name doc-module-name">{{ module_name }}</span>
|
|
52
54
|
{% else %}
|
|
53
55
|
<code>{{ module_name }}</code>
|
|
54
56
|
{% endif %}
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
display: inline;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
/* No text transformation from Material for MkDocs for H5 headings. */
|
|
13
|
+
.md-typeset h5 .doc-object-name {
|
|
14
|
+
text-transform: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
12
17
|
/* Max width for docstring sections tables. */
|
|
13
18
|
.doc .md-typeset__table,
|
|
14
19
|
.doc .md-typeset__table table {
|
|
@@ -30,6 +35,11 @@
|
|
|
30
35
|
display: inline;
|
|
31
36
|
}
|
|
32
37
|
|
|
38
|
+
/* Default font size for parameter headings. */
|
|
39
|
+
.md-typeset .doc-heading-parameter {
|
|
40
|
+
font-size: inherit;
|
|
41
|
+
}
|
|
42
|
+
|
|
33
43
|
/* Prefer space on the right, not the left of parameter permalinks. */
|
|
34
44
|
.doc-heading-parameter .headerlink {
|
|
35
45
|
margin-left: 0 !important;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
mkdocstrings_handlers/python/__init__.py,sha256=lg-XSQYS-o5J9_jBU35SA7rCW54CK0JsNcrSgsCfW2k,1614
|
|
2
2
|
mkdocstrings_handlers/python/_internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
mkdocstrings_handlers/python/_internal/config.py,sha256=
|
|
3
|
+
mkdocstrings_handlers/python/_internal/config.py,sha256=SsRB0fDCRAe7myUD5govrAFX9_4LkoaegQkz_DAd7Ek,33481
|
|
4
4
|
mkdocstrings_handlers/python/_internal/debug.py,sha256=KnkMM_XSjcE0-9U86AZPucS2hsCD6Rfn_BgMs7_xc3U,2845
|
|
5
5
|
mkdocstrings_handlers/python/_internal/handler.py,sha256=FqIQzxz8k1COAlCzNlKlTzDlbEctXq77kaCxfl2-ILI,15976
|
|
6
|
-
mkdocstrings_handlers/python/_internal/rendering.py,sha256=
|
|
6
|
+
mkdocstrings_handlers/python/_internal/rendering.py,sha256=D6PpdX8GV3G9kqc1ILYQ4fYOgxYE00BBjjZtJ8IY2hU,26658
|
|
7
7
|
mkdocstrings_handlers/python/config.py,sha256=gDuOF8vYwo00opwtObQ55WQq2ECynirwcaGnd0VCHg4,477
|
|
8
8
|
mkdocstrings_handlers/python/handler.py,sha256=xZnhzVC_y6ni3eX_RRO8132ED7DqXqU7IjA6sm8lCk8,480
|
|
9
9
|
mkdocstrings_handlers/python/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
mkdocstrings_handlers/python/rendering.py,sha256=xSfGS8K1uo1raw4ChhTyZE1bxdM8NKK4uD1vCO_R4lA,486
|
|
11
11
|
mkdocstrings_handlers/python/templates/material/_base/attribute.html,sha256=M_eHCPrDCC9FFzgTaOS61MqUTUK1ha85SK1kW2lQeBY,310
|
|
12
|
-
mkdocstrings_handlers/python/templates/material/_base/attribute.html.jinja,sha256=
|
|
12
|
+
mkdocstrings_handlers/python/templates/material/_base/attribute.html.jinja,sha256=ekZDKvC-2pbubwwBvBppooIWotyivCxh1U81lT0ga_8,4838
|
|
13
13
|
mkdocstrings_handlers/python/templates/material/_base/backlinks.html.jinja,sha256=FFrvIa-KH-DhT1cpc9HL0ecShR2gUVGs3VT9c1q88z8,467
|
|
14
14
|
mkdocstrings_handlers/python/templates/material/_base/children.html,sha256=EQuTDoMRrICrieD62VZ9Ay-tw3sJQe4Jh7yDnFe1zFk,307
|
|
15
15
|
mkdocstrings_handlers/python/templates/material/_base/children.html.jinja,sha256=JKQtXVemw8SJ1lPbCw_BNUKDnbtvnqzmC5cwhiYqxow,6541
|
|
16
16
|
mkdocstrings_handlers/python/templates/material/_base/class.html,sha256=phAElLOLdaCRMW7uv1G5ePW3deavBpCp29OsK2Njn6E,298
|
|
17
|
-
mkdocstrings_handlers/python/templates/material/_base/class.html.jinja,sha256=
|
|
17
|
+
mkdocstrings_handlers/python/templates/material/_base/class.html.jinja,sha256=5j876SnXhx6-MpEJs25ADlKKyMRIr4u-1p5Q36UhLKE,9717
|
|
18
18
|
mkdocstrings_handlers/python/templates/material/_base/docstring.html,sha256=x2JcxMNtM0xc1qZv1cKJQv4svNXyFThtKLJ66YqFHAQ,310
|
|
19
19
|
mkdocstrings_handlers/python/templates/material/_base/docstring.html.jinja,sha256=q88YLwuw2KRlxQMADP14XsnzDt0UYk8nmmzKb1ECcbQ,4247
|
|
20
20
|
mkdocstrings_handlers/python/templates/material/_base/docstring/admonition.html,sha256=YAwZQv3ABAtcge8-PTpi0jIAaDONE8E2sWiBSSKSl98,343
|
|
@@ -46,7 +46,7 @@ mkdocstrings_handlers/python/templates/material/_base/docstring/yields.html.jinj
|
|
|
46
46
|
mkdocstrings_handlers/python/templates/material/_base/expression.html,sha256=ngA65vQBP142R6UeOpSVDUlVLwBjfiJfYMyi7WjHH9I,313
|
|
47
47
|
mkdocstrings_handlers/python/templates/material/_base/expression.html.jinja,sha256=RZX2Wbmhlldvr0H8SB0hFOiHaxY7G7wnKNOhBRoJpJY,4688
|
|
48
48
|
mkdocstrings_handlers/python/templates/material/_base/function.html,sha256=k-cXHimSwRoXuwF0H26XvdaW5mgIl9miMd7zD641oj8,307
|
|
49
|
-
mkdocstrings_handlers/python/templates/material/_base/function.html.jinja,sha256=
|
|
49
|
+
mkdocstrings_handlers/python/templates/material/_base/function.html.jinja,sha256=I5NyacXIFEVwIGPntS1w3nKQNiKKDHC3dRc2_Ekj_R4,6305
|
|
50
50
|
mkdocstrings_handlers/python/templates/material/_base/labels.html,sha256=zeazKqY21Xjch_qEIXvKWI-FM6MVlNSxc0kFoQghk50,301
|
|
51
51
|
mkdocstrings_handlers/python/templates/material/_base/labels.html.jinja,sha256=mue5CMl2WQpagj3aYqbUiAQX0P72aLCgY3MX_zEpE8s,786
|
|
52
52
|
mkdocstrings_handlers/python/templates/material/_base/language.html,sha256=mLBW7Ovd7S03KPJzbvKkOLk-lvGumaQnj4VgcDjDnjc,307
|
|
@@ -58,7 +58,7 @@ mkdocstrings_handlers/python/templates/material/_base/languages/ja.html.jinja,sh
|
|
|
58
58
|
mkdocstrings_handlers/python/templates/material/_base/languages/zh.html,sha256=FzTS6G4SgdlHbhEPKqd6y2wU_ewQkPUm1_kzET6NIJ4,319
|
|
59
59
|
mkdocstrings_handlers/python/templates/material/_base/languages/zh.html.jinja,sha256=Zr0o9OJv_NWZ2IHZrQYUpM7U-GCnRNr9y5FVQzIHLxY,1125
|
|
60
60
|
mkdocstrings_handlers/python/templates/material/_base/module.html,sha256=lv0T7AeEMQBL6SNX85YXHH7fzlpuEe8vhE5n9Dsexhk,301
|
|
61
|
-
mkdocstrings_handlers/python/templates/material/_base/module.html.jinja,sha256=
|
|
61
|
+
mkdocstrings_handlers/python/templates/material/_base/module.html.jinja,sha256=aSZwWWtlZFNp91tg-Jk5JLL-UfmzXJHzqta32Pgu9V8,4679
|
|
62
62
|
mkdocstrings_handlers/python/templates/material/_base/signature.html,sha256=1GP2y9T0clgpzZBTcrat5Vj8zhANgQGfT1KU1KxXPI8,310
|
|
63
63
|
mkdocstrings_handlers/python/templates/material/_base/signature.html.jinja,sha256=UsGg2aFf1J68SPXpWpJ3DvsTbFTSIKVeLc7V-L3JtHc,5401
|
|
64
64
|
mkdocstrings_handlers/python/templates/material/_base/summary.html,sha256=5EPKJLvlth7SlgAWjy5bRQwDmcFq5aFaUQjTm-IHt30,304
|
|
@@ -124,7 +124,7 @@ mkdocstrings_handlers/python/templates/material/module.html,sha256=jcyPnLCOyVu8C
|
|
|
124
124
|
mkdocstrings_handlers/python/templates/material/module.html.jinja,sha256=ws59JJTsITCndGTXSUXoQ14BcXsKJswZW24ceJaHGNI,40
|
|
125
125
|
mkdocstrings_handlers/python/templates/material/signature.html,sha256=Thct33klO6ZUQnXYwilH1Tbd9H7NmtahTGd7wy2JdoA,76
|
|
126
126
|
mkdocstrings_handlers/python/templates/material/signature.html.jinja,sha256=EvvFPpG9PEUi25f-_2V0iVXTsUlvC9iTWtgFbJ3YVeI,43
|
|
127
|
-
mkdocstrings_handlers/python/templates/material/style.css,sha256=
|
|
127
|
+
mkdocstrings_handlers/python/templates/material/style.css,sha256=sEe5c2ET1KNFkvujyQmB4lMmHHKzdmMurMiwwIHOjd0,4440
|
|
128
128
|
mkdocstrings_handlers/python/templates/material/summary.html,sha256=5JZ1WVzGzeZisCRk3RnP9x7nN8HDPqUPTeMXaXYjqBI,74
|
|
129
129
|
mkdocstrings_handlers/python/templates/material/summary.html.jinja,sha256=Wd7HXzuU0mriz82Riy2PDpRbcMo-7IHrAdBsvxbtKrY,41
|
|
130
130
|
mkdocstrings_handlers/python/templates/material/summary/attributes.html,sha256=KHEuRQIYPo0r-65XVpipHcivi5Q9iINlSPpS4cxuZCQ,85
|
|
@@ -184,8 +184,8 @@ mkdocstrings_handlers/python/templates/readthedocs/languages/ja.html.jinja,sha25
|
|
|
184
184
|
mkdocstrings_handlers/python/templates/readthedocs/languages/zh.html,sha256=OIRkMlzFJ_wlXFzB96874tz6zn8UVFpEQX2hQJru2ug,79
|
|
185
185
|
mkdocstrings_handlers/python/templates/readthedocs/languages/zh.html.jinja,sha256=OuvrkorxuL0gKZNYneann1bwd1Z2i5bBY7SbC496HDw,46
|
|
186
186
|
mkdocstrings_handlers/python/templates/readthedocs/style.css,sha256=Ds8vF1rSxc2B0c4P10osx4cqXHWMntcSCxmRfX-nfzw,971
|
|
187
|
-
mkdocstrings_python-1.16.
|
|
188
|
-
mkdocstrings_python-1.16.
|
|
189
|
-
mkdocstrings_python-1.16.
|
|
190
|
-
mkdocstrings_python-1.16.
|
|
191
|
-
mkdocstrings_python-1.16.
|
|
187
|
+
mkdocstrings_python-1.16.11.dist-info/METADATA,sha256=QEI05GPz0CrFfdEZszYg8Gr95U7KNHaGPiu9ytMopjA,5607
|
|
188
|
+
mkdocstrings_python-1.16.11.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
|
189
|
+
mkdocstrings_python-1.16.11.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
190
|
+
mkdocstrings_python-1.16.11.dist-info/licenses/LICENSE,sha256=JGb4pdPEM8TTjjhr-uNCO7oXkiVrwG5Pz0JamcjNF_s,754
|
|
191
|
+
mkdocstrings_python-1.16.11.dist-info/RECORD,,
|
{mkdocstrings_python-1.16.9.dist-info → mkdocstrings_python-1.16.11.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{mkdocstrings_python-1.16.9.dist-info → mkdocstrings_python-1.16.11.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|