Fix docs build with Sphinx 1.6#8515
Conversation
timgraham
left a comment
There was a problem hiding this comment.
sphinx 1.6+ doesn't render the smart quotes now -- can you add the needed docutils.conf?
docs/_ext/djangodocs.py
Outdated
There was a problem hiding this comment.
I think we can use super() here?
docs/_ext/djangodocs.py
Outdated
|
Hm, I don't see smart quotes in that location with your branch and sphinx 1.5.3 or 1.6.1. If you can't reproduce, I'll debug it here. |
c164997 to
d30065b
Compare
|
Maybe you have a To avoid blocking merging other PRs in the meantime, I changed the docs pull request builder to use sphinx 1.5.6. |
|
No, I ran in a clean environment without |
|
Smart quotes don't render on my system because the language is "en-US" and that's not in the |
|
Where does that come from? |
|
Maybe from environment variables? I haven't looked into the sphinx source to figure it out. |
|
Ok, in the Travis log I found I believe the best thing to do would be to fix the Makefile. |
|
The last commit should be fine to merge. |
docs/Makefile
Outdated
timgraham
left a comment
There was a problem hiding this comment.
When I try to build the docs using make html, I get this error:
Makefile:15: *** Recursive variable `LANGUAGE' references itself (eventually).
docs/_ext/djangodocs.py
Outdated
There was a problem hiding this comment.
Use super() as master only supports Python 3.
docs/conf.py
Outdated
There was a problem hiding this comment.
Workaround is one word, no dash needed.
c317843 to
d0a2c39
Compare
|
@timgraham Fixed! |
|
I see smartquotes with sphinx 1.6 but not with 1.5.6. Do you see the same? |
|
The first version of this PR supported Sphinx 1.5, but then you told me that the support can be dropped… |
|
@mitya57: I think that you misinterpreted what @timgraham was saying when he said:
He meant replace the comment, not remove support for Sphinx < 1.6 -except ImportError: # SmartyPantsHTMLTranslator was removed in Sphinx 1.6
+except ImportError: # Sphinx 1.6+ |
|
Correct, sorry for the confusion. |
|
Sorry, I missed the hash mark and got confused. Restored compatibility with 1.5 now. |
|
(Why does Jenkins try to check commit 472c49270f41355d124eaabb90674a9fd2ba358b instead of 0642bea76181f2dbf8e9edcb87b2090500b57331 I just pushed?) |
|
Please note that sphinx 1.6 now requires sphinxcontrib-websupport and that requests is unbundled and also required. Should that go somewhere? setup.py docs_require? Release notes? |
|
|
|
Yep, operator error. Didn't upgrade the port properly. Sorry for the noise. |
Readthedocs.io now runs Sphinx 1.6.x so our docs build fails. This config change is required, please see django/django#8515

I was the author of sphinx-doc/sphinx#3666, which broke Sphinx docs build. This pull request should fix the build errors and warnings.
With it, #8514 should be also not needed.