mkdocstrings-python 1.11.0__py3-none-any.whl → 1.11.1__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.
@@ -85,6 +85,8 @@ class PythonHandler(BaseHandler):
85
85
  "separate_signature": False,
86
86
  "line_length": 60,
87
87
  "merge_init_into_class": False,
88
+ "relative_crossrefs": False,
89
+ "scoped_crossrefs": False,
88
90
  "show_docstring_attributes": True,
89
91
  "show_docstring_functions": True,
90
92
  "show_docstring_classes": True,
@@ -168,6 +170,8 @@ class PythonHandler(BaseHandler):
168
170
  docstring_options (dict): The options for the docstring parser. See [docstring parsers](https://mkdocstrings.github.io/griffe/reference/docstrings/) and their options in Griffe docs.
169
171
  docstring_section_style (str): The style used to render docstring sections. Options: `table`, `list`, `spacy`. Default: `"table"`.
170
172
  merge_init_into_class (bool): Whether to merge the `__init__` method into the class' signature and docstring. Default: `False`.
173
+ relative_crossrefs (bool): Whether to enable the relative crossref syntax. Default: `False`.
174
+ scoped_crossrefs (bool): Whether to enable the scoped crossref ability. Default: `False`.
171
175
  show_if_no_docstring (bool): Show the object heading even if it has no docstring or children with docstrings. Default: `False`.
172
176
  show_docstring_attributes (bool): Whether to display the "Attributes" section in the object's docstring. Default: `True`.
173
177
  show_docstring_functions (bool): Whether to display the "Functions" or "Methods" sections in the object's docstring. Default: `True`.
@@ -133,8 +133,10 @@ Context:
133
133
  {% endwith %}
134
134
  {% if config.merge_init_into_class %}
135
135
  {% if "__init__" in class.all_members and class.all_members["__init__"].has_docstring %}
136
- {% with docstring_sections = class.all_members["__init__"].docstring.parsed %}
137
- {% include "docstring"|get_template with context %}
136
+ {% with function = class.all_members["__init__"] %}
137
+ {% with obj = function, docstring_sections = function.docstring.parsed %}
138
+ {% include "docstring"|get_template with context %}
139
+ {% endwith %}
138
140
  {% endwith %}
139
141
  {% endif %}
140
142
  {% endif %}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mkdocstrings-python
3
- Version: 1.11.0
3
+ Version: 1.11.1
4
4
  Summary: A Python handler for mkdocstrings.
5
5
  Author-Email: =?utf-8?q?Timoth=C3=A9e_Mazzucotelli?= <dev@pawamoy.fr>
6
6
  License: ISC
@@ -1,6 +1,6 @@
1
1
  mkdocstrings_handlers/python/__init__.py,sha256=k-0NWvXysr5RqWjtGyCozookveBB-ADZHIhgxvI1px8,128
2
2
  mkdocstrings_handlers/python/debug.py,sha256=4vqIbCbbz_vcjcFk6jPoF8E1kLig8AQEsQ93ybcjIVc,2894
3
- mkdocstrings_handlers/python/handler.py,sha256=0e8M6j5oHzUoPYUt--n1nN_XmlG-AMc4nXJUezvPRto,24355
3
+ mkdocstrings_handlers/python/handler.py,sha256=VXw9c82lpVfAiNRezlU8_SwPi0dNPE7gdk0KEvjiEss,24626
4
4
  mkdocstrings_handlers/python/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  mkdocstrings_handlers/python/rendering.py,sha256=225Gi6KJKxcL7wpReFsA19_GXetdgiwF-fe006Oe5rY,19939
6
6
  mkdocstrings_handlers/python/templates/material/_base/attribute.html,sha256=nn0671f4bE7VqnTs-VQL3SGPACWAxb2uJBRcP2nwYng,427
@@ -8,7 +8,7 @@ mkdocstrings_handlers/python/templates/material/_base/attribute.html.jinja,sha25
8
8
  mkdocstrings_handlers/python/templates/material/_base/children.html,sha256=mOafkSlphFQJLWfrYrIMFVRGi2yjdtN6iJh8bPt7uRI,424
9
9
  mkdocstrings_handlers/python/templates/material/_base/children.html.jinja,sha256=o7JzhXx1OSo9MM-z_gks6H1aTETIPFFvTyE1St392Xs,6414
10
10
  mkdocstrings_handlers/python/templates/material/_base/class.html,sha256=x0M8Wjk7TC9cgnstMoukLVQvxZUEMFjQA0VJQPEAC9Y,415
11
- mkdocstrings_handlers/python/templates/material/_base/class.html.jinja,sha256=3_kmoqspe9abryiv4UeBX2Nlwl3uHtR8z5YvbueSb-M,7229
11
+ mkdocstrings_handlers/python/templates/material/_base/class.html.jinja,sha256=76C9AQ1_EMHY9sRtzmQi_k0Jc234NZR2sF8yB_dXazE,7324
12
12
  mkdocstrings_handlers/python/templates/material/_base/docstring.html,sha256=9gDeMzbEUGfOBklwvriH5HMfcotOcaXUvlgLC9klTi8,427
13
13
  mkdocstrings_handlers/python/templates/material/_base/docstring.html.jinja,sha256=1kqZ_T7WMGQgFDuWQJaozLAk2FPTxNPyQuiDbFllRks,3133
14
14
  mkdocstrings_handlers/python/templates/material/_base/docstring/admonition.html,sha256=yShTX2BBdYlOGCj-Hb1NIAeWldLGE_toMDIOn1OYdPs,460
@@ -177,7 +177,7 @@ mkdocstrings_handlers/python/templates/readthedocs/languages/ja.html.jinja,sha25
177
177
  mkdocstrings_handlers/python/templates/readthedocs/languages/zh.html,sha256=OuvrkorxuL0gKZNYneann1bwd1Z2i5bBY7SbC496HDw,46
178
178
  mkdocstrings_handlers/python/templates/readthedocs/languages/zh.html.jinja,sha256=OuvrkorxuL0gKZNYneann1bwd1Z2i5bBY7SbC496HDw,46
179
179
  mkdocstrings_handlers/python/templates/readthedocs/style.css,sha256=Ds8vF1rSxc2B0c4P10osx4cqXHWMntcSCxmRfX-nfzw,971
180
- mkdocstrings_python-1.11.0.dist-info/METADATA,sha256=-kJIz7Ck3C3uUoFUVItVMHhSDGNpHuiTnSpgYqADUMc,5587
181
- mkdocstrings_python-1.11.0.dist-info/WHEEL,sha256=rSwsxJWe3vzyR5HCwjWXQruDgschpei4h_giTm0dJVE,90
182
- mkdocstrings_python-1.11.0.dist-info/licenses/LICENSE,sha256=JGb4pdPEM8TTjjhr-uNCO7oXkiVrwG5Pz0JamcjNF_s,754
183
- mkdocstrings_python-1.11.0.dist-info/RECORD,,
180
+ mkdocstrings_python-1.11.1.dist-info/METADATA,sha256=Bw2PxWuqGM2Z4BiVYVzyQ8hD1hem07mzKfHucTJ6-2I,5587
181
+ mkdocstrings_python-1.11.1.dist-info/WHEEL,sha256=rSwsxJWe3vzyR5HCwjWXQruDgschpei4h_giTm0dJVE,90
182
+ mkdocstrings_python-1.11.1.dist-info/licenses/LICENSE,sha256=JGb4pdPEM8TTjjhr-uNCO7oXkiVrwG5Pz0JamcjNF_s,754
183
+ mkdocstrings_python-1.11.1.dist-info/RECORD,,