Skip to content

Commit 9e02793

Browse files
committed
Deployed 8e7c2bb with MkDocs version: 1.6.1
1 parent 393d71b commit 9e02793

10 files changed

Lines changed: 213 additions & 79 deletions

File tree

changelog/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

coverage/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
coviframe.contentWindow.document.body.onclick = function() {
1313
coviframe.contentWindow.location.reload();
1414
}
15-
</script> <aside class=md-source-file> <span class=md-source-file__fact> <span class=md-icon title="Last update"> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg> </span> <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-timeago" title="September 9, 2025 11:17:27 UTC"><span class=timeago datetime=2025-09-09T11:17:27+00:00 locale=en></span></span><span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="September 9, 2025 11:17:27 UTC">2025-09-09</span> </span> <span class=md-source-file__fact> <span class=md-icon title=Created> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M14.47 15.08 11 13V7h1.5v5.25l3.08 1.83c-.41.28-.79.62-1.11 1m-1.39 4.84c-.36.05-.71.08-1.08.08-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8c0 .37-.03.72-.08 1.08.69.1 1.33.32 1.92.64.1-.56.16-1.13.16-1.72 0-5.5-4.5-10-10-10S2 6.5 2 12s4.47 10 10 10c.59 0 1.16-.06 1.72-.16-.32-.59-.54-1.23-.64-1.92M18 15v3h-3v2h3v3h2v-3h3v-2h-3v-3z"/></svg> </span> <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-timeago" title="September 9, 2025 11:17:27 UTC"><span class=timeago datetime=2025-09-09T11:17:27+00:00 locale=en></span></span><span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="September 9, 2025 11:17:27 UTC">2025-09-09</span> </span> </aside> <form class=md-feedback name=feedback hidden> <fieldset> <legend class=md-feedback__title> Was this page helpful? </legend> <div class=md-feedback__inner> <div class=md-feedback__list> <button class="md-feedback__icon md-icon" type=submit title="This page was helpful" data-md-value=1> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M20 12a8 8 0 0 0-8-8 8 8 0 0 0-8 8 8 8 0 0 0 8 8 8 8 0 0 0 8-8m2 0a10 10 0 0 1-10 10A10 10 0 0 1 2 12 10 10 0 0 1 12 2a10 10 0 0 1 10 10M10 9.5c0 .8-.7 1.5-1.5 1.5S7 10.3 7 9.5 7.7 8 8.5 8s1.5.7 1.5 1.5m7 0c0 .8-.7 1.5-1.5 1.5S14 10.3 14 9.5 14.7 8 15.5 8s1.5.7 1.5 1.5m-5 7.73c-1.75 0-3.29-.73-4.19-1.81L9.23 14c.45.72 1.52 1.23 2.77 1.23s2.32-.51 2.77-1.23l1.42 1.42c-.9 1.08-2.44 1.81-4.19 1.81"/></svg> </button> <button class="md-feedback__icon md-icon" type=submit title="This page could be improved" data-md-value=0> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M20 12a8 8 0 0 0-8-8 8 8 0 0 0-8 8 8 8 0 0 0 8 8 8 8 0 0 0 8-8m2 0a10 10 0 0 1-10 10A10 10 0 0 1 2 12 10 10 0 0 1 12 2a10 10 0 0 1 10 10m-6.5-4c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5.7-1.5 1.5-1.5M10 9.5c0 .8-.7 1.5-1.5 1.5S7 10.3 7 9.5 7.7 8 8.5 8s1.5.7 1.5 1.5m2 4.5c1.75 0 3.29.72 4.19 1.81l-1.42 1.42C14.32 16.5 13.25 16 12 16s-2.32.5-2.77 1.23l-1.42-1.42C8.71 14.72 10.25 14 12 14"/></svg> </button> </div> <div class=md-feedback__note> <div data-md-value=1 hidden> Thanks for your feedback! </div> <div data-md-value=0 hidden> Let us know how we can improve this page. </div> </div> </div> </fieldset> </form> <!-- Giscus --> <!-- https://squidfunk.github.io/mkdocs-material/setup/adding-a-comment-system/#giscus-integration --> <div id=feedback style="display: none;"> <h2 id=__comments>Feedback</h2> <script src=https://giscus.app/client.js data-repo=mkdocstrings/griffe2md data-repo-id=R_kgDOJh3AFw data-category=Documentation data-category-id=DIC_kwDOJh3AF84Chq0j data-mapping=pathname data-strict=1 data-reactions-enabled=0 data-emit-metadata=0 data-input-position=top data-theme=preferred_color_scheme data-lang=en data-loading=lazy crossorigin=anonymous async>
15+
</script> <aside class=md-source-file> <span class=md-source-file__fact> <span class=md-icon title="Last update"> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M21 13.1c-.1 0-.3.1-.4.2l-1 1 2.1 2.1 1-1c.2-.2.2-.6 0-.8l-1.3-1.3c-.1-.1-.2-.2-.4-.2m-1.9 1.8-6.1 6V23h2.1l6.1-6.1zM12.5 7v5.2l4 2.4-1 1L11 13V7zM11 21.9c-5.1-.5-9-4.8-9-9.9C2 6.5 6.5 2 12 2c5.3 0 9.6 4.1 10 9.3-.3-.1-.6-.2-1-.2s-.7.1-1 .2C19.6 7.2 16.2 4 12 4c-4.4 0-8 3.6-8 8 0 4.1 3.1 7.5 7.1 7.9l-.1.2z"/></svg> </span> <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-timeago" title="September 24, 2025 14:17:06 UTC"><span class=timeago datetime=2025-09-24T14:17:06+00:00 locale=en></span></span><span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="September 24, 2025 14:17:06 UTC">2025-09-24</span> </span> <span class=md-source-file__fact> <span class=md-icon title=Created> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M14.47 15.08 11 13V7h1.5v5.25l3.08 1.83c-.41.28-.79.62-1.11 1m-1.39 4.84c-.36.05-.71.08-1.08.08-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8c0 .37-.03.72-.08 1.08.69.1 1.33.32 1.92.64.1-.56.16-1.13.16-1.72 0-5.5-4.5-10-10-10S2 6.5 2 12s4.47 10 10 10c.59 0 1.16-.06 1.72-.16-.32-.59-.54-1.23-.64-1.92M18 15v3h-3v2h3v3h2v-3h3v-2h-3v-3z"/></svg> </span> <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-timeago" title="September 24, 2025 14:17:06 UTC"><span class=timeago datetime=2025-09-24T14:17:06+00:00 locale=en></span></span><span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_date" title="September 24, 2025 14:17:06 UTC">2025-09-24</span> </span> </aside> <form class=md-feedback name=feedback hidden> <fieldset> <legend class=md-feedback__title> Was this page helpful? </legend> <div class=md-feedback__inner> <div class=md-feedback__list> <button class="md-feedback__icon md-icon" type=submit title="This page was helpful" data-md-value=1> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M20 12a8 8 0 0 0-8-8 8 8 0 0 0-8 8 8 8 0 0 0 8 8 8 8 0 0 0 8-8m2 0a10 10 0 0 1-10 10A10 10 0 0 1 2 12 10 10 0 0 1 12 2a10 10 0 0 1 10 10M10 9.5c0 .8-.7 1.5-1.5 1.5S7 10.3 7 9.5 7.7 8 8.5 8s1.5.7 1.5 1.5m7 0c0 .8-.7 1.5-1.5 1.5S14 10.3 14 9.5 14.7 8 15.5 8s1.5.7 1.5 1.5m-5 7.73c-1.75 0-3.29-.73-4.19-1.81L9.23 14c.45.72 1.52 1.23 2.77 1.23s2.32-.51 2.77-1.23l1.42 1.42c-.9 1.08-2.44 1.81-4.19 1.81"/></svg> </button> <button class="md-feedback__icon md-icon" type=submit title="This page could be improved" data-md-value=0> <svg xmlns=http://www.w3.org/2000/svg viewbox="0 0 24 24"><path d="M20 12a8 8 0 0 0-8-8 8 8 0 0 0-8 8 8 8 0 0 0 8 8 8 8 0 0 0 8-8m2 0a10 10 0 0 1-10 10A10 10 0 0 1 2 12 10 10 0 0 1 12 2a10 10 0 0 1 10 10m-6.5-4c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5.7-1.5 1.5-1.5M10 9.5c0 .8-.7 1.5-1.5 1.5S7 10.3 7 9.5 7.7 8 8.5 8s1.5.7 1.5 1.5m2 4.5c1.75 0 3.29.72 4.19 1.81l-1.42 1.42C14.32 16.5 13.25 16 12 16s-2.32.5-2.77 1.23l-1.42-1.42C8.71 14.72 10.25 14 12 14"/></svg> </button> </div> <div class=md-feedback__note> <div data-md-value=1 hidden> Thanks for your feedback! </div> <div data-md-value=0 hidden> Let us know how we can improve this page. </div> </div> </div> </fieldset> </form> <!-- Giscus --> <!-- https://squidfunk.github.io/mkdocs-material/setup/adding-a-comment-system/#giscus-integration --> <div id=feedback style="display: none;"> <h2 id=__comments>Feedback</h2> <script src=https://giscus.app/client.js data-repo=mkdocstrings/griffe2md data-repo-id=R_kgDOJh3AFw data-category=Documentation data-category-id=DIC_kwDOJh3AF84Chq0j data-mapping=pathname data-strict=1 data-reactions-enabled=0 data-emit-metadata=0 data-input-position=top data-theme=preferred_color_scheme data-lang=en data-loading=lazy crossorigin=anonymous async>
1616
</script> <!-- Synchronize Giscus theme with palette --> <script>
1717
var giscus = document.querySelector("script[src*=giscus]")
1818

credits/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

llms-full.txt

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,13 @@ default_config: ConfigDict = {
152152
"preload_modules": None,
153153
"load_external_modules": False,
154154
"allow_inspection": True,
155+
"force_inspection": False,
155156
"summary": True,
156157
"show_docstring_classes": True,
157158
"show_docstring_functions": True,
158159
"show_docstring_modules": True,
160+
"extensions": [],
161+
"search_paths": [],
159162
}
160163
```
161164

@@ -182,10 +185,12 @@ Attributes:
182185

183186
- **`allow_inspection`** (`bool`) – Allow using introspection on modules for which sources aren't available (compiled modules, etc.).
184187
- **`annotations_path`** (`Literal['brief', 'source', 'full']`) – The verbosity for annotations path: brief (recommended), source (as written in the source), or full.
185-
- **`docstring_options`** (`dict`) – mkdocstring configuration
188+
- **`docstring_options`** (`DocstringOptions`) – mkdocstring configuration
186189
- **`docstring_section_style`** (`Literal['list', 'table']`) – The style used to render docstring sections.
187190
- **`docstring_style`** (`Literal['google', 'numpy', 'sphinx', 'auto'] | None`) – The style in which docstrings are written: auto, google, numpy, sphinx, or None.
191+
- **`extensions`** (`list[LoadableExtensionType]`) – A list of Griffe extensions to load.
188192
- **`filters`** (`list[str] | list[tuple[Pattern[str], bool]]`) – A list of filters.
193+
- **`force_inspection`** (`bool`) – Force using introspection on modules even if sources are available.
189194
- **`group_by_category`** (`bool`) – Group the object's children by categories: attributes, classes, functions, and modules.
190195
- **`heading_level`** (`int`) – The initial heading level to use.
191196
- **`inherited_members`** (`bool | list[str]`) – A boolean, or an explicit list of inherited members to render.
@@ -195,6 +200,7 @@ Attributes:
195200
- **`members_order`** (`Literal['alphabetical', 'source']`) – The members ordering to use.
196201
- **`merge_init_into_class`** (`bool`) – Whether to merge the __init__ method into the class' signature and docstring.
197202
- **`preload_modules`** (`list[str] | None`) – Pre-load modules that are not specified directly in autodoc instructions (::: identifier).
203+
- **`search_paths`** (`list[str]`) – A list of paths to search packages into.
198204
- **`separate_signature`** (`bool`) – Whether to put the whole signature in a code block below the heading.
199205
- **`show_bases`** (`bool`) – Show the base classes of a class.
200206
- **`show_category_heading`** (`bool`) – When grouped by categories, show a heading for each category.
@@ -241,7 +247,7 @@ The verbosity for annotations path: `brief` (recommended), `source` (as written
241247
### docstring_options
242248

243249
```
244-
docstring_options: dict
250+
docstring_options: DocstringOptions
245251
```
246252

247253
mkdocstring [configuration](https://mkdocstrings.github.io/python/usage/configuration/general/)
@@ -264,6 +270,14 @@ docstring_style: (
264270

265271
The style in which docstrings are written: `auto`, `google`, `numpy`, `sphinx`, or `None`.
266272

273+
### extensions
274+
275+
```
276+
extensions: list[LoadableExtensionType]
277+
```
278+
279+
A list of Griffe extensions to load.
280+
267281
### filters
268282

269283
```
@@ -274,6 +288,14 @@ A list of filters.
274288

275289
A filter starting with `!` will exclude matching objects instead of including them. The `members` option takes precedence over `filters` (filters will still be applied recursively to lower members in the hierarchy).
276290

291+
### force_inspection
292+
293+
```
294+
force_inspection: bool
295+
```
296+
297+
Force using introspection on modules even if sources are available.
298+
277299
### group_by_category
278300

279301
```
@@ -359,6 +381,14 @@ For an imported member to be rendered, you need to add it to the `__all__` attri
359381

360382
The modules must be listed as an array of strings.
361383

384+
### search_paths
385+
386+
```
387+
search_paths: list[str]
388+
```
389+
390+
A list of paths to search packages into.
391+
362392
### separate_signature
363393

364394
```
@@ -1473,6 +1503,10 @@ Parameters:
14731503
- **`obj`** (`Object`) – The Griffe object to render docs for.
14741504
- **`config`** (`ConfigDict | None`, default: `None` ) – The rendering configuration.
14751505

1506+
Warning
1507+
1508+
When using this function programmatically, options such as `docstring_style` and `docstring_options` must be passed to the Griffe loader so that they are correctly set when loading data. Check griffe.GriffeLoader for more information.
1509+
14761510
Returns:
14771511

14781512
- `str` – Markdown.
@@ -1487,6 +1521,12 @@ def render_object_docs(obj: Object, config: ConfigDict | None = None) -> str:
14871521
obj: The Griffe object to render docs for.
14881522
config: The rendering configuration.
14891523

1524+
Warning:
1525+
When using this function programmatically,
1526+
options such as `docstring_style` and `docstring_options` must be passed
1527+
to the Griffe loader so that they are correctly set when loading data.
1528+
Check [`griffe.GriffeLoader`][] for more information.
1529+
14901530
Returns:
14911531
Markdown.
14921532
"""
@@ -1530,7 +1570,16 @@ def render_package_docs(package: str, config: ConfigDict | None = None) -> str:
15301570
"""
15311571
config = cast("ConfigDict", {**default_config, **(config or {})})
15321572
parser = config["docstring_style"] and Parser(config["docstring_style"])
1533-
loader = GriffeLoader(docstring_parser=parser)
1573+
parser_options: DocstringOptions = config["docstring_options"]
1574+
extensions = load_extensions(*config["extensions"]) if config["extensions"] else None
1575+
loader = GriffeLoader(
1576+
extensions=extensions,
1577+
search_paths=config["search_paths"] + sys.path,
1578+
docstring_parser=parser,
1579+
docstring_options=parser_options,
1580+
allow_inspection=config["allow_inspection"],
1581+
force_inspection=config["force_inspection"],
1582+
)
15341583
module = loader.load(package)
15351584
loader.resolve_aliases(external=True)
15361585
return render_object_docs(module, config) # type: ignore[arg-type]

objects.inv

43 Bytes
Binary file not shown.

reference/api/index.html

Lines changed: 97 additions & 61 deletions
Large diffs are not rendered by default.

reference/api/index.md

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,13 @@ default_config: ConfigDict = {
9797
"preload_modules": None,
9898
"load_external_modules": False,
9999
"allow_inspection": True,
100+
"force_inspection": False,
100101
"summary": True,
101102
"show_docstring_classes": True,
102103
"show_docstring_functions": True,
103104
"show_docstring_modules": True,
105+
"extensions": [],
106+
"search_paths": [],
104107
}
105108
```
106109

@@ -127,10 +130,12 @@ Attributes:
127130

128131
- **`allow_inspection`** (`bool`) – Allow using introspection on modules for which sources aren't available (compiled modules, etc.).
129132
- **`annotations_path`** (`Literal['brief', 'source', 'full']`) – The verbosity for annotations path: brief (recommended), source (as written in the source), or full.
130-
- **`docstring_options`** (`dict`) – mkdocstring configuration
133+
- **`docstring_options`** (`DocstringOptions`) – mkdocstring configuration
131134
- **`docstring_section_style`** (`Literal['list', 'table']`) – The style used to render docstring sections.
132135
- **`docstring_style`** (`Literal['google', 'numpy', 'sphinx', 'auto'] | None`) – The style in which docstrings are written: auto, google, numpy, sphinx, or None.
136+
- **`extensions`** (`list[LoadableExtensionType]`) – A list of Griffe extensions to load.
133137
- **`filters`** (`list[str] | list[tuple[Pattern[str], bool]]`) – A list of filters.
138+
- **`force_inspection`** (`bool`) – Force using introspection on modules even if sources are available.
134139
- **`group_by_category`** (`bool`) – Group the object's children by categories: attributes, classes, functions, and modules.
135140
- **`heading_level`** (`int`) – The initial heading level to use.
136141
- **`inherited_members`** (`bool | list[str]`) – A boolean, or an explicit list of inherited members to render.
@@ -140,6 +145,7 @@ Attributes:
140145
- **`members_order`** (`Literal['alphabetical', 'source']`) – The members ordering to use.
141146
- **`merge_init_into_class`** (`bool`) – Whether to merge the __init__ method into the class' signature and docstring.
142147
- **`preload_modules`** (`list[str] | None`) – Pre-load modules that are not specified directly in autodoc instructions (::: identifier).
148+
- **`search_paths`** (`list[str]`) – A list of paths to search packages into.
143149
- **`separate_signature`** (`bool`) – Whether to put the whole signature in a code block below the heading.
144150
- **`show_bases`** (`bool`) – Show the base classes of a class.
145151
- **`show_category_heading`** (`bool`) – When grouped by categories, show a heading for each category.
@@ -186,7 +192,7 @@ The verbosity for annotations path: `brief` (recommended), `source` (as written
186192
### docstring_options
187193

188194
```
189-
docstring_options: dict
195+
docstring_options: DocstringOptions
190196
```
191197

192198
mkdocstring [configuration](https://mkdocstrings.github.io/python/usage/configuration/general/)
@@ -209,6 +215,14 @@ docstring_style: (
209215

210216
The style in which docstrings are written: `auto`, `google`, `numpy`, `sphinx`, or `None`.
211217

218+
### extensions
219+
220+
```
221+
extensions: list[LoadableExtensionType]
222+
```
223+
224+
A list of Griffe extensions to load.
225+
212226
### filters
213227

214228
```
@@ -219,6 +233,14 @@ A list of filters.
219233

220234
A filter starting with `!` will exclude matching objects instead of including them. The `members` option takes precedence over `filters` (filters will still be applied recursively to lower members in the hierarchy).
221235

236+
### force_inspection
237+
238+
```
239+
force_inspection: bool
240+
```
241+
242+
Force using introspection on modules even if sources are available.
243+
222244
### group_by_category
223245

224246
```
@@ -304,6 +326,14 @@ For an imported member to be rendered, you need to add it to the `__all__` attri
304326

305327
The modules must be listed as an array of strings.
306328

329+
### search_paths
330+
331+
```
332+
search_paths: list[str]
333+
```
334+
335+
A list of paths to search packages into.
336+
307337
### separate_signature
308338

309339
```
@@ -1418,6 +1448,10 @@ Parameters:
14181448
- **`obj`** (`Object`) – The Griffe object to render docs for.
14191449
- **`config`** (`ConfigDict | None`, default: `None` ) – The rendering configuration.
14201450

1451+
Warning
1452+
1453+
When using this function programmatically, options such as `docstring_style` and `docstring_options` must be passed to the Griffe loader so that they are correctly set when loading data. Check griffe.GriffeLoader for more information.
1454+
14211455
Returns:
14221456

14231457
- `str` – Markdown.
@@ -1432,6 +1466,12 @@ def render_object_docs(obj: Object, config: ConfigDict | None = None) -> str:
14321466
obj: The Griffe object to render docs for.
14331467
config: The rendering configuration.
14341468
1469+
Warning:
1470+
When using this function programmatically,
1471+
options such as `docstring_style` and `docstring_options` must be passed
1472+
to the Griffe loader so that they are correctly set when loading data.
1473+
Check [`griffe.GriffeLoader`][] for more information.
1474+
14351475
Returns:
14361476
Markdown.
14371477
"""
@@ -1475,7 +1515,16 @@ def render_package_docs(package: str, config: ConfigDict | None = None) -> str:
14751515
"""
14761516
config = cast("ConfigDict", {**default_config, **(config or {})})
14771517
parser = config["docstring_style"] and Parser(config["docstring_style"])
1478-
loader = GriffeLoader(docstring_parser=parser)
1518+
parser_options: DocstringOptions = config["docstring_options"]
1519+
extensions = load_extensions(*config["extensions"]) if config["extensions"] else None
1520+
loader = GriffeLoader(
1521+
extensions=extensions,
1522+
search_paths=config["search_paths"] + sys.path,
1523+
docstring_parser=parser,
1524+
docstring_options=parser_options,
1525+
allow_inspection=config["allow_inspection"],
1526+
force_inspection=config["force_inspection"],
1527+
)
14791528
module = loader.load(package)
14801529
loader.resolve_aliases(external=True)
14811530
return render_object_docs(module, config) # type: ignore[arg-type]

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)