Skip to content
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

Merged
merged 3 commits into from May 4, 2020
Merged

Fix Sphinx 3.0.x build #3577

merged 3 commits into from May 4, 2020

Conversation

stevepiercy
Copy link
Member

WIP

Regarding these two 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

If I follow the advice do this:

   .. attribute:: response
     :noindex:

...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 and session appear, which are from the request 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.

…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
@stevepiercy stevepiercy marked this pull request as draft April 24, 2020 07:42
@stevepiercy stevepiercy self-assigned this Apr 24, 2020
@stevepiercy stevepiercy added this to the 2.0 milestone Apr 24, 2020
@stevepiercy stevepiercy linked an issue Apr 24, 2020 that may be closed by this pull request
@stevepiercy
Copy link
Member Author

stevepiercy commented Apr 24, 2020

Blocked by sphinx-doc/sphinx#7418 (comment)

I do not want to replace all terms to the same word casing. 279 case-sensitive mismatches!

@stevepiercy stevepiercy marked this pull request as ready for review April 24, 2020 13:01
@stevepiercy
Copy link
Member Author

I got a quick response from the Sphinx folks. I put the suppress_warnings option into tox instead of the conf.py because I prefer not to have that setting as a default when using Sphinx's make foo.

@stevepiercy
Copy link
Member Author

Sphinx 3.0.x struck in Deform today. See my comment for further discussion about resolving duplicate entries: Pylons/deform#397 (review)

@digitalresistor
Copy link
Member

I'm good with these changes.

@digitalresistor digitalresistor merged commit fb61956 into master May 4, 2020
@digitalresistor digitalresistor deleted the fix-3573-sphinx-3.0 branch May 4, 2020 07:54
stevepiercy added a commit to stevepiercy/pyramid that referenced this pull request May 4, 2020
stevepiercy added a commit to stevepiercy/pyramid that referenced this pull request May 4, 2020
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.
digitalresistor added a commit that referenced this pull request May 7, 2020
digitalresistor added a commit that referenced this pull request May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sphinx 3+ support
2 participants