mkdocstrings-matlab 0.8.0__tar.gz → 0.8.2__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/.github/workflows/qualify.yaml +5 -2
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/.github/workflows/release.yaml +41 -1
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/CHANGELOG.md +17 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/PKG-INFO +1 -1
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/usage/configuration/headings.md +0 -7
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/pyproject.toml +1 -1
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/scripts/copy_and_update_python_templates.py +9 -4
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/collect.py +8 -9
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/models.py +3 -3
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/children.html.jinja +2 -2
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/namespace.html.jinja +1 -1
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/.github/CODEOWNERS +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/.github/workflows/docs.yaml +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/.github/workflows/update-templates.yaml +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/.gitignore +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/.python-version +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/.vscode/launch.json +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/.vscode/settings.json +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/LICENSE +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/README.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/api.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/changelog.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/credits.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/debug.py +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/img/preview_dark.png +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/img/preview_light.png +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/index.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/license.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/logo.png +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/logo.svg +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/overrides/main.html +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/overrides/partials/toc-item.html +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+module/+submodule/Contents.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+module/+submodule/subfunction.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+module/aClass.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+module/do_something.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+module/module.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+module/readme.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mymembers/BaseClass.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mymembers/Contents.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mymembers/ThisClass.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mymembers/mymembers.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mymembers/this_function.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mynamespace/classA.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mynamespace/classB.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mynamespace/mynamespace.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mynamespace/readme.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mynamespace/typed_function.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+undocumented/ClassWithoutDocstring.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+undocumented/function_with_docstring.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+undocumented/function_without_docstring.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+undocumented/undocumented.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/Class.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/OtherClass.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/Thing.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/do_output.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/do_something.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/do_varargin.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/myClass.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/myParent.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/myfunction.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/print_hello.m +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/stylesheets/extra.css +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/usage/configuration/docstrings.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/usage/configuration/general.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/usage/configuration/members.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/usage/configuration/signatures.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/usage/docstrings/google.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/usage/docstrings/numpy.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/usage/docstrings/sphinx.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/usage/index.md +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/logo.svg +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/mkdocs.yml +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/renovate.json +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/requirements.lock +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/__init__.py +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/enums.py +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/handler.py +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/py.typed +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/docstring/namespaces.html.jinja +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/docstring/properties.html.jinja +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/folder.html.jinja +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/property.html.jinja +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/style.css +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/summary/namespaces.html.jinja +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/summary/properties.html.jinja +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/templates/material/summary.html.jinja +0 -0
- {mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/treesitter.py +0 -0
@@ -23,12 +23,15 @@ jobs:
|
|
23
23
|
if: github.event.pull_request.draft == false
|
24
24
|
name: Test deploy documentation
|
25
25
|
uses: ./.github/workflows/docs.yaml
|
26
|
+
concurrency:
|
27
|
+
group: gh-pages
|
28
|
+
cancel-in-progress: false
|
26
29
|
secrets: inherit
|
27
30
|
with:
|
28
|
-
version:
|
31
|
+
version: ${{ format('pr-{0}', github.head_ref) || 'test' }}
|
29
32
|
alias: ""
|
30
33
|
set-default: false
|
31
|
-
push:
|
34
|
+
push: true
|
32
35
|
|
33
36
|
check-semantic-version:
|
34
37
|
name: Check semantic version
|
@@ -86,9 +86,49 @@ jobs:
|
|
86
86
|
github_token: ${{ steps.app-token.outputs.token }}
|
87
87
|
tag: ${{ steps.semantic-release.outputs.tag }}
|
88
88
|
|
89
|
+
delete-test-document:
|
90
|
+
name: Delete test documentation
|
91
|
+
needs: publish
|
92
|
+
runs-on: ubuntu-latest
|
93
|
+
concurrency:
|
94
|
+
group: gh-pages
|
95
|
+
cancel-in-progress: false
|
96
|
+
|
97
|
+
steps:
|
98
|
+
- name: checkout repository
|
99
|
+
uses: actions/checkout@v4
|
100
|
+
with:
|
101
|
+
fetch-depth: 0 # Required to push to the documentation branch
|
102
|
+
|
103
|
+
- name: Install the latest version of uv
|
104
|
+
uses: astral-sh/setup-uv@v5
|
105
|
+
with:
|
106
|
+
version: "latest"
|
107
|
+
|
108
|
+
- name: Sync dependencies
|
109
|
+
run: |
|
110
|
+
uv sync --no-dev --group docs
|
111
|
+
|
112
|
+
- name: Configure Git Credentials
|
113
|
+
run: |
|
114
|
+
git config --global user.name github-actions[bot]
|
115
|
+
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
|
116
|
+
git fetch origin gh-pages:gh-pages
|
117
|
+
|
118
|
+
- name: delete testing documentation
|
119
|
+
continue-on-error: true
|
120
|
+
env:
|
121
|
+
VERSION: ${{ format('pr-{0}', github.head_ref) || 'test' }}
|
122
|
+
run: >
|
123
|
+
uv run mike delete
|
124
|
+
--push --ignore-remote-status
|
125
|
+
--config-file mkdocs.yml
|
126
|
+
--branch gh-pages
|
127
|
+
$VERSION
|
128
|
+
|
89
129
|
mkdocs:
|
90
130
|
name: Deploy documentation
|
91
|
-
needs: [publish]
|
131
|
+
needs: [publish, delete-test-document]
|
92
132
|
uses: ./.github/workflows/docs.yaml
|
93
133
|
secrets: inherit
|
94
134
|
with:
|
@@ -1,6 +1,23 @@
|
|
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
|
+
|
12
|
+
## v0.8.1 (2025-01-14)
|
13
|
+
|
14
|
+
### Bug Fixes
|
15
|
+
|
16
|
+
- Names of folder and namespace entities
|
17
|
+
([#49](https://github.com/watermarkhu/mkdocstrings-matlab/pull/49),
|
18
|
+
[`248d389`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/248d3893b9fad1b1e9818c7b48959ca01c6f9cdf))
|
19
|
+
|
20
|
+
|
4
21
|
## v0.8.0 (2025-01-13)
|
5
22
|
|
6
23
|
### Features
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/usage/configuration/headings.md
RENAMED
@@ -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:
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/scripts/copy_and_update_python_templates.py
RENAMED
@@ -40,12 +40,17 @@ def copy_template(
|
|
40
40
|
copy_template(
|
41
41
|
"_base/module.html.jinja",
|
42
42
|
"folder.html.jinja",
|
43
|
-
{
|
43
|
+
{
|
44
|
+
"doc-symbol-module": "doc-symbol-folder",
|
45
|
+
},
|
44
46
|
)
|
45
47
|
copy_template(
|
46
48
|
"_base/module.html.jinja",
|
47
49
|
"namespace.html.jinja",
|
48
|
-
{
|
50
|
+
{
|
51
|
+
"doc-symbol-module": "doc-symbol-namespace",
|
52
|
+
"{% set module_name = module.path if show_full_path else module.name %}": '{% set module_name = module.path + ".*" if show_full_path else module.name + ".*" %}',
|
53
|
+
},
|
49
54
|
)
|
50
55
|
|
51
56
|
# Copy the property template
|
@@ -115,7 +120,7 @@ copy_template(
|
|
115
120
|
"Attributes": "Properties",
|
116
121
|
"-modules": "-namespaces",
|
117
122
|
"Modules": "Modules",
|
118
|
-
"{% if config.show_submodules %}": "{% if config.
|
119
|
-
"{% elif child.is_module and config.show_submodules %}": "{% elif (child.is_namespace and config.
|
123
|
+
"{% if config.show_submodules %}": "{% if config.show_subnamespaces or obj.is_folder %}",
|
124
|
+
"{% elif child.is_module and config.show_submodules %}": "{% elif (child.is_namespace and config.show_subnamespaces) or obj.is_folder %}",
|
120
125
|
},
|
121
126
|
)
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/collect.py
RENAMED
@@ -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:
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/models.py
RENAMED
@@ -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(
|
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/.github/workflows/update-templates.yaml
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/overrides/partials/toc-item.html
RENAMED
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+module/+submodule/Contents.m
RENAMED
File without changes
|
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+module/do_something.m
RENAMED
File without changes
|
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mymembers/BaseClass.m
RENAMED
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mymembers/ThisClass.m
RENAMED
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mymembers/mymembers.md
RENAMED
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mymembers/this_function.m
RENAMED
File without changes
|
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mynamespace/mynamespace.md
RENAMED
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mynamespace/readme.md
RENAMED
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+mynamespace/typed_function.m
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/snippets/+undocumented/undocumented.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/usage/configuration/docstrings.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/docs/usage/configuration/signatures.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/__init__.py
RENAMED
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/enums.py
RENAMED
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/handler.py
RENAMED
File without changes
|
{mkdocstrings_matlab-0.8.0 → mkdocstrings_matlab-0.8.2}/src/mkdocstrings_handlers/matlab/py.typed
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|