mkdocstrings-matlab 0.1.4__py2.py3-none-any.whl → 0.1.6__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -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(paths, startup_expression)
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) && isa(object, 'matlab.internal.metadata.Function')
64
- if isempty(object.Signature)
65
- data = docstring.metadata.script(object);
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
- data = docstring.metadata.func(object);
74
+ docstring.exception(identifier);
68
75
  end
69
- data.name = identifier;
70
76
  else
71
77
  docstring.exception(identifier);
72
78
  end
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mkdocstrings-matlab
3
- Version: 0.1.4
3
+ Version: 0.1.6
4
4
  Summary: Add your description here
5
- Author-email: Mark Hu <mark.hu@asml.com>
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,12 +1,12 @@
1
1
  mkdocstrings_handlers/matlab/__init__.py,sha256=laA2bEP5rxdIWBLmfLiKKu7ChZ_HzCe-VeRvxmUTqww,128
2
2
  mkdocstrings_handlers/matlab/collections.py,sha256=oiDK4nwIUXroIPxw6Cu13WcBxmCyAHjPn7naaW_Yhjs,445
3
- mkdocstrings_handlers/matlab/handler.py,sha256=Tl__mt18m28XGKXGNJbuQ0Le7DGxYmDH4wtfsxz6WSk,16803
3
+ mkdocstrings_handlers/matlab/handler.py,sha256=WPfsvlGTZcAYgep6rpRjESPJdXU2QbVm31cf5v9ob0c,16959
4
4
  mkdocstrings_handlers/matlab/models.py,sha256=n1l1Gr5Wq7nsrsP4PSePGfnGcln0NI-zSrkijGJBf80,5644
5
5
  mkdocstrings_handlers/matlab/parser.py,sha256=bA3KRNnYjSewqyJI8OmLKATk3AZOq9-28UQg0L6f9os,843
6
6
  mkdocstrings_handlers/matlab/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  mkdocstrings_handlers/matlab/matlab/matlab_startup.m,sha256=rGXiR8fI2GW7yWmHxgzE5Un66n5ws3ogYnMvS2oWO8U,464
8
8
  mkdocstrings_handlers/matlab/matlab/+docstring/exception.m,sha256=sj2ycqMpknn_OG5A5X_b5e4WcAoR2oPoqNnDEHJsi7c,222
9
- mkdocstrings_handlers/matlab/matlab/+docstring/resolve.m,sha256=GZ7-NC79CVBVHjNJNublosAsGNhLy8dX4uyT4cznl4U,2800
9
+ mkdocstrings_handlers/matlab/matlab/+docstring/resolve.m,sha256=jq_gWvQ0F-BgKgZUZmanaLtaphJqKYWmVESQZpUlvXU,3041
10
10
  mkdocstrings_handlers/matlab/matlab/+docstring/+case/builtin.m,sha256=IioiokiaLnsi_6VXraaGdU2AgjCNApYhgVEmp2Lg1eA,245
11
11
  mkdocstrings_handlers/matlab/matlab/+docstring/+case/class.m,sha256=kVQxUEk8iOfHK2_NnN0HjHVhFnPgUqsf9PzyKC93y0g,276
12
12
  mkdocstrings_handlers/matlab/matlab/+docstring/+case/func.m,sha256=QneDYSICtXqdPNq8sYNieirXUisuDKRM9rxPx-0osDU,137
@@ -22,7 +22,7 @@ mkdocstrings_handlers/matlab/matlab/+docstring/+utils/dedent.m,sha256=IsqIZKyaBU
22
22
  mkdocstrings_handlers/matlab/matlab/+docstring/+utils/get_namespace_path.m,sha256=4NlQ7-RjqIFZAn6P-9JzCrm2FvfGRKiM2M_leINj9i4,835
23
23
  mkdocstrings_handlers/matlab/matlab/+docstring/+utils/parse_doc.m,sha256=iFNpbnOr9FAv-3Zn8ksJHIthXAB7XKYVfH2NGFinzHs,499
24
24
  mkdocstrings_handlers/matlab/resources/grammar.yml,sha256=GLI4xdATiB70bzRscXOVwMlw0YFlA-3GJzuzqWeBKJU,19511
25
- mkdocstrings_matlab-0.1.4.dist-info/METADATA,sha256=GBvRwemz4KJHlye-r37qOGh6YrMbPF8RFlC3cFYogBA,544
26
- mkdocstrings_matlab-0.1.4.dist-info/WHEEL,sha256=fl6v0VwpzfGBVsGtkAkhILUlJxROXbA3HvRL6Fe3140,105
27
- mkdocstrings_matlab-0.1.4.dist-info/licenses/LICENSE,sha256=14xA0OIYNpfmdeuq8-Yyqg7-3IJ4qhu3BJhknent-cY,1069
28
- mkdocstrings_matlab-0.1.4.dist-info/RECORD,,
25
+ mkdocstrings_matlab-0.1.6.dist-info/METADATA,sha256=hSng4k0TMLFDJJIt-l-V89FwzaBZBZOLaPC_IpU5xi4,549
26
+ mkdocstrings_matlab-0.1.6.dist-info/WHEEL,sha256=fl6v0VwpzfGBVsGtkAkhILUlJxROXbA3HvRL6Fe3140,105
27
+ mkdocstrings_matlab-0.1.6.dist-info/licenses/LICENSE,sha256=14xA0OIYNpfmdeuq8-Yyqg7-3IJ4qhu3BJhknent-cY,1069
28
+ mkdocstrings_matlab-0.1.6.dist-info/RECORD,,