mkdocstrings-matlab 0.1.5__py2.py3-none-any.whl → 0.1.7__py2.py3-none-any.whl

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.
@@ -125,7 +125,7 @@ class MatlabHandler(BaseHandler):
125
125
  super().__init__(*args, **kwargs)
126
126
 
127
127
  if paths is None:
128
- paths = ""
128
+ full_paths = ""
129
129
  else:
130
130
  config_path = Path(config_file_path).parent
131
131
  full_paths = [str((config_path / path).resolve()) for path in paths]
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mkdocstrings-matlab
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Summary: Add your description here
5
5
  Author-email: Mark Hu <watermarkhu@gmail.com>
6
6
  License-File: LICENSE
@@ -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=WPfsvlGTZcAYgep6rpRjESPJdXU2QbVm31cf5v9ob0c,16959
3
+ mkdocstrings_handlers/matlab/handler.py,sha256=PhxgwIJigwhYmpy-cjX0l7fC-LQRYUS5VvTw8w1VKmc,16964
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.5.dist-info/METADATA,sha256=KBhx1cJar_HMRP4xPomOvIBl_7Y-pITgSuLU0_Ra_rE,549
26
- mkdocstrings_matlab-0.1.5.dist-info/WHEEL,sha256=fl6v0VwpzfGBVsGtkAkhILUlJxROXbA3HvRL6Fe3140,105
27
- mkdocstrings_matlab-0.1.5.dist-info/licenses/LICENSE,sha256=14xA0OIYNpfmdeuq8-Yyqg7-3IJ4qhu3BJhknent-cY,1069
28
- mkdocstrings_matlab-0.1.5.dist-info/RECORD,,
25
+ mkdocstrings_matlab-0.1.7.dist-info/METADATA,sha256=pmieiST1GvTvFawrOemM1j-8ilj6TzKbrRZu5zSBBe4,549
26
+ mkdocstrings_matlab-0.1.7.dist-info/WHEEL,sha256=fl6v0VwpzfGBVsGtkAkhILUlJxROXbA3HvRL6Fe3140,105
27
+ mkdocstrings_matlab-0.1.7.dist-info/licenses/LICENSE,sha256=14xA0OIYNpfmdeuq8-Yyqg7-3IJ4qhu3BJhknent-cY,1069
28
+ mkdocstrings_matlab-0.1.7.dist-info/RECORD,,