mkdocstrings-matlab 0.8.0__py3-none-any.whl → 0.8.2__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- mkdocstrings_handlers/matlab/collect.py +8 -9
- mkdocstrings_handlers/matlab/models.py +3 -3
- mkdocstrings_handlers/matlab/templates/material/children.html.jinja +2 -2
- mkdocstrings_handlers/matlab/templates/material/namespace.html.jinja +1 -1
- {mkdocstrings_matlab-0.8.0.dist-info → mkdocstrings_matlab-0.8.2.dist-info}/METADATA +1 -1
- {mkdocstrings_matlab-0.8.0.dist-info → mkdocstrings_matlab-0.8.2.dist-info}/RECORD +8 -8
- {mkdocstrings_matlab-0.8.0.dist-info → mkdocstrings_matlab-0.8.2.dist-info}/WHEEL +0 -0
- {mkdocstrings_matlab-0.8.0.dist-info → mkdocstrings_matlab-0.8.2.dist-info}/licenses/LICENSE +0 -0
@@ -152,7 +152,7 @@ class PathCollection(ModulesCollection):
|
|
152
152
|
self._mapping: dict[str, deque[Path]] = defaultdict(deque)
|
153
153
|
self._models: dict[Path, LazyModel] = {}
|
154
154
|
self._members: dict[Path, list[tuple[str, Path]]] = defaultdict(list)
|
155
|
-
self._folders: dict[
|
155
|
+
self._folders: dict[Path, LazyModel] = {}
|
156
156
|
self._config_path = config_path
|
157
157
|
|
158
158
|
self.config = config
|
@@ -198,12 +198,12 @@ class PathCollection(ModulesCollection):
|
|
198
198
|
elif self._config_path is not None and "/" in identifier:
|
199
199
|
absolute_path = (self._config_path / Path(identifier)).resolve()
|
200
200
|
if absolute_path.exists():
|
201
|
-
|
202
|
-
if
|
203
|
-
path, member =
|
201
|
+
|
202
|
+
if absolute_path.suffix:
|
203
|
+
path, member = absolute_path.parent, absolute_path.stem
|
204
204
|
else:
|
205
|
-
member = None
|
206
|
-
lazymodel = self._folders.get(
|
205
|
+
path, member = absolute_path, None
|
206
|
+
lazymodel = self._folders.get(path, None)
|
207
207
|
|
208
208
|
if lazymodel is not None:
|
209
209
|
model = lazymodel.model()
|
@@ -548,9 +548,8 @@ class PathCollection(ModulesCollection):
|
|
548
548
|
"@",
|
549
549
|
]:
|
550
550
|
if member.parent.is_relative_to(self._config_path):
|
551
|
-
relative_path = member.parent.relative_to(self._config_path)
|
552
551
|
if member.parent not in self._folders:
|
553
|
-
self._folders[
|
552
|
+
self._folders[member.parent] = LazyModel(
|
554
553
|
member.parent, self
|
555
554
|
)
|
556
555
|
else:
|
@@ -771,7 +770,7 @@ class LazyModel:
|
|
771
770
|
|
772
771
|
def _collect_folder(self, path: Path) -> Folder:
|
773
772
|
name = path.stem
|
774
|
-
model = Folder(name, filepath=path, path_collection=self._path_collection)
|
773
|
+
model = Folder("/" + name, filepath=path, path_collection=self._path_collection)
|
775
774
|
return self._collect_directory(path, model)
|
776
775
|
|
777
776
|
def _collect_readme_md(self, path, parent: PathMixin) -> Docstring | None:
|
@@ -193,8 +193,8 @@ class PathMixin(Object):
|
|
193
193
|
"""
|
194
194
|
|
195
195
|
def __init__(self, *args: Any, filepath: Path | None = None, **kwargs: Any) -> None:
|
196
|
-
self._filepath: Path | None = filepath
|
197
196
|
super().__init__(*args, **kwargs)
|
197
|
+
self._filepath: Path | None = filepath
|
198
198
|
|
199
199
|
@property
|
200
200
|
def filepath(self) -> Path | None:
|
@@ -212,9 +212,9 @@ class MatlabMixin(Object):
|
|
212
212
|
docstring: Docstring | None = None,
|
213
213
|
**kwargs: Any,
|
214
214
|
):
|
215
|
+
super().__init__(*args, **kwargs)
|
215
216
|
self._parent: "Class | Classfolder | Namespace | _ParentGrabber | None" = parent
|
216
217
|
self._docstring: Docstring | None = docstring
|
217
|
-
super().__init__(*args, **kwargs)
|
218
218
|
|
219
219
|
@property
|
220
220
|
def parent(self) -> Object | None:
|
@@ -570,7 +570,7 @@ class Folder(MatlabMixin, PathMixin, Module, MatlabObject):
|
|
570
570
|
self.extra["mkdocstrings"] = {"template": "folder.html.jinja"}
|
571
571
|
|
572
572
|
def __repr__(self) -> str:
|
573
|
-
return f"Folder({self.
|
573
|
+
return f"Folder({self.path!r})"
|
574
574
|
|
575
575
|
@property
|
576
576
|
def namespaces(self) -> dict[str, "Namespace"]:
|
@@ -99,7 +99,7 @@ Context:
|
|
99
99
|
{% endif %}
|
100
100
|
{% endwith %}
|
101
101
|
|
102
|
-
{% if config.
|
102
|
+
{% if config.show_subnamespaces or obj.is_folder %}
|
103
103
|
{% with modules = obj.modules|filter_objects(
|
104
104
|
filters=config.filters,
|
105
105
|
members_list=members_list,
|
@@ -153,7 +153,7 @@ Context:
|
|
153
153
|
{% include function|get_template with context %}
|
154
154
|
{% endwith %}
|
155
155
|
|
156
|
-
{% elif (child.is_namespace and config.
|
156
|
+
{% elif (child.is_namespace and config.show_subnamespaces) or obj.is_folder %}
|
157
157
|
{% with module = child %}
|
158
158
|
{% include module|get_template with context %}
|
159
159
|
{% endwith %}
|
@@ -30,7 +30,7 @@ Context:
|
|
30
30
|
{% set show_full_path = config.show_object_full_path %}
|
31
31
|
{% endif %}
|
32
32
|
|
33
|
-
{% set module_name = module.path if show_full_path else module.name %}
|
33
|
+
{% set module_name = module.path + ".*" if show_full_path else module.name + ".*" %}
|
34
34
|
|
35
35
|
{% if not root or config.show_root_heading %}
|
36
36
|
{% filter heading(
|
@@ -1,13 +1,13 @@
|
|
1
1
|
mkdocstrings_handlers/matlab/__init__.py,sha256=w5R9cGtqeJF0GUP_Jc_ad8FnS4FpbutnmHvzVRlohPM,1124
|
2
|
-
mkdocstrings_handlers/matlab/collect.py,sha256=
|
2
|
+
mkdocstrings_handlers/matlab/collect.py,sha256=a2ZLBpSmkfwc7uG63dnV36Y7gvnrwvmFK7Gihggn2hc,29647
|
3
3
|
mkdocstrings_handlers/matlab/enums.py,sha256=lr3wLlhPxyBym3O7Rt0cLUZYqPCz6wQ2PYBibLKLTek,982
|
4
4
|
mkdocstrings_handlers/matlab/handler.py,sha256=kHyBrHTvZJBXVgondNcbjyeRna0pMmfCnIDVk7ru3oQ,19708
|
5
|
-
mkdocstrings_handlers/matlab/models.py,sha256=
|
5
|
+
mkdocstrings_handlers/matlab/models.py,sha256=MqLZNL3um0yEeFSzv-xjzwjFpOyCdx7elyZ4X1ZV-yE,19228
|
6
6
|
mkdocstrings_handlers/matlab/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
mkdocstrings_handlers/matlab/treesitter.py,sha256=FkWGuH7EmE_aO2qub5-_NnOVacYeXW353SkB7cNMlRo,21820
|
8
|
-
mkdocstrings_handlers/matlab/templates/material/children.html.jinja,sha256=
|
8
|
+
mkdocstrings_handlers/matlab/templates/material/children.html.jinja,sha256=61OLBlQw3SaRscBkN7hVpbuSX2Bo7I0j_F581eDAUn8,6462
|
9
9
|
mkdocstrings_handlers/matlab/templates/material/folder.html.jinja,sha256=cWgaQH4EDFgL3eEIv0NRwRXYvtn9pp4tW7ntv3X2nM8,4076
|
10
|
-
mkdocstrings_handlers/matlab/templates/material/namespace.html.jinja,sha256=
|
10
|
+
mkdocstrings_handlers/matlab/templates/material/namespace.html.jinja,sha256=a7Ya3YuN3hNEvqb_aG5Yr3QCuFYv6UhX5B26Gx2-tUQ,4099
|
11
11
|
mkdocstrings_handlers/matlab/templates/material/property.html.jinja,sha256=anYCQM6AcyGgEApDC97TqzWlgVNtc1I_Ys1xyvUXye0,4396
|
12
12
|
mkdocstrings_handlers/matlab/templates/material/style.css,sha256=0_Bs5_0fHM3X9l-IU1VHbZfhNA7nUw4SKEH_3zRhCDw,557
|
13
13
|
mkdocstrings_handlers/matlab/templates/material/summary.html.jinja,sha256=hVbQGxbMWd6fl01afbg0LhfYCJD1IRPmmCdcDBxU650,735
|
@@ -15,7 +15,7 @@ mkdocstrings_handlers/matlab/templates/material/docstring/namespaces.html.jinja,
|
|
15
15
|
mkdocstrings_handlers/matlab/templates/material/docstring/properties.html.jinja,sha256=9ckdYymLlB5sflwYEaEPAQLJuVWF8nezMCV5JnanXVA,4165
|
16
16
|
mkdocstrings_handlers/matlab/templates/material/summary/namespaces.html.jinja,sha256=0vVlUB6oh-A7cpXbuDLOQLxTubyb_DisdOKm062WNMs,650
|
17
17
|
mkdocstrings_handlers/matlab/templates/material/summary/properties.html.jinja,sha256=nyPaELf9qPCxJQFxK1MWYK4fPwsk5VESh9xKHLtd-XE,643
|
18
|
-
mkdocstrings_matlab-0.8.
|
19
|
-
mkdocstrings_matlab-0.8.
|
20
|
-
mkdocstrings_matlab-0.8.
|
21
|
-
mkdocstrings_matlab-0.8.
|
18
|
+
mkdocstrings_matlab-0.8.2.dist-info/METADATA,sha256=HXy7oTcI9VTg2cvY-OduEv9ugM4wyqeobHEgVLkkC_s,4736
|
19
|
+
mkdocstrings_matlab-0.8.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
20
|
+
mkdocstrings_matlab-0.8.2.dist-info/licenses/LICENSE,sha256=TZQpwBuA3KLH56--XDAY2Qwo9gGdxeTITYhMOylmYhg,743
|
21
|
+
mkdocstrings_matlab-0.8.2.dist-info/RECORD,,
|
File without changes
|
{mkdocstrings_matlab-0.8.0.dist-info → mkdocstrings_matlab-0.8.2.dist-info}/licenses/LICENSE
RENAMED
File without changes
|