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
Documentation uses deprecated "defindex.html" Sphinx template #73706
Comments
When I build the documentation on the current CPython code, there is a deprecation warning on the console. ===== (beginning of output) Build finished. The HTML pages are in build/html. This is observed when building documentation from branch master, commit b1dc6b6d5fa20f63f9651df2e7986a066c88ff7d . There are other warnings in the output, and I'm dealing with them in a different issue (number to follow). They are easier to fix than this one. Diagnosis: {{ warn('Now base template defindex.html is deprecated.') }} There's a story behind this file. Sphinx bpo-2986 (sphinx-doc/sphinx#2986) says that this is a very old file, from about the 0.2 version of Sphinx. It wasn't HTML 5 compatible, so they declared it obsolete and threw it out. Well, that lasted only about two weeks. It became apparent that not only Python's docs, but thousands of other projects, seem to rely on it. So, defindex.html was restored, but with the deprecation warning. Then, on 1. January 2017, Sphinx deleted defindex.html again. (See sphinx-doc/sphinx@45d3f2e ). I can only imagine that, once this change makes it into the public release of Sphinx, Python's documentation, and that of thousands of projects, will break again. So, it seems like a good idea to proactively remove the dependence on this Sphinx file, before that new Sphinx release comes out. Options:
I don't have a solution in mind for this issue. I just want to get it in the bug list, so we know about it. |
The other warnings in the "make html" output are the subject of http://bugs.python.org/issue29521 . |
Hello Jim, |
I can reproduce it with Sphinx 1.5.2. |
Could docs.python.org use new Sphinx, after fix this issue? Travis checks doc with Sphinx 1.5.2, but docs.python.org seems using 1.3.3. It's too old. |
Jaysinh, thank you for checking. From your log, I see you are using Sphinx version 1.3.6. I am seeing this problem with Sphinx version 1.5.2. I think you need Sphinx 1.5.2 or later to see the warning message. I notice my original bug description didn't specify a Sphinx version. Now we know that it needs to be a fairly recent version of Sphinx. From the discussion in sphinx-doc/sphinx#2986, it looks like the Sphinx team added the warning message at or shortly after the release of 1.5.0. |
As for CPython documents, these uses only one assignment statement ( Python 3.6.0 documentation Welcome! This is the documentation for Python 3.6.0, last updated Feb 19, 2017. Therefore, I suggest that we should make indexcontent.html extend layout.html directly and insert the jinja2 code into indexcontent.html in order to generate the sentences above After I wrote this comment, I notice inada.naoki had created |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: