-
Notifications
You must be signed in to change notification settings - Fork 20
Built API docs from the docstrings using Sphinx+autodocs #329
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
base: main
Are you sure you want to change the base?
Conversation
…solete markdown file
… fetch_external.py
…cs build workflow
@adamltyson I have added docs only for brainglobe-atlasapi, for now. |
Thanks @thisisrick25. Do you need any feedback at this stage? Or shall we wait until all the repos are included in this PR? |
I am facing a problem @adamltyson. I can generate the docs in my local environment, but when I implement them in GA workflow, One way I have yet to try is to write a completely different workflow action independent of |
That action is maintained by us (https://github.com/neuroinformatics-unit/actions/tree/main/build_sphinx_docs), so if you can work out what needs to be changed, you're welcome to submit a PR. |
I will open a new issue @neuroinformatics-unit/actions edit: issue neuroinformatics-unit/actions#83 |
@adamltyson I want to point out that the docstring syntax is inconsistent in brainglobe-atlasapi (have not checked in other repos). I got this warning locally
I checked by fixing the syntax and can confirm it works as expected. Do we need the -W flag to build Sphinx doc for the API workflow? My conscience says yes, but it will take some time to fix the docstrings. I'm not very familiar with how pre-commit works, but I think it might be possible to create a hook with the numpydoc repo to check the docstring for numpydoc validation. This would be helpful in the future. |
Thanks @thisisrick25 - you make some good points here.
Indeed, this is expected (a consequence of BrainGlobe's "organic" growth) and would be nice to fix.
I agree.
I don't know either, but agree it should be possible, and would be helpful. To help keep things tidy and manageable, I would tackle each point in a separate PR, in the following order
Does that make sense, and would you have capacity to try (for this repo only)? |
@alessandrofelder Yes I will be happy to help. |
Introduce a script to fetch external repositories for the Brainglobe project, update Sphinx configuration for improved documentation paths and extensions, and enhance the API documentation for the brainglobe-atlasapi module. Include setup instructions for Python and external packages in the Sphinx build workflow.
closes #4