mkdocstrings-matlab 0.8.1__tar.gz → 0.8.2__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/.github/workflows/release.yaml +2 -1
  2. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/CHANGELOG.md +8 -0
  3. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/PKG-INFO +1 -1
  4. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/usage/configuration/headings.md +0 -7
  5. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/pyproject.toml +1 -1
  6. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/collect.py +7 -8
  7. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/.github/CODEOWNERS +0 -0
  8. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/.github/workflows/docs.yaml +0 -0
  9. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/.github/workflows/qualify.yaml +0 -0
  10. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/.github/workflows/update-templates.yaml +0 -0
  11. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/.gitignore +0 -0
  12. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/.python-version +0 -0
  13. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/.vscode/launch.json +0 -0
  14. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/.vscode/settings.json +0 -0
  15. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/LICENSE +0 -0
  16. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/README.md +0 -0
  17. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/api.md +0 -0
  18. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/changelog.md +0 -0
  19. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/credits.md +0 -0
  20. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/debug.py +0 -0
  21. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/img/preview_dark.png +0 -0
  22. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/img/preview_light.png +0 -0
  23. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/index.md +0 -0
  24. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/license.md +0 -0
  25. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/logo.png +0 -0
  26. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/logo.svg +0 -0
  27. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/overrides/main.html +0 -0
  28. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/overrides/partials/toc-item.html +0 -0
  29. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+module/+submodule/Contents.m +0 -0
  30. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+module/+submodule/subfunction.m +0 -0
  31. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+module/aClass.m +0 -0
  32. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+module/do_something.m +0 -0
  33. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+module/module.md +0 -0
  34. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+module/readme.md +0 -0
  35. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mymembers/BaseClass.m +0 -0
  36. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mymembers/Contents.m +0 -0
  37. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mymembers/ThisClass.m +0 -0
  38. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mymembers/mymembers.md +0 -0
  39. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mymembers/this_function.m +0 -0
  40. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mynamespace/classA.m +0 -0
  41. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mynamespace/classB.m +0 -0
  42. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mynamespace/mynamespace.md +0 -0
  43. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mynamespace/readme.md +0 -0
  44. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mynamespace/typed_function.m +0 -0
  45. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+undocumented/ClassWithoutDocstring.m +0 -0
  46. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+undocumented/function_with_docstring.m +0 -0
  47. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+undocumented/function_without_docstring.m +0 -0
  48. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/+undocumented/undocumented.md +0 -0
  49. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/Class.m +0 -0
  50. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/OtherClass.m +0 -0
  51. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/Thing.m +0 -0
  52. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/do_output.m +0 -0
  53. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/do_something.m +0 -0
  54. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/do_varargin.m +0 -0
  55. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/myClass.m +0 -0
  56. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/myParent.m +0 -0
  57. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/myfunction.m +0 -0
  58. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/snippets/print_hello.m +0 -0
  59. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/stylesheets/extra.css +0 -0
  60. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/usage/configuration/docstrings.md +0 -0
  61. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/usage/configuration/general.md +0 -0
  62. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/usage/configuration/members.md +0 -0
  63. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/usage/configuration/signatures.md +0 -0
  64. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/usage/docstrings/google.md +0 -0
  65. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/usage/docstrings/numpy.md +0 -0
  66. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/usage/docstrings/sphinx.md +0 -0
  67. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/docs/usage/index.md +0 -0
  68. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/logo.svg +0 -0
  69. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/mkdocs.yml +0 -0
  70. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/renovate.json +0 -0
  71. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/requirements.lock +0 -0
  72. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/scripts/copy_and_update_python_templates.py +0 -0
  73. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/__init__.py +0 -0
  74. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/enums.py +0 -0
  75. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/handler.py +0 -0
  76. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/models.py +0 -0
  77. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/py.typed +0 -0
  78. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/children.html.jinja +0 -0
  79. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/docstring/namespaces.html.jinja +0 -0
  80. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/docstring/properties.html.jinja +0 -0
  81. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/folder.html.jinja +0 -0
  82. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/namespace.html.jinja +0 -0
  83. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/property.html.jinja +0 -0
  84. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/style.css +0 -0
  85. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/summary/namespaces.html.jinja +0 -0
  86. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/summary/properties.html.jinja +0 -0
  87. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/summary.html.jinja +0 -0
  88. {mkdocstrings_matlab-0.8.1 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/treesitter.py +0 -0
@@ -93,7 +93,7 @@ jobs:
93
93
  concurrency:
94
94
  group: gh-pages
95
95
  cancel-in-progress: false
96
-
96
+
97
97
  steps:
98
98
  - name: checkout repository
99
99
  uses: actions/checkout@v4
@@ -113,6 +113,7 @@ jobs:
113
113
  run: |
114
114
  git config --global user.name github-actions[bot]
115
115
  git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
116
+ git fetch origin gh-pages:gh-pages
116
117
 
117
118
  - name: delete testing documentation
118
119
  continue-on-error: true
@@ -1,6 +1,14 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
+ ## v0.8.2 (2025-01-14)
5
+
6
+ ### Bug Fixes
7
+
8
+ - Allow mkdocs.yml in subdir ([#50](https://github.com/watermarkhu/mkdocstrings-matlab/pull/50),
9
+ [`8889349`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/88893497c7e12fdc0bb6c00798d7ed3357a881f9))
10
+
11
+
4
12
  ## v0.8.1 (2025-01-14)
5
13
 
6
14
  ### Bug Fixes
@@ -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
@@ -530,7 +530,6 @@ See also [`show_symbol_type_toc`][show_symbol_type_toc].
530
530
 
531
531
  ```yaml title="in mkdocs.yml (global configuration)"
532
532
  plugins:
533
- - mkdocs-material-matlab # (1)
534
533
  - mkdocstrings:
535
534
  handlers:
536
535
  matlab:
@@ -538,8 +537,6 @@ plugins:
538
537
  show_symbol_type_heading: true
539
538
  ```
540
539
 
541
- 1. :warning: When using material theme, make sure to also enable the plugin `mkdocs-material-matlab` such that the right heading types are displayed. Otherwise, <code class="doc-symbol doc-symbol-attribute"></code> will be shown as `attr` and <code class="doc-symbol doc-symbol-module"></code> will be shown as `mod`, as the mkdocstrings-matlab plugin is reusing assets from mkdocstrings-python.
542
-
543
540
  ```md title="or in docs/some_page.md (local configuration)"
544
541
  ::: matlab_callable
545
542
  options:
@@ -604,7 +601,6 @@ See also [`show_symbol_type_heading`][show_symbol_type_heading].
604
601
 
605
602
  ```yaml title="in mkdocs.yml (global configuration)"
606
603
  plugins:
607
- - mkdocs-material-matlab # (1)
608
604
  - mkdocstrings:
609
605
  handlers:
610
606
  matlab:
@@ -612,9 +608,6 @@ plugins:
612
608
  show_symbol_type_toc: true
613
609
  ```
614
610
 
615
- 1. :warning: When using material theme, make sure to also enable the plugin `mkdocs-material-matlab` such that the right heading types are displayed.
616
-
617
-
618
611
  ```md title="or in docs/some_page.md (local configuration)"
619
612
  ::: matlab_callable
620
613
  options:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mkdocstrings-matlab"
3
- version = "0.8.1"
3
+ version = "0.8.2"
4
4
  description = "A MATLAB handler for mkdocstrings"
5
5
  authors = [
6
6
  { name = "Mark Hu", email = "watermarkhu@gmail.com" }
@@ -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: