-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
extension problem #1059
Comments
OK, I corrected my error WRT 'sphinxcontrib.' Error was failing to correctly set the virt env and identify the requirements.txt doc in Advanced settings. Will work on the 'napoleon' issue next. I think the problem there is that sphinx.ext.napoleon is for Sphinx 1.3 only. I'll fall back to the sphinxcontrib.napoleon and see if that works. |
See #995 for related talk. I think you just need to add |
TY - will do. /g From: James F-Robinson [mailto:[email protected]] See #995 #995 for related talk. I think you just need to add sphinxcontrib-napoleon to your requirements.txt then use the sphinxcontrib.napoleon in your conf.py. — |
James F-Robinson advice worked. TY. IMHO it's not easy to learn how to manage extensions for RTD. May make sense to add an explicit addendum to the RTD documentation illustrating how to do so. |
Yea, I think it's something we're blind to as Python developers -- it would On Tue, Dec 2, 2014 at 12:58 PM, gig graham [email protected]
Eric Holscher |
Eddited requirements/base.txt and docs/source/conf.py to try to get the documentation in ReadTheDocs. From <readthedocs/readthedocs.org#1059 (comment)> : "I think you just need to add sphinxcontrib-napoleon to your requirements.txt then use sphinxcontrib.napoleon in your conf.py."
Isn't it wrong to add sphinx stuff to the requirements.txt that really only should contain dependencies for the actual Python module to work? |
@michaelaye i got this sense, too. it feels weird to require my users to install packages needed for documentation only. |
from the FAQ: https://docs.readthedocs.org/en/latest/faq.html
"The NumPy and Google styles are two popular docstring formats. Fortunately, the default Read The Docs theme handles both formats just fine, provided your conf.py specifies an appropriate Sphinx extension that knows how to convert your customized docstrings."
However, when using napoleon, receive this error message:
https://readthedocs.org/builds/nutrients/1914206/
ImportError: No module named 'sphinx.ext.napoleon'
Settings in my 'conf.py' look like this:
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.napoleon',
]
Am also trying to run the extension:
'sphinxcontrib.bibtex',
In my 'requirements.txt' file have setting:
sphinxcontrib-bibtex
Settings in my 'conf.py' look like this:
extensions = [
'sphinxcontrib.bibtext',
]
However, when executing, receive this error message:
ImportError: No module named 'sphinxcontrib'
https://readthedocs.org/builds/nutrients/1914067/
What am I doing wrong with these two methods (napoleon and bibtex)?
The text was updated successfully, but these errors were encountered: