mkdocstrings-matlab 0.9.2__tar.gz → 0.9.4__tar.gz
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.
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/.github/workflows/docs.yaml +6 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/.github/workflows/qualify.yaml +2 -1
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/.github/workflows/release.yaml +3 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/CHANGELOG.md +40 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/PKG-INFO +2 -2
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/pyproject.toml +2 -2
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/handler.py +9 -1
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/treesitter.py +47 -18
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/.github/CODEOWNERS +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/.github/workflows/update-templates.yaml +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/.gitignore +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/.python-version +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/.vscode/launch.json +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/.vscode/settings.json +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/LICENSE +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/README.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/api.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/changelog.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/credits.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/debug.py +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/img/preview_dark.png +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/img/preview_light.png +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/index.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/license.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/logo.png +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/logo.svg +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/overrides/main.html +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/overrides/partials/toc-item.html +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+module/+submodule/Contents.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+module/+submodule/subfunction.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+module/aClass.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+module/do_something.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+module/module.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+module/readme.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mymembers/BaseClass.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mymembers/Contents.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mymembers/ThisClass.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mymembers/mymembers.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mymembers/this_function.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mynamespace/classA.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mynamespace/classB.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mynamespace/mynamespace.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mynamespace/myscript.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mynamespace/readme.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mynamespace/typed_function.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+undocumented/ClassWithoutDocstring.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+undocumented/function_with_docstring.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+undocumented/function_without_docstring.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+undocumented/undocumented.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/Class.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/OtherClass.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/Thing.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/do_output.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/do_something.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/do_varargin.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/myClass.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/myParent.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/myfunction.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/print_hello.m +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/stylesheets/extra.css +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/usage/configuration/docstrings.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/usage/configuration/general.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/usage/configuration/headings.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/usage/configuration/members.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/usage/configuration/signatures.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/usage/docstrings/google.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/usage/docstrings/numpy.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/usage/docstrings/sphinx.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/usage/index.md +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/logo.svg +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/mkdocs.yml +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/renovate.json +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/requirements.lock +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/scripts/copy_and_update_python_templates.py +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/__init__.py +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/collect.py +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/enums.py +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/models.py +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/py.typed +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/templates/material/children.html.jinja +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/templates/material/docstring/namespaces.html.jinja +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/templates/material/docstring/properties.html.jinja +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/templates/material/folder.html.jinja +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/templates/material/namespace.html.jinja +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/templates/material/property.html.jinja +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/templates/material/script.html.jinja +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/templates/material/style.css +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/templates/material/summary/namespaces.html.jinja +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/templates/material/summary/properties.html.jinja +0 -0
- {mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/templates/material/summary.html.jinja +0 -0
@@ -19,6 +19,11 @@ on:
|
|
19
19
|
Set the alias as the default version
|
20
20
|
type: boolean
|
21
21
|
default: true
|
22
|
+
ref:
|
23
|
+
description: >-
|
24
|
+
The ref to checkout and use to create docs
|
25
|
+
type: string
|
26
|
+
default: ""
|
22
27
|
push:
|
23
28
|
description: >-
|
24
29
|
Push the documentation to the remote branch
|
@@ -36,6 +41,7 @@ jobs:
|
|
36
41
|
- uses: actions/checkout@v4
|
37
42
|
with:
|
38
43
|
fetch-depth: 0 # Required to push to the documentation branch
|
44
|
+
ref: ${{ inputs.ref }}
|
39
45
|
|
40
46
|
- name: Install the latest version of uv
|
41
47
|
uses: astral-sh/setup-uv@v5
|
@@ -20,7 +20,7 @@ permissions:
|
|
20
20
|
|
21
21
|
jobs:
|
22
22
|
docs:
|
23
|
-
if: github.event.pull_request.
|
23
|
+
if: contains(github.event.pull_request.labels.*.name, 'documentation')
|
24
24
|
name: Test deploy documentation
|
25
25
|
uses: ./.github/workflows/docs.yaml
|
26
26
|
concurrency:
|
@@ -35,6 +35,7 @@ jobs:
|
|
35
35
|
|
36
36
|
check-semantic-version:
|
37
37
|
name: Check semantic version
|
38
|
+
if: github.repository == 'watermarkhu/mkdocstrings-matlab'
|
38
39
|
runs-on: ubuntu-latest
|
39
40
|
steps:
|
40
41
|
|
@@ -13,6 +13,7 @@ jobs:
|
|
13
13
|
delete-test-document:
|
14
14
|
name: Delete test documentation
|
15
15
|
runs-on: ubuntu-latest
|
16
|
+
if: contains( github.event.pull_request.labels.*.name, 'documentation')
|
16
17
|
concurrency:
|
17
18
|
group: gh-pages
|
18
19
|
cancel-in-progress: false
|
@@ -128,10 +129,12 @@ jobs:
|
|
128
129
|
mkdocs:
|
129
130
|
name: Deploy documentation
|
130
131
|
needs: [publish, delete-test-document]
|
132
|
+
if: ${{ always() && !failure() && !cancelled() }}
|
131
133
|
uses: ./.github/workflows/docs.yaml
|
132
134
|
secrets: inherit
|
133
135
|
with:
|
134
136
|
version: ${{ needs.publish.outputs.tag }}
|
135
137
|
alias: latest
|
136
138
|
set-default: true
|
139
|
+
ref: ${{ needs.publish.outputs.tag }}
|
137
140
|
push: true
|
@@ -1,6 +1,46 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
3
|
|
4
|
+
## v0.9.4 (2025-02-01)
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
- **deps**: Update dependency tree-sitter-matlab to v1.0.4
|
9
|
+
([#69](https://github.com/watermarkhu/mkdocstrings-matlab/pull/69),
|
10
|
+
[`e589881`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/e5898818ab7a7da1fd8e583dcc4f490b81e8e610))
|
11
|
+
|
12
|
+
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
13
|
+
|
14
|
+
|
15
|
+
## v0.9.3 (2025-01-29)
|
16
|
+
|
17
|
+
### Bug Fixes
|
18
|
+
|
19
|
+
- Ignore `%#codegen` compilation directive
|
20
|
+
([#61](https://github.com/watermarkhu/mkdocstrings-matlab/pull/61),
|
21
|
+
[`7239847`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/72398479b347ed778c516e4e1fdad6ab8b6ccdc1))
|
22
|
+
|
23
|
+
* fix: Ignore `%#codegen` compilation directive
|
24
|
+
|
25
|
+
* Exclude all pragmas instead of only %#codegen
|
26
|
+
|
27
|
+
Co-authored-by: Mark Shui Hu <watermarkhu@gmail.com>
|
28
|
+
|
29
|
+
---------
|
30
|
+
|
31
|
+
### Chores
|
32
|
+
|
33
|
+
- Make sure that release documentation is using the new version
|
34
|
+
([#60](https://github.com/watermarkhu/mkdocstrings-matlab/pull/60),
|
35
|
+
[`c3a9899`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/c3a9899a9b3c031a72880df1b50b09b28206890f))
|
36
|
+
|
37
|
+
* Update docs.yaml
|
38
|
+
|
39
|
+
* Update release.yaml
|
40
|
+
|
41
|
+
* Update qualify.yaml
|
42
|
+
|
43
|
+
|
4
44
|
## v0.9.2 (2025-01-26)
|
5
45
|
|
6
46
|
### Bug Fixes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: mkdocstrings-matlab
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.4
|
4
4
|
Summary: A MATLAB handler for mkdocstrings
|
5
5
|
Author-email: Mark Hu <watermarkhu@gmail.com>
|
6
6
|
License: MIT
|
@@ -24,7 +24,7 @@ Requires-Python: >=3.10
|
|
24
24
|
Requires-Dist: charset-normalizer==3.4.1
|
25
25
|
Requires-Dist: mkdocstrings-python==1.13.0
|
26
26
|
Requires-Dist: mkdocstrings==0.27.0
|
27
|
-
Requires-Dist: tree-sitter-matlab==1.0.
|
27
|
+
Requires-Dist: tree-sitter-matlab==1.0.4
|
28
28
|
Requires-Dist: tree-sitter==0.24.0
|
29
29
|
Description-Content-Type: text/markdown
|
30
30
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "mkdocstrings-matlab"
|
3
|
-
version = "0.9.
|
3
|
+
version = "0.9.4"
|
4
4
|
description = "A MATLAB handler for mkdocstrings"
|
5
5
|
authors = [
|
6
6
|
{ name = "Mark Hu", email = "watermarkhu@gmail.com" }
|
@@ -13,7 +13,7 @@ dependencies = [
|
|
13
13
|
"mkdocstrings-python==1.13.0",
|
14
14
|
"charset-normalizer==3.4.1",
|
15
15
|
"tree-sitter==0.24.0",
|
16
|
-
"tree-sitter-matlab==1.0.
|
16
|
+
"tree-sitter-matlab==1.0.4",
|
17
17
|
]
|
18
18
|
classifiers = [
|
19
19
|
"Development Status :: 4 - Beta",
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/handler.py
RENAMED
@@ -358,7 +358,15 @@ class MatlabHandler(BaseHandler):
|
|
358
358
|
raise CollectionError("Empty identifier")
|
359
359
|
|
360
360
|
final_config = ChainMap(config, self.default_config) # type: ignore[arg-type]
|
361
|
-
|
361
|
+
try:
|
362
|
+
model = self.paths.resolve(identifier, config=final_config)
|
363
|
+
except SyntaxError as ex:
|
364
|
+
msg = str(ex)
|
365
|
+
if ex.text:
|
366
|
+
msg += ':\n' + ex.text
|
367
|
+
raise CollectionError(msg) from ex
|
368
|
+
except Exception as ex:
|
369
|
+
raise CollectionError(str(ex)) from ex
|
362
370
|
if model is None:
|
363
371
|
raise CollectionError(f"Identifier '{identifier}' not found")
|
364
372
|
return model
|
@@ -198,6 +198,7 @@ class FileParser(object):
|
|
198
198
|
self.encoding: str = result.encoding if result else "utf-8"
|
199
199
|
with open(filepath, "rb") as f:
|
200
200
|
self._content: bytes = f.read()
|
201
|
+
self._node: Node | None = None
|
201
202
|
|
202
203
|
@property
|
203
204
|
def content(self):
|
@@ -226,26 +227,38 @@ class FileParser(object):
|
|
226
227
|
Raises:
|
227
228
|
ValueError: If the file could not be parsed.
|
228
229
|
"""
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
230
|
+
try:
|
231
|
+
tree = PARSER.parse(self._content)
|
232
|
+
cursor = tree.walk()
|
233
|
+
|
234
|
+
if cursor.node is None:
|
235
|
+
raise ValueError(f"The file {self.filepath} could not be parsed.")
|
236
|
+
captures = FILE_QUERY.captures(cursor.node)
|
237
|
+
if "function" in captures:
|
238
|
+
model = self._parse_function(captures["function"][0], **kwargs)
|
239
|
+
elif "class" in captures:
|
240
|
+
model = self._parse_class(captures["class"][0], **kwargs)
|
241
|
+
else:
|
242
|
+
model = Script(self.filepath.stem, filepath=self.filepath, **kwargs)
|
242
243
|
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
244
|
+
if not model.docstring:
|
245
|
+
model.docstring = self._comment_docstring(
|
246
|
+
captures.get("header", None), parent=model
|
247
|
+
)
|
247
248
|
|
248
|
-
|
249
|
+
return model
|
250
|
+
except Exception as ex:
|
251
|
+
syntax_error = SyntaxError(f"Error parsing Matlab file")
|
252
|
+
syntax_error.filename = str(self.filepath)
|
253
|
+
if self._node is not None:
|
254
|
+
if self._node.text is not None:
|
255
|
+
indentation = ' ' * self._node.start_point.column
|
256
|
+
syntax_error.text = indentation + self._node.text.decode(self.encoding)
|
257
|
+
syntax_error.lineno = self._node.start_point.row + 1
|
258
|
+
syntax_error.offset = self._node.start_point.column + 1
|
259
|
+
syntax_error.end_lineno = self._node.end_point.row + 1
|
260
|
+
syntax_error.end_offset = self._node.end_point.column + 1
|
261
|
+
raise syntax_error from ex
|
249
262
|
|
250
263
|
def _parse_class(self, node: Node, **kwargs: Any) -> Class:
|
251
264
|
"""
|
@@ -262,6 +275,7 @@ class FileParser(object):
|
|
262
275
|
Returns:
|
263
276
|
Class: The parsed Class or Classfolder model.
|
264
277
|
"""
|
278
|
+
self._node = node
|
265
279
|
saved_kwargs = {key: value for key, value in kwargs.items()}
|
266
280
|
captures = CLASS_QUERY.captures(node)
|
267
281
|
|
@@ -401,6 +415,7 @@ class FileParser(object):
|
|
401
415
|
The value is `True` if no value is specified,
|
402
416
|
otherwise it is the parsed value which can be a boolean or a string.
|
403
417
|
"""
|
418
|
+
self._node = node
|
404
419
|
captures = ATTRIBUTE_QUERY.captures(node)
|
405
420
|
|
406
421
|
key = self._first_from_capture(captures, "name")
|
@@ -429,6 +444,7 @@ class FileParser(object):
|
|
429
444
|
KeyError: If required captures are missing from the node.
|
430
445
|
|
431
446
|
"""
|
447
|
+
self._node = node
|
432
448
|
captures: dict = FUNCTION_QUERY.matches(node)[0][1]
|
433
449
|
|
434
450
|
input_names = self._decode_from_capture(captures, "input")
|
@@ -529,6 +545,7 @@ class FileParser(object):
|
|
529
545
|
Returns:
|
530
546
|
str: The decoded text of the node. If the node or its text is None, returns an empty string.
|
531
547
|
"""
|
548
|
+
self._node = node
|
532
549
|
return (
|
533
550
|
node.text.decode(self.encoding)
|
534
551
|
if node is not None and node.text is not None
|
@@ -621,6 +638,18 @@ class FileParser(object):
|
|
621
638
|
except StopIteration:
|
622
639
|
break
|
623
640
|
|
641
|
+
# Exclude all pragma's
|
642
|
+
if line in [
|
643
|
+
'%#codegen',
|
644
|
+
'%#eml',
|
645
|
+
'%#external',
|
646
|
+
'%#exclude',
|
647
|
+
'%#function',
|
648
|
+
'%#ok',
|
649
|
+
'%#mex',
|
650
|
+
]:
|
651
|
+
continue
|
652
|
+
|
624
653
|
if "--8<--" in line:
|
625
654
|
continue
|
626
655
|
|
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/.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.9.2 → mkdocstrings_matlab-0.9.4}/docs/overrides/partials/toc-item.html
RENAMED
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+module/+submodule/Contents.m
RENAMED
File without changes
|
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+module/do_something.m
RENAMED
File without changes
|
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mymembers/BaseClass.m
RENAMED
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mymembers/ThisClass.m
RENAMED
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mymembers/mymembers.md
RENAMED
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mymembers/this_function.m
RENAMED
File without changes
|
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mynamespace/mynamespace.md
RENAMED
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mynamespace/myscript.m
RENAMED
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mynamespace/readme.md
RENAMED
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/snippets/+mynamespace/typed_function.m
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/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.9.2 → mkdocstrings_matlab-0.9.4}/docs/usage/configuration/docstrings.md
RENAMED
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/docs/usage/configuration/headings.md
RENAMED
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/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.9.2 → mkdocstrings_matlab-0.9.4}/scripts/copy_and_update_python_templates.py
RENAMED
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/__init__.py
RENAMED
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/collect.py
RENAMED
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/enums.py
RENAMED
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/src/mkdocstrings_handlers/matlab/models.py
RENAMED
File without changes
|
{mkdocstrings_matlab-0.9.2 → mkdocstrings_matlab-0.9.4}/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
|
File without changes
|