-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Autogenerated documentation with Numpy docstring conventions #750
Comments
I'm having a similar problem. Even when enabling |
This was reported in sphinx here: sphinx-doc/sphinx#5959 Presumably a similar change to the sphinx RTD theme would take care of this? |
Actually, the problem seems to have been fixed for me on RTD itself, I just see it when I try to build the docs locally. So probably in my case this is something still misconfigured or incompatible on my local build. The example links posted above also seem to look similar in new and old versions so I suspect this issue has been fixed. |
This may be a Sphinx 2 issue; the theme has a number of incompatibilities. @xylar are you using Sphinx 2 locally and a lower version on RTD perhaps? |
Of the usable reports here, I don't see major issues. We could use some more information to track this down if you are still experiencing the issue. Agreed that this is probably in part a Sphinx 2 issue. |
I'm going to close this due to lack of feedback. I think this will be addressed with some of the fixes for Sphinx 2. |
I'm still experiencing this issue with sphinx==2.4.3
Adding
in css/custom.css and Project link: https://elephant-docs-development.readthedocs.io/en/enh-module_doc/reference/gpfa.html#elephant.gpfa.gpfa.GPFA however, by the time you inspect our url, it might be changed to a different sphinx theme. Although I like rtd-theme, if it doesn't work and I see no updates on this since Oct, we'll stick to a different one. |
As another example of the problem, I don't use RTD anymore because my environment requires too much memory but I build my documentation for GitHub Pages using Travis CI and Here is an example of the problem from my docs: My CI is here if anyone wants to poke around but building the docs is basically just a question of setting up a conda environment including |
I managed to track down this problem to numpydoc (though not really what in numpydoc causes it). In fatiando/verde#209 we replaced numpydoc with |
Problem
The theme doesn't seem to recognize the numpy docstring convention. Sections of the docstrings are formatted differently than in the example shown in the documention
Reproducible Project
These two docstrings, which describe the same thing, render very differently in the theme, where I prefer the second one.
Expected Results
Ideally, I'd like to see numpy docstring formatted in the same way as in the Sphinx RTD theme example.
Environment Info
The text was updated successfully, but these errors were encountered: