-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
matlabdomain does not recursively document folder/module? #149
Comments
The site https://bwanamarko.alwaysdata.net/matlabdomain was maintained by the original author of the package. I have no control of it, and therefore it is rather outdated :( We don't have any "autosummary" feature yet. The |
Ah. Now I understand! Given
Will not do anything (except parsing the MATLAB source files). If you do
It will generate rst docs for everything in the folder that |
Without hijacking the thread, is there any known workaround to get autosummary to work, or are there plans to add that feature? |
FWIW, I wrote a script to sort of replicate the behavior of api-doc. Probably could be improved, but works for the type of classes/packages I have in my repo
|
That's really nice. It's great with some inspiration on what you would like to get as output. |
That script seems solid, but does it give you the summary table like autosummary does? To me, being able to separate the module out into different tables inside an RST where each function has the description and variables in the table, is the benefit of autosummary. I actually have some code where I made my own "mat:autosummary" directive which might be a good starting point. I basically attempted to copy as little code as possible from the autosummary module, while swapping in pieces of sphinxcontrib-matlabdomain where required. It seems to work, but I think it could be cleaned up by someone more familiar with Sphinx and this (sphinxcontrib-matlabdomain). I need to pull them from a different computer, but maybe I can commit them to a new branch for you to see or just attach the files here? |
I have not used :autosummary before and the script I wrote didn't try to provide the functionality. |
I for one would be very interested in seeing this code, if you're able to post it somewhere. |
@zouhairm with the new version
is good enough for you |
Hi @joeced
So, should I start a PR, or I just use it myself? |
This is what I had done originally, which seemed to work OK, but I am not allowed to transfer the files from my work network back onto the public network unfortunately. I would be happy to help test things if a PR is opened. I think this would be a great feature if we can collectively get it to work. It would basically make this a complete autodoc/autosummary solution for MATLAB |
|
consider the folder structure of https://github.com/sphinx-contrib/matlabdomain/tree/master/tests/test_data
I would have expected that:
would generate the documentation for the whole folder, but it seems to print nothing according to the example:
https://bwanamarko.alwaysdata.net/matlabdomain/#test-data
Instead, one has to do:
to get something like: https://bwanamarko.alwaysdata.net/matlabdomain/#packagefunc
How do I get all of the packages/classes/scripts inside of the 'test_data' module to get all listed?
or do I have to manually list them (or somehow autogenerate them since
api-doc
seems to not work with matlab?)Thanks!
The text was updated successfully, but these errors were encountered: