-
Notifications
You must be signed in to change notification settings - Fork 200
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
Issue 1242 sphinx apidoc #1255
Issue 1242 sphinx apidoc #1255
Conversation
1135 warnings
For reference, here is the regex I used: ``` cd source for f in */dev.rst; do gsed -i -r -e 's/(\s+)(:members:)/\1\2\n\1:noindex:/g' $f done ``` Note: gsed should be gnu sed (I used v4.4) which supports the -r option (the sed shipped with recent MacOS versions won't do) Down to 263 warnings.
Now down to 80 warnings that actually need to be looked into
down to 48 warnings
down to 42 warnings
Only 3 warnings remain, two related to a broken import and one because of an internal guard
Added running of sphinx-apidoc to Makefile. Running apidoc.sh is equivalent to running make clean make all The default target now makes both apidoc and html, i.e. the travis scripts don't need to be changed.
make default target instead of html (html does not build the apidoc automatically)
@giovannipizzi It's already progressed significantly (we are down to 3 warnings left to be resolved - thanks to @sphuber !). What remains is to decide what to do with the old, manually generated API documentation. Delete:
Others contain either a bit of text as well or some ordered selection, which might contain some thought. In my view, these could be integrated in other parts of the documentation, if needed. To Decide:
@giovannipizzi Do you agree with this assessment? |
Unfortunately, sphinx-apidoc currently does not allow to adjust the tocdepth of the subpackage tocs (sphinx-doc/sphinx#2108)
…ore into issue_1242_sphinx-apidoc
It was not being used and it had import errors
This file became obsolete when a general test loading system was implemented way back for both backends
2f5bc4a
to
5150ad9
Compare
There are still issues with
I cannot fix this, I think @szoupanos should take a look at this Finally once that warning disappears there is another problem: the autogenerated rst files say that the |
@sphuber @ltalirz I disabled sqla schema checks and alembic migration loading when compiling the docs since it doesn't make any sense to have such checks during documentation compilation - This is done for local documentation compilation but also for online documentation compilation. |
@szoupanos Thanks!
Any ideas how to best fix this? |
Maybe the simplest thing is to create the SECRET_KEY before compiling the docs? (logic called by verdi setup) |
Ooops, it seems that I pushed only half of my changes - Sorry! |
@ltalirz |
@szoupanos Thanks, the issue is gone. I wonder whether this points to missing dependencies in the travis build... |
Yes, I saw it... And I don't get this warning when I compile it locally. I have to have a closer look. |
Well, after you compile the documentation you should have the |
Fix #1255
sphinx-apidoc