-
Notifications
You must be signed in to change notification settings - Fork 888
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
Fix Sphinx 3.0.x build #3577
Fix Sphinx 3.0.x build #3577
Conversation
…ule to avoid Sphinx warnings: src/pyramid/request.py:docstring of pyramid.request.Request.response:1: WARNING: duplicate object description of pyramid.request.Request.response, other instance in api/request, use :noindex: for one of them src/pyramid/request.py:docstring of pyramid.request.Request.session:1: WARNING: duplicate object description of pyramid.request.Request.session, other instance in api/request, use :noindex: for one of them
Blocked by sphinx-doc/sphinx#7418 (comment) I do not want to replace all terms to the same word casing. 279 case-sensitive mismatches! |
I got a quick response from the Sphinx folks. I put the |
Sphinx 3.0.x struck in Deform today. See my comment for further discussion about resolving duplicate entries: Pylons/deform#397 (review) |
I'm good with these changes. |
Sort of. In Sphinx 3.0.x, lots of things blow up on this branch, so I pinned it to `Sphinx < 3.0.0`. I think it is not worth the effort to fix everything in this branch for the sake of Sphinx 3.0.x, given that Pyramid 2.0 will soon be released and we won't be doing further updates. Use links to cookiecutter instead of intersphinx.
WIP
Regarding these two warnings:
If I follow the advice do this:
...then it does not have an index entry and cannot be linked to, like so:
https://docs.pylonsproject.org/projects/pyramid/en/latest/api/request.html#pyramid.request.Request.response
I see that further down the rendered page, another
response
andsession
appear, which are from therequest
docstrings.I went ahead and tried a "fix" in commit , but I want to make sure that this doesn't mess up anything.
Alternatively, we could move all that rst into the docstrings, but I assume y'all put it at the top of the .rst file for a good reason.