mkdocstrings-matlab 0.1.4__tar.gz → 0.1.6__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/PKG-INFO +2 -2
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/pyproject.toml +2 -2
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/handler.py +4 -1
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/resolve.m +11 -5
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/.gitignore +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/LICENSE +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/README.md +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/docs/index.md +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/mkdocs.yml +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/__init__.py +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/collections.py +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+case/builtin.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+case/class.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+case/func.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+case/method.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+case/namespace.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/argument.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/class.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/func.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/namespace.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/property.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/script.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+utils/dedent.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+utils/get_namespace_path.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+utils/parse_doc.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/+docstring/exception.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/matlab/matlab_startup.m +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/models.py +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/parser.py +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/py.typed +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/resources/grammar.yml +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/submodules/mkdocstrings-matlab-r2023a/.gitignore +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/submodules/mkdocstrings-matlab-r2023a/LICENSE +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/submodules/mkdocstrings-matlab-r2023a/README.md +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/submodules/mkdocstrings-matlab-r2023a/pyproject.toml +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/submodules/mkdocstrings-matlab-r2023a/src/mkdocstrings_handlers/matlab_engine/__init__.py +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/submodules/mkdocstrings-matlab-r2023b/.gitignore +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/submodules/mkdocstrings-matlab-r2023b/LICENSE +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/submodules/mkdocstrings-matlab-r2023b/README.md +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/submodules/mkdocstrings-matlab-r2023b/pyproject.toml +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/submodules/mkdocstrings-matlab-r2023b/src/mkdocstrings_handlers/matlab_engine/__init__.py +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/submodules/mkdocstrings-matlab-r2024a/.gitignore +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/submodules/mkdocstrings-matlab-r2024a/LICENSE +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/submodules/mkdocstrings-matlab-r2024a/README.md +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/submodules/mkdocstrings-matlab-r2024a/pyproject.toml +0 -0
- {mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/submodules/mkdocstrings-matlab-r2024a/src/mkdocstrings_handlers/matlab_engine/__init__.py +0 -0
@@ -1,8 +1,8 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: mkdocstrings-matlab
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.6
|
4
4
|
Summary: Add your description here
|
5
|
-
Author-email: Mark Hu <
|
5
|
+
Author-email: Mark Hu <watermarkhu@gmail.com>
|
6
6
|
License-File: LICENSE
|
7
7
|
Requires-Dist: charset-normalizer>=3.3.2
|
8
8
|
Requires-Dist: griffe>=1.2.0
|
@@ -1,9 +1,9 @@
|
|
1
1
|
[project]
|
2
2
|
name = "mkdocstrings-matlab"
|
3
|
-
version = "0.1.
|
3
|
+
version = "0.1.6"
|
4
4
|
description = "Add your description here"
|
5
5
|
authors = [
|
6
|
-
{ name = "Mark Hu", email = "
|
6
|
+
{ name = "Mark Hu", email = "watermarkhu@gmail.com" }
|
7
7
|
]
|
8
8
|
dependencies = [
|
9
9
|
"mkdocs>=1.6.0",
|
{mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/handler.py
RENAMED
@@ -126,10 +126,13 @@ class MatlabHandler(BaseHandler):
|
|
126
126
|
|
127
127
|
if paths is None:
|
128
128
|
paths = ""
|
129
|
+
else:
|
130
|
+
config_path = Path(config_file_path).parent
|
131
|
+
full_paths = [str((config_path / path).resolve()) for path in paths]
|
129
132
|
|
130
133
|
self.engine = MatlabEngine()
|
131
134
|
self.engine.addpath(str(Path(__file__).parent / "matlab"))
|
132
|
-
self.engine.matlab_startup(
|
135
|
+
self.engine.matlab_startup(full_paths, startup_expression)
|
133
136
|
self.models = ModelsCollection()
|
134
137
|
self.lines = LinesCollection()
|
135
138
|
self.parser = MatlabParser()
|
@@ -60,13 +60,19 @@ switch exist(identifier) %#ok<EXIST>
|
|
60
60
|
|
61
61
|
% Try with metafunction
|
62
62
|
object = matlab.internal.metafunction(identifier);
|
63
|
-
if ~isempty(object)
|
64
|
-
if
|
65
|
-
|
63
|
+
if ~isempty(object)
|
64
|
+
if isa(object, 'matlab.internal.metadata.Function')
|
65
|
+
if isempty(object.Signature)
|
66
|
+
data = docstring.metadata.script(object);
|
67
|
+
else
|
68
|
+
data = docstring.metadata.func(object);
|
69
|
+
end
|
70
|
+
data.name = identifier;
|
71
|
+
elseif isa(object, 'matlab.internal.metadata.Method')
|
72
|
+
data = docstring.case.class(identifier);
|
66
73
|
else
|
67
|
-
|
74
|
+
docstring.exception(identifier);
|
68
75
|
end
|
69
|
-
data.name = identifier;
|
70
76
|
else
|
71
77
|
docstring.exception(identifier);
|
72
78
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/__init__.py
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.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/models.py
RENAMED
File without changes
|
{mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/src/mkdocstrings_handlers/matlab/parser.py
RENAMED
File without changes
|
{mkdocstrings_matlab-0.1.4 → mkdocstrings_matlab-0.1.6}/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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|