mkdocstrings-matlab 0.1.5__tar.gz → 0.1.7__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/PKG-INFO +1 -1
  2. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/pyproject.toml +1 -1
  3. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/handler.py +1 -1
  4. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/resolve.m +11 -5
  5. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/.gitignore +0 -0
  6. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/LICENSE +0 -0
  7. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/README.md +0 -0
  8. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/docs/index.md +0 -0
  9. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/mkdocs.yml +0 -0
  10. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/__init__.py +0 -0
  11. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/collections.py +0 -0
  12. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+case/builtin.m +0 -0
  13. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+case/class.m +0 -0
  14. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+case/func.m +0 -0
  15. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+case/method.m +0 -0
  16. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+case/namespace.m +0 -0
  17. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/argument.m +0 -0
  18. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/class.m +0 -0
  19. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/func.m +0 -0
  20. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/namespace.m +0 -0
  21. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/property.m +0 -0
  22. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+metadata/script.m +0 -0
  23. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+utils/dedent.m +0 -0
  24. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+utils/get_namespace_path.m +0 -0
  25. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/+utils/parse_doc.m +0 -0
  26. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/+docstring/exception.m +0 -0
  27. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/matlab/matlab_startup.m +0 -0
  28. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/models.py +0 -0
  29. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/parser.py +0 -0
  30. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/py.typed +0 -0
  31. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/src/mkdocstrings_handlers/matlab/resources/grammar.yml +0 -0
  32. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/submodules/mkdocstrings-matlab-r2023a/.gitignore +0 -0
  33. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/submodules/mkdocstrings-matlab-r2023a/LICENSE +0 -0
  34. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/submodules/mkdocstrings-matlab-r2023a/README.md +0 -0
  35. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/submodules/mkdocstrings-matlab-r2023a/pyproject.toml +0 -0
  36. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/submodules/mkdocstrings-matlab-r2023a/src/mkdocstrings_handlers/matlab_engine/__init__.py +0 -0
  37. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/submodules/mkdocstrings-matlab-r2023b/.gitignore +0 -0
  38. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/submodules/mkdocstrings-matlab-r2023b/LICENSE +0 -0
  39. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/submodules/mkdocstrings-matlab-r2023b/README.md +0 -0
  40. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/submodules/mkdocstrings-matlab-r2023b/pyproject.toml +0 -0
  41. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/submodules/mkdocstrings-matlab-r2023b/src/mkdocstrings_handlers/matlab_engine/__init__.py +0 -0
  42. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/submodules/mkdocstrings-matlab-r2024a/.gitignore +0 -0
  43. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/submodules/mkdocstrings-matlab-r2024a/LICENSE +0 -0
  44. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/submodules/mkdocstrings-matlab-r2024a/README.md +0 -0
  45. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/submodules/mkdocstrings-matlab-r2024a/pyproject.toml +0 -0
  46. {mkdocstrings_matlab-0.1.5 → mkdocstrings_matlab-0.1.7}/submodules/mkdocstrings-matlab-r2024a/src/mkdocstrings_handlers/matlab_engine/__init__.py +0 -0
@@ -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,6 +1,6 @@
1
1
  [project]
2
2
  name = "mkdocstrings-matlab"
3
- version = "0.1.5"
3
+ version = "0.1.7"
4
4
  description = "Add your description here"
5
5
  authors = [
6
6
  { name = "Mark Hu", email = "watermarkhu@gmail.com" }
@@ -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