mkdocstrings-matlab 0.8.1__py3-none-any.whl → 0.8.2__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.
@@ -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[str, LazyModel] = {}
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
- path = absolute_path.relative_to(self._config_path)
202
- if path.suffix:
203
- path, member = path.parent, path.stem
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(str(path), None)
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[str(relative_path)] = LazyModel(
552
+ self._folders[member.parent] = LazyModel(
554
553
  member.parent, self
555
554
  )
556
555
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mkdocstrings-matlab
3
- Version: 0.8.1
3
+ Version: 0.8.2
4
4
  Summary: A MATLAB handler for mkdocstrings
5
5
  Author-email: Mark Hu <watermarkhu@gmail.com>
6
6
  License: MIT
@@ -1,5 +1,5 @@
1
1
  mkdocstrings_handlers/matlab/__init__.py,sha256=w5R9cGtqeJF0GUP_Jc_ad8FnS4FpbutnmHvzVRlohPM,1124
2
- mkdocstrings_handlers/matlab/collect.py,sha256=lmV2fgkRhxWrpNrFes19kY3hDEa_-B01DryHTP9XALU,29755
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
5
  mkdocstrings_handlers/matlab/models.py,sha256=MqLZNL3um0yEeFSzv-xjzwjFpOyCdx7elyZ4X1ZV-yE,19228
@@ -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.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,,
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,,