8000 docs: Update docs · diviyank/python@7e17fc4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e17fc4

Browse files
committed
docs: Update docs
1 parent 24a6136 commit 7e17fc4

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

mkdocs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,20 @@ plugins:
7373
- mkdocstrings:
7474
handlers:
7575
python:
76+
paths: [src]
7677
import:
7778
- https://docs.python.org/3/objects.inv
7879
- https://mkdocstrings.github.io/objects.inv
7980
- https://mkdocstrings.github.io/griffe/objects.inv
80-
selection:
81+
options:
8182
docstring_style: google
8283
docstring_options:
8384
ignore_init_summary: yes
84-
rendering:
8585
show_submodules: no
8686
merge_init_into_class: yes
87+
separate_signature: yes
88+
show_source: no
89+
show_root_full_path: no
8790
watch:
8891
- src/mkdocstrings_handlers
8992

src/mkdocstrings_handlers/python/handler.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def load_inventory(
142142
) -> Iterator[Tuple[str, str]]:
143143
"""Yield items and their URLs from an inventory file streamed from `in_file`.
144144
145-
This implements mkdocstrings' `load_inventory` "protocol" (see plugin.py).
145+
This implements mkdocstrings' `load_inventory` "protocol" (see [`mkdocstrings.plugin`][mkdocstrings.plugin]).
146146
147147
Arguments:
148148
in_file: The binary file-like object to read the inventory from.
@@ -159,19 +159,7 @@ def load_inventory(
159159
for item in Inventory.parse_sphinx(in_file, domain_filter=("py",)).values(): # noqa: WPS526
160160
yield item.name, posixpath.join(base_url, item.uri)
161161

162-
def collect(self, identifier: str, config: dict) -> CollectorItem: # noqa: WPS231
163-
"""Collect the documentation tree given an identifier and selection options.
164-
165-
Arguments:
166-
identifier: The dotted-path of a Python object available in the Python path.
167-
config: Selection options, used to alter the data collection done by `pytkdocs`.
168-
169-
Raises:
170-
CollectionError: When there was a problem collecting the object documentation.
171-
172-
Returns:
173-
The collected object-tree.
174-
"""
162+
def collect(self, identifier: str, config: dict) -> CollectorItem: # noqa: D102,WPS231
175163
module_name = identifier.split(".", 1)[0]
176164
unknown_module = module_name not in self._modules_collection
177165
if config.get("fallback", False) and unknown_module:

0 commit comments

Comments
 (0)
0