mkdocstrings-matlab 0.8.0__py3-none-any.whl → 0.8.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.
@@ -771,7 +771,7 @@ class LazyModel:
771
771
 
772
772
  def _collect_folder(self, path: Path) -> Folder:
773
773
  name = path.stem
774
- model = Folder(name, filepath=path, path_collection=self._path_collection)
774
+ model = Folder("/" + name, filepath=path, path_collection=self._path_collection)
775
775
  return self._collect_directory(path, model)
776
776
 
777
777
  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.filepath!r})"
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.show_submodules or obj.is_folder %}
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.show_submodules) or obj.is_folder %}
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mkdocstrings-matlab
3
- Version: 0.8.0
3
+ Version: 0.8.1
4
4
  Summary: A MATLAB handler for mkdocstrings
5
5
  Author-email: Mark Hu <watermarkhu@gmail.com>
6
6
  License: MIT
@@ -1,13 +1,13 @@
1
1
  mkdocstrings_handlers/matlab/__init__.py,sha256=w5R9cGtqeJF0GUP_Jc_ad8FnS4FpbutnmHvzVRlohPM,1124
2
- mkdocstrings_handlers/matlab/collect.py,sha256=WXuRIDYL0T1fKv1MwwOC6uWAB80PxRCs4uYDgOHiQcg,29749
2
+ mkdocstrings_handlers/matlab/collect.py,sha256=lmV2fgkRhxWrpNrFes19kY3hDEa_-B01DryHTP9XALU,29755
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=L3x17w9sqFBNMEJ-3rlEbPQpHRGHl2WY_xHE26NLHsQ,19232
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=BydWtrB7KR27tzjbzSOZZvv1srEDUHox-vTy4RRE9zk,6456
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=NNqL14Z01Lhx6WwK2NxusY-cwcY7HHie07L_VEt8dws,4085
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.0.dist-info/METADATA,sha256=Y3FVSH3Jx3tgfzfh8bmcoTQLgdtmbn70lyLzprHO9Es,4736
19
- mkdocstrings_matlab-0.8.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
20
- mkdocstrings_matlab-0.8.0.dist-info/licenses/LICENSE,sha256=TZQpwBuA3KLH56--XDAY2Qwo9gGdxeTITYhMOylmYhg,743
21
- mkdocstrings_matlab-0.8.0.dist-info/RECORD,,
18
+ mkdocstrings_matlab-0.8.1.dist-info/METADATA,sha256=iBefxEPWeQwl4OsJtxvjQGSTWUfAGgkhFIqSMm6shVM,4736
19
+ mkdocstrings_matlab-0.8.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
20
+ mkdocstrings_matlab-0.8.1.dist-info/licenses/LICENSE,sha256=TZQpwBuA3KLH56--XDAY2Qwo9gGdxeTITYhMOylmYhg,743
21
+ mkdocstrings_matlab-0.8.1.dist-info/RECORD,,