mkdocstrings-matlab 0.3.3__tar.gz → 0.4.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- mkdocstrings_matlab-0.4.0/.github/CODEOWNERS +1 -0
- mkdocstrings_matlab-0.4.0/.github/workflows/docs.yaml +81 -0
- mkdocstrings_matlab-0.4.0/.github/workflows/release.yaml +82 -0
- mkdocstrings_matlab-0.4.0/.python-version +1 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/.vscode/launch.json +4 -4
- mkdocstrings_matlab-0.4.0/.vscode/settings.json +11 -0
- mkdocstrings_matlab-0.4.0/CHANGELOG.md +193 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/PKG-INFO +3 -3
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/README.md +1 -1
- {mkdocstrings_matlab-0.3.3/test → mkdocstrings_matlab-0.4.0/docs}/debug.py +2 -3
- mkdocstrings_matlab-0.4.0/docs/logo.svg +57 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+module/+submodule/Contents.m +1 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+module/+submodule/subfunction.m +3 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+module/aClass.m +15 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+module/do_something.m +3 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+module/module.md +43 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+module/readme.md +10 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+mymembers/BaseClass.m +8 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+mymembers/Contents.m +1 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+mymembers/ThisClass.m +38 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+mymembers/mymembers.md +35 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+mymembers/this_function.m +3 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+mynamespace/classA.m +9 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+mynamespace/classB.m +11 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+mynamespace/mynamespace.md +35 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+mynamespace/readme.md +1 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+mynamespace/typed_function.m +11 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+undocumented/ClassWithoutDocstring.m +10 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+undocumented/function_with_docstring.m +3 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+undocumented/function_without_docstring.m +2 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/+undocumented/undocumented.md +28 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/Class.m +15 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/OtherClass.m +14 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/Thing.m +18 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/do_output.m +6 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/do_something.m +9 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/do_varargin.m +6 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/myClass.m +3 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/myParent.m +3 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/myfunction.m +6 -0
- mkdocstrings_matlab-0.4.0/docs/snippets/print_hello.m +8 -0
- mkdocstrings_matlab-0.4.0/docs/stylesheets/extra.css +43 -0
- mkdocstrings_matlab-0.4.0/docs/usage/configuration/docstrings.md +928 -0
- mkdocstrings_matlab-0.4.0/docs/usage/configuration/general.md +160 -0
- mkdocstrings_matlab-0.4.0/docs/usage/configuration/headings.md +637 -0
- mkdocstrings_matlab-0.4.0/docs/usage/configuration/members.md +699 -0
- mkdocstrings_matlab-0.4.0/docs/usage/configuration/signatures.md +241 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/docs/usage/index.md +34 -21
- mkdocstrings_matlab-0.4.0/logo.svg +57 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/mkdocs.yml +29 -33
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/pyproject.toml +64 -6
- mkdocstrings_matlab-0.4.0/src/mkdocstrings_handlers/matlab/__init__.py +26 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/src/mkdocstrings_handlers/matlab/collect.py +160 -58
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/src/mkdocstrings_handlers/matlab/handler.py +113 -36
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/src/mkdocstrings_handlers/matlab/models.py +77 -58
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/src/mkdocstrings_handlers/matlab/treesitter.py +6 -5
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/uv.lock +307 -17
- mkdocstrings_matlab-0.3.3/.python-version +0 -1
- mkdocstrings_matlab-0.3.3/.vscode/settings.json +0 -3
- mkdocstrings_matlab-0.3.3/docs/stylesheets/extra.css +0 -3
- mkdocstrings_matlab-0.3.3/logo.png +0 -0
- mkdocstrings_matlab-0.3.3/src/mkdocstrings_handlers/matlab/__init__.py +0 -5
- mkdocstrings_matlab-0.3.3/test/docs/api.md +0 -16
- mkdocstrings_matlab-0.3.3/test/docs/index.md +0 -5
- mkdocstrings_matlab-0.3.3/test/docs/namespace.md +0 -6
- mkdocstrings_matlab-0.3.3/test/mkdocs.yml +0 -32
- mkdocstrings_matlab-0.3.3/test/src/+myNamespace/+subpackage/nested.m +0 -18
- mkdocstrings_matlab-0.3.3/test/src/+myNamespace/@myClass/customMethod.m +0 -21
- mkdocstrings_matlab-0.3.3/test/src/+myNamespace/@myClass/myClass.m +0 -47
- mkdocstrings_matlab-0.3.3/test/src/+myNamespace/namespacefunction.m +0 -21
- mkdocstrings_matlab-0.3.3/test/src/AbstractFramework.m +0 -9
- mkdocstrings_matlab-0.3.3/test/src/DocumentationFramework.m +0 -141
- mkdocstrings_matlab-0.3.3/test/src/myfunction.m +0 -40
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/.gitignore +0 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/LICENSE +0 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/docs/index.md +0 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/docs/license.md +0 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/docs/logo.png +0 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/docs/usage/docstrings/google.md +0 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/docs/usage/docstrings/numpy.md +0 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/docs/usage/docstrings/sphinx.md +0 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/requirements.lock +0 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/src/mkdocs_material_matlab/__init__.py +0 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/src/mkdocs_material_matlab/css/style.css +0 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/src/mkdocs_material_matlab/mkdocs_material_matlab.py +0 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/src/mkdocstrings_handlers/matlab/enums.py +0 -0
- {mkdocstrings_matlab-0.3.3 → mkdocstrings_matlab-0.4.0}/src/mkdocstrings_handlers/matlab/py.typed +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
* @watermarkhu
|
@@ -0,0 +1,81 @@
|
|
1
|
+
name: Docs
|
2
|
+
|
3
|
+
# Controls when the workflow will run
|
4
|
+
on:
|
5
|
+
workflow_dispatch:
|
6
|
+
inputs:
|
7
|
+
version:
|
8
|
+
description: >-
|
9
|
+
Version of the documentation to publish
|
10
|
+
type: string
|
11
|
+
required: true
|
12
|
+
alias:
|
13
|
+
description: >-
|
14
|
+
(Versioned) Alias to use when publishing the versioned documentation with mike
|
15
|
+
type: string
|
16
|
+
default: "latest"
|
17
|
+
set-default:
|
18
|
+
description: >-
|
19
|
+
Set the alias as the default version
|
20
|
+
type: boolean
|
21
|
+
default: true
|
22
|
+
workflow_call:
|
23
|
+
inputs:
|
24
|
+
version:
|
25
|
+
description: >-
|
26
|
+
Version of the documentation to publish
|
27
|
+
type: string
|
28
|
+
required: true
|
29
|
+
alias:
|
30
|
+
description: >-
|
31
|
+
(Versioned) Alias to use when publishing the versioned documentation with mike
|
32
|
+
type: string
|
33
|
+
default: "latest"
|
34
|
+
set-default:
|
35
|
+
description: >-
|
36
|
+
Set the alias as the default version
|
37
|
+
type: boolean
|
38
|
+
default: true
|
39
|
+
|
40
|
+
permissions:
|
41
|
+
contents: write
|
42
|
+
|
43
|
+
jobs:
|
44
|
+
build:
|
45
|
+
runs-on: ubuntu-latest
|
46
|
+
|
47
|
+
steps:
|
48
|
+
- uses: actions/checkout@v4
|
49
|
+
with:
|
50
|
+
fetch-depth: 0 # Required to push to the documentation branch
|
51
|
+
|
52
|
+
- name: Install the latest version of uv
|
53
|
+
uses: astral-sh/setup-uv@v5
|
54
|
+
with:
|
55
|
+
version: "latest"
|
56
|
+
|
57
|
+
- name: Sync dependencies
|
58
|
+
run: |
|
59
|
+
uv sync --no-dev --group docs
|
60
|
+
|
61
|
+
- name: Configure Git Credentials
|
62
|
+
run: |
|
63
|
+
git config --global user.name github-actions[bot]
|
64
|
+
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
|
65
|
+
|
66
|
+
- name: Build documentation with mike
|
67
|
+
run: >
|
68
|
+
uv run mike deploy
|
69
|
+
--branch gh-pages
|
70
|
+
--alias-type copy
|
71
|
+
--update-aliases
|
72
|
+
--push
|
73
|
+
${{ inputs.version }} ${{ inputs.alias }}
|
74
|
+
|
75
|
+
- name: Set default alias for mike
|
76
|
+
if: ${{ fromJson(inputs.set-default) }}
|
77
|
+
run: >
|
78
|
+
uv run mike set-default
|
79
|
+
--branch gh-pages
|
80
|
+
--push
|
81
|
+
${{ inputs.alias }}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
name: Release
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
|
8
|
+
pull_request:
|
9
|
+
branches:
|
10
|
+
- main
|
11
|
+
|
12
|
+
permissions:
|
13
|
+
contents: write
|
14
|
+
id-token: write
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
|
18
|
+
publish:
|
19
|
+
name: Publish package to PyPI
|
20
|
+
runs-on: ubuntu-latest
|
21
|
+
environment: release
|
22
|
+
outputs:
|
23
|
+
released: ${{ steps.release.outputs.released }}
|
24
|
+
tag: ${{ steps.release.outputs.tag }}
|
25
|
+
concurrency: release
|
26
|
+
permissions:
|
27
|
+
id-token: write
|
28
|
+
contents: write
|
29
|
+
|
30
|
+
steps:
|
31
|
+
- name: Checkout repository
|
32
|
+
uses: actions/checkout@v4
|
33
|
+
with:
|
34
|
+
fetch-depth: 0
|
35
|
+
ref: ${{ github.sha }}
|
36
|
+
|
37
|
+
- name: Force correct release branch on workflow sha
|
38
|
+
run: |
|
39
|
+
git checkout -B ${{ github.ref_name }} ${{ github.sha }}
|
40
|
+
|
41
|
+
- name: Python semantic release
|
42
|
+
id: release
|
43
|
+
uses: python-semantic-release/python-semantic-release@v9.8.9
|
44
|
+
with:
|
45
|
+
build: false
|
46
|
+
changelog: true
|
47
|
+
commit: true
|
48
|
+
push: true
|
49
|
+
tag: true
|
50
|
+
github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
|
51
|
+
git_committer_name: "github-actions[bot]"
|
52
|
+
git_committer_email: "41898282+github-actions[bot]@users.noreply.github.com"
|
53
|
+
|
54
|
+
- name: Install the latest version of uv
|
55
|
+
if: steps.release.outputs.released == 'true'
|
56
|
+
uses: astral-sh/setup-uv@v5
|
57
|
+
with:
|
58
|
+
version: "latest"
|
59
|
+
|
60
|
+
- name: Publish package to PyPI with UV
|
61
|
+
if: steps.release.outputs.released == 'true'
|
62
|
+
run: |
|
63
|
+
uv sync --no-dev --group docs
|
64
|
+
uv build
|
65
|
+
uv publish
|
66
|
+
|
67
|
+
- name: Publish package distributions to GitHub Releases
|
68
|
+
uses: python-semantic-release/upload-to-gh-release@v9.8.9
|
69
|
+
if: steps.release.outputs.released == 'true'
|
70
|
+
with:
|
71
|
+
github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
|
72
|
+
tag: ${{ steps.release.outputs.tag }}
|
73
|
+
|
74
|
+
mkdocs:
|
75
|
+
name: Deploy documentation
|
76
|
+
needs: [publish]
|
77
|
+
uses: ./.github/workflows/docs.yaml
|
78
|
+
secrets: inherit
|
79
|
+
with:
|
80
|
+
version: ${{ needs.publish.outputs.tag }}
|
81
|
+
alias: latest
|
82
|
+
set-default: true
|
@@ -0,0 +1 @@
|
|
1
|
+
3.13
|
@@ -14,13 +14,13 @@
|
|
14
14
|
"jinja": true
|
15
15
|
},
|
16
16
|
{
|
17
|
-
"name": "Python Debugger: mkdocstrings
|
17
|
+
"name": "Python Debugger: mkdocstrings debug docs",
|
18
18
|
"type": "debugpy",
|
19
19
|
"request": "launch",
|
20
|
-
"program": "
|
20
|
+
"program": "docs/debug.py",
|
21
21
|
"console": "integratedTerminal",
|
22
22
|
"justMyCode": false,
|
23
|
-
"jinja": true
|
23
|
+
"jinja": true,
|
24
24
|
}
|
25
25
|
]
|
26
|
-
}
|
26
|
+
}
|
@@ -0,0 +1,193 @@
|
|
1
|
+
# CHANGELOG
|
2
|
+
|
3
|
+
## v0.4.0 (2025-01-02)
|
4
|
+
|
5
|
+
### Feature
|
6
|
+
|
7
|
+
* feat: fix workflows (#6)
|
8
|
+
|
9
|
+
* fix workflows
|
10
|
+
|
11
|
+
* set dummy git credentials
|
12
|
+
|
13
|
+
* set permission
|
14
|
+
|
15
|
+
* forgotten input
|
16
|
+
|
17
|
+
* fix
|
18
|
+
|
19
|
+
* fix
|
20
|
+
|
21
|
+
* fix
|
22
|
+
|
23
|
+
* fix
|
24
|
+
|
25
|
+
* fix ([`d90cf92`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/d90cf925c992f83bb7102e22981968615310328e))
|
26
|
+
|
27
|
+
* feat: All options working (#4)
|
28
|
+
|
29
|
+
* add general docs
|
30
|
+
|
31
|
+
* add back parameter_headings option
|
32
|
+
|
33
|
+
* improve headings section
|
34
|
+
|
35
|
+
* bump mkdocstrings-python
|
36
|
+
|
37
|
+
* done with headings section
|
38
|
+
|
39
|
+
* fix inherited members, member order
|
40
|
+
|
41
|
+
* better docs
|
42
|
+
|
43
|
+
* fix docstring parameter handling
|
44
|
+
|
45
|
+
* fixes
|
46
|
+
|
47
|
+
* first attempt at hiding hidden and private members
|
48
|
+
|
49
|
+
* working hidden and private members
|
50
|
+
|
51
|
+
* finalize hidden and private members
|
52
|
+
|
53
|
+
* first attempt summaries
|
54
|
+
|
55
|
+
* summaries almost working
|
56
|
+
|
57
|
+
* comments
|
58
|
+
|
59
|
+
* updates
|
60
|
+
|
61
|
+
* merge constructor
|
62
|
+
|
63
|
+
* docs
|
64
|
+
|
65
|
+
* hide previews
|
66
|
+
|
67
|
+
* docstrings section done
|
68
|
+
|
69
|
+
* finalize signatures
|
70
|
+
|
71
|
+
* update logo
|
72
|
+
|
73
|
+
* first attempt at workflows
|
74
|
+
|
75
|
+
* finalize workflow ([`83d1588`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/83d15882e0a00252b91d2d88a19bb2f903674ca4))
|
76
|
+
|
77
|
+
### Unknown
|
78
|
+
|
79
|
+
* Merge 996e4e9a920c31164f5629b46b444afcc3c626b0 into 27c4fbaf1588a7f0bbd650af31a4ef5910930b07 ([`4909e1f`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/4909e1fa7d6609d6e2eff2a449486077274290a3))
|
80
|
+
|
81
|
+
* match all ([`996e4e9`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/996e4e9a920c31164f5629b46b444afcc3c626b0))
|
82
|
+
|
83
|
+
* fixes ([`7d62914`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/7d62914126ab33d5fb9f80eccf1c984762c3bcf2))
|
84
|
+
|
85
|
+
* fix conf ([`d327dbf`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/d327dbfd160bb35da7d1a1d11eb1c4cceb462f1a))
|
86
|
+
|
87
|
+
* Merge branch 'main' into release ([`4f4f744`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/4f4f7442551d03c235b05976f3643d2212b65c56))
|
88
|
+
|
89
|
+
* release (#7) ([`27c4fba`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/27c4fbaf1588a7f0bbd650af31a4ef5910930b07))
|
90
|
+
|
91
|
+
* fix ([`d999d25`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/d999d2597b4bde4edd2f8f1770f7023ded4ac85a))
|
92
|
+
|
93
|
+
* release ([`22bb966`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/22bb9665ea8e6f6fc82e664aaf0c16aa812ad37b))
|
94
|
+
|
95
|
+
* release ([`f35fb1d`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/f35fb1d52ff9948bc8bd60f22bc87a01e63f2eef))
|
96
|
+
|
97
|
+
* Create docs.yaml (#5) ([`e3c24ac`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/e3c24ac87548691c4778ba4ea6bf10d6d4e1ddbd))
|
98
|
+
|
99
|
+
## v0.3.3 (2024-12-19)
|
100
|
+
|
101
|
+
### Unknown
|
102
|
+
|
103
|
+
* downgrade mkdocstrings-python ([`d520c2b`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/d520c2bf1c62bf844a3b4ba68f6f3cf113975307))
|
104
|
+
|
105
|
+
* bump ([`f147e0a`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/f147e0aa10d02dacadc49cad4c58406525300eef))
|
106
|
+
|
107
|
+
* support Contents.m and readme.md ([`41c3abc`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/41c3abcf272561b3af9d2320658e069249069e90))
|
108
|
+
|
109
|
+
* update logo ([`861f34a`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/861f34ac6ec6b40d8067e2dacd3ad292f7315030))
|
110
|
+
|
111
|
+
* Use tree sitter (#3)
|
112
|
+
|
113
|
+
* parse function
|
114
|
+
|
115
|
+
* parse class
|
116
|
+
|
117
|
+
* add matlab-path
|
118
|
+
|
119
|
+
* restructure
|
120
|
+
|
121
|
+
* working collector
|
122
|
+
|
123
|
+
* collection almost fully
|
124
|
+
|
125
|
+
* working?
|
126
|
+
|
127
|
+
* working
|
128
|
+
|
129
|
+
* working
|
130
|
+
|
131
|
+
* working :)
|
132
|
+
|
133
|
+
* Create parameter documentation from argument blocks
|
134
|
+
|
135
|
+
* fully working
|
136
|
+
|
137
|
+
* use query api for functions
|
138
|
+
|
139
|
+
* fully working
|
140
|
+
|
141
|
+
* uv fixes
|
142
|
+
|
143
|
+
* orginazation
|
144
|
+
|
145
|
+
* improvements
|
146
|
+
|
147
|
+
* labels and symbol name fix via module
|
148
|
+
|
149
|
+
* add pyright config
|
150
|
+
|
151
|
+
* pyright fixes
|
152
|
+
|
153
|
+
* fix method parent
|
154
|
+
|
155
|
+
* add docstrings
|
156
|
+
|
157
|
+
* fixes signature
|
158
|
+
|
159
|
+
* checked all options
|
160
|
+
|
161
|
+
* Finalize ([`6783e67`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/6783e673b4ccb0044a22c6ca462940450ff1a158))
|
162
|
+
|
163
|
+
* Change tool to uv from rye ([`4e97b3f`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/4e97b3fb2dda0a64bdc9d128e9004a2cda1ee1e0))
|
164
|
+
|
165
|
+
* fix size bug ([`6ec7d59`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/6ec7d59e15f8113a482b3bc7b9b4043cac092f25))
|
166
|
+
|
167
|
+
* fix properties ([`9bb1ba3`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/9bb1ba34bd5536fbd06952aa2e469f31c07116b9))
|
168
|
+
|
169
|
+
* small bugfixes ([`83be91e`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/83be91e2be03f5993344d213e20907fba4c95fea))
|
170
|
+
|
171
|
+
* add r2024b support ([`948cd3a`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/948cd3a16b2bc930135ea4bcf2f0a76b4633b0df))
|
172
|
+
|
173
|
+
* Development (#2)
|
174
|
+
|
175
|
+
* fix when paths is empty
|
176
|
+
|
177
|
+
* Add support for inheritance diagrams
|
178
|
+
|
179
|
+
* Finalize inheritance diagram
|
180
|
+
|
181
|
+
* bump version ([`3449226`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/34492263fbf00c400bf3b4f919a5c89d2fc66046))
|
182
|
+
|
183
|
+
* Merge pull request #1 from watermarkhu/development
|
184
|
+
|
185
|
+
Development ([`99cf8d5`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/99cf8d5c65d9d27c18750e7517cc97ffb2098476))
|
186
|
+
|
187
|
+
* fix class ([`89bd1c1`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/89bd1c17a1bb0350c02a2e96b946103a73398332))
|
188
|
+
|
189
|
+
* bump ([`e2ec8f3`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/e2ec8f3b09036833cc6a93e8106cb69fb1c82cd3))
|
190
|
+
|
191
|
+
* Resolve paths relatively to the configuration file ([`6fdda75`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/6fdda75eeb2a78eb0cb7ea864ddea96282eb4ca4))
|
192
|
+
|
193
|
+
* first commit ([`88ea479`](https://github.com/watermarkhu/mkdocstrings-matlab/commit/88ea479b0789dc64818aaa6831e6847941f9ea1a))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: mkdocstrings-matlab
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.4.0
|
4
4
|
Summary: A MATLAB handler for mkdocstrings
|
5
5
|
Author-email: Mark Hu <watermarkhu@gmail.com>
|
6
6
|
License: ISC
|
@@ -24,7 +24,7 @@ Requires-Python: >=3.10
|
|
24
24
|
Requires-Dist: charset-normalizer>=3.3.2
|
25
25
|
Requires-Dist: griffe>=1.5.1
|
26
26
|
Requires-Dist: mkdocs==1.6.1
|
27
|
-
Requires-Dist: mkdocstrings-python==1.
|
27
|
+
Requires-Dist: mkdocstrings-python==1.13.0
|
28
28
|
Requires-Dist: mkdocstrings==0.27.0
|
29
29
|
Requires-Dist: tree-sitter-matlab>=1.0.2
|
30
30
|
Requires-Dist: tree-sitter>=0.23.2
|
@@ -37,7 +37,7 @@ Description-Content-Type: text/markdown
|
|
37
37
|
|
38
38
|
---
|
39
39
|
|
40
|
-
<p align="center"><img src="logo.
|
40
|
+
<p align="center"><img src="logo.svg"></p>
|
41
41
|
|
42
42
|
The MATLAB handler uses [Tree-sitter](https://tree-sitter.github.io/tree-sitter/) and its [MATLAB parser](https://github.com/acristoffers/tree-sitter-matlab) to collect documentation from MATLAB source code. Via the python bindings the Abstract Syntax Tree (AST) of the source code is traversed to extract useful information. The imported objected are imported as custom [Griffe](https://mkdocstrings.github.io/griffe/) objects and mocked for the [python handler](https://mkdocstrings.github.io/python/).
|
43
43
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
---
|
7
7
|
|
8
|
-
<p align="center"><img src="logo.
|
8
|
+
<p align="center"><img src="logo.svg"></p>
|
9
9
|
|
10
10
|
The MATLAB handler uses [Tree-sitter](https://tree-sitter.github.io/tree-sitter/) and its [MATLAB parser](https://github.com/acristoffers/tree-sitter-matlab) to collect documentation from MATLAB source code. Via the python bindings the Abstract Syntax Tree (AST) of the source code is traversed to extract useful information. The imported objected are imported as custom [Griffe](https://mkdocstrings.github.io/griffe/) objects and mocked for the [python handler](https://mkdocstrings.github.io/python/).
|
11
11
|
|
@@ -15,17 +15,16 @@ def set_directory(path: Path):
|
|
15
15
|
os.chdir(origin)
|
16
16
|
|
17
17
|
|
18
|
-
config_path = Path(__file__).parent.resolve() / "mkdocs.yml"
|
18
|
+
config_path = Path(__file__).parent.parent.resolve() / "mkdocs.yml"
|
19
19
|
|
20
20
|
kwargs = {
|
21
21
|
"dev_addr": None,
|
22
22
|
"open_in_browser": False,
|
23
|
-
"livereload":
|
23
|
+
"livereload": False,
|
24
24
|
"build_type": None,
|
25
25
|
"watch_theme": True,
|
26
26
|
"config_file": str(config_path),
|
27
27
|
"strict": None,
|
28
|
-
"theme": None,
|
29
28
|
"use_directory_urls": None,
|
30
29
|
}
|
31
30
|
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<svg
|
3
|
+
role="img"
|
4
|
+
viewBox="0 0 24 24"
|
5
|
+
version="1.1"
|
6
|
+
id="svg6"
|
7
|
+
sodipodi:docname="mkdocstrings-matlab.svg"
|
8
|
+
inkscape:version="1.1.2 (b8e25be833, 2022-02-05)"
|
9
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
10
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
12
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
13
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
14
|
+
xmlns:cc="http://creativecommons.org/ns#"
|
15
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
16
|
+
<defs
|
17
|
+
id="defs10" />
|
18
|
+
<sodipodi:namedview
|
19
|
+
id="namedview8"
|
20
|
+
pagecolor="#ffffff"
|
21
|
+
bordercolor="#666666"
|
22
|
+
borderopacity="1.0"
|
23
|
+
inkscape:pageshadow="2"
|
24
|
+
inkscape:pageopacity="0.0"
|
25
|
+
inkscape:pagecheckerboard="0"
|
26
|
+
showgrid="false"
|
27
|
+
inkscape:zoom="36.375"
|
28
|
+
inkscape:cx="11.986254"
|
29
|
+
inkscape:cy="14.185567"
|
30
|
+
inkscape:window-width="3760"
|
31
|
+
inkscape:window-height="2126"
|
32
|
+
inkscape:window-x="-11"
|
33
|
+
inkscape:window-y="-11"
|
34
|
+
inkscape:window-maximized="1"
|
35
|
+
inkscape:current-layer="svg6" />
|
36
|
+
<title
|
37
|
+
id="title2">Material for MkDocs</title>
|
38
|
+
<path
|
39
|
+
d="m 17.029,18.772 c -6.314,-9.47 0,0 -6.314,-9.47 L 18.582,4.062 24,1.354 V 16.84 l -5.417,2.709 z M 19.052,4.945 v 13.253 l 3.949,-1.975 V 2.97 Z"
|
40
|
+
id="path4"
|
41
|
+
style="display:inline;fill:#2777aa;fill-opacity:1"
|
42
|
+
sodipodi:nodetypes="cccccccccccc" />
|
43
|
+
<metadata
|
44
|
+
id="metadata71">
|
45
|
+
<rdf:RDF>
|
46
|
+
<cc:Work
|
47
|
+
rdf:about="">
|
48
|
+
<dc:title>Material for MkDocs</dc:title>
|
49
|
+
</cc:Work>
|
50
|
+
</rdf:RDF>
|
51
|
+
</metadata>
|
52
|
+
<path
|
53
|
+
d="M 17.806,19.938 12.389,22.647 0,16.451 V 4.063 L 5.417,1.354 c 12.389,18.584 0,0 12.389,18.584 z M 5.076,2.642 1.458,4.45 12.73,21.358 16.348,19.549 Z"
|
54
|
+
id="path148"
|
55
|
+
style="display:inline;fill:#ba5500;fill-opacity:1"
|
56
|
+
sodipodi:nodetypes="ccccccccccc" />
|
57
|
+
</svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
% This is a submodule
|
@@ -0,0 +1,43 @@
|
|
1
|
+
??? code "Source files"
|
2
|
+
|
3
|
+
=== ":material-file-tree: tree"
|
4
|
+
|
5
|
+
```tree
|
6
|
+
+module
|
7
|
+
+submodule
|
8
|
+
Contents.m
|
9
|
+
subfunction.m
|
10
|
+
aClass.m
|
11
|
+
do_something.m
|
12
|
+
readme.m
|
13
|
+
```
|
14
|
+
|
15
|
+
=== ":material-file-code: `readme.md`"
|
16
|
+
|
17
|
+
```matlab
|
18
|
+
--8<-- "docs/snippets/+module/readme.md"
|
19
|
+
```
|
20
|
+
|
21
|
+
=== ":material-file-code: `do_something.m`"
|
22
|
+
|
23
|
+
```matlab
|
24
|
+
--8<-- "docs/snippets/+module/do_something.m"
|
25
|
+
```
|
26
|
+
|
27
|
+
=== ":material-file-code: `aClass.m`"
|
28
|
+
|
29
|
+
```matlab
|
30
|
+
--8<-- "docs/snippets/+module/aClass.m"
|
31
|
+
```
|
32
|
+
|
33
|
+
=== ":material-file-code: `subfunction.m`"
|
34
|
+
|
35
|
+
```matlab
|
36
|
+
--8<-- "docs/snippets/+module/+submodule/subfunction.m"
|
37
|
+
```
|
38
|
+
|
39
|
+
=== ":material-file-code: `Contents.m`"
|
40
|
+
|
41
|
+
```matlab
|
42
|
+
--8<-- "docs/snippets/+module/+submodule/Contents.m"
|
43
|
+
```
|
@@ -0,0 +1 @@
|
|
1
|
+
% This is the namespace docstring.
|
@@ -0,0 +1,38 @@
|
|
1
|
+
classdef ThisClass < mymembers.BaseClass
|
2
|
+
% Class docstring.
|
3
|
+
methods
|
4
|
+
function obj = other_method(obj, input)
|
5
|
+
% Method docstring
|
6
|
+
end
|
7
|
+
function obj = method(obj, input)
|
8
|
+
% Method docstring
|
9
|
+
end
|
10
|
+
function delete(obj)
|
11
|
+
% Destructor docstring
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
properties
|
16
|
+
public_property % Public property docstring
|
17
|
+
end
|
18
|
+
|
19
|
+
methods (Hidden)
|
20
|
+
function obj = hidden_method(obj, input)
|
21
|
+
% Hidden method docstring
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
methods (Access = private)
|
26
|
+
function obj = private_method(obj, input)
|
27
|
+
% Private method docstring
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
properties (Hidden)
|
32
|
+
hidden_property % Hidden property docstring
|
33
|
+
end
|
34
|
+
|
35
|
+
properties (SetAccess = private)
|
36
|
+
private_property % Private property docstring
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
??? code "Source files"
|
2
|
+
|
3
|
+
=== ":material-file-tree: tree"
|
4
|
+
|
5
|
+
```tree
|
6
|
+
+mymembers
|
7
|
+
Contents.m
|
8
|
+
BaseClass.m
|
9
|
+
ThisClass.m
|
10
|
+
this_function.m
|
11
|
+
```
|
12
|
+
|
13
|
+
=== ":material-file-code: `Contents.m`"
|
14
|
+
|
15
|
+
```matlab
|
16
|
+
--8<-- "docs/snippets/+mymembers/Contents.m"
|
17
|
+
```
|
18
|
+
|
19
|
+
=== ":material-file-code: `ThisClass.m`"
|
20
|
+
|
21
|
+
```matlab
|
22
|
+
--8<-- "docs/snippets/+mymembers/ThisClass.m"
|
23
|
+
```
|
24
|
+
|
25
|
+
=== ":material-file-code: `BaseClass.m`"
|
26
|
+
|
27
|
+
```matlab
|
28
|
+
--8<-- "docs/snippets/+mymembers/BaseClass.m"
|
29
|
+
```
|
30
|
+
|
31
|
+
=== ":material-file-code: `this_function.m`"
|
32
|
+
|
33
|
+
```matlab
|
34
|
+
--8<-- "docs/snippets/+mymembers/this_function.m"
|
35
|
+
```
|