-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
broken alignment for captions in toctrees in ver. 0.5.1 #1112
Comments
This seems to be related to the release of docutils 0.17: https://docutils.sourceforge.io/RELEASE-NOTES.html#id46 |
This is caused by a recent release of docutils 0.17 if you pin 0.16 in a pip install requirements it should fix the issue. rtd should fix this globally but that solution would work for you individually. I have a patch here that fixes this for the theme: #1113 if this gets merged/released it should fix the issue. There also seems to be a fix in sphinx: sphinx-doc/sphinx#9001 the fix for that might also fix this issue. |
See also #1111 |
See the rtd documentation here on how to pin a dependency: https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html#pinning-dependencies
I have reached out to the team at rtd, this should be fixed on the server-side / in the theme. If you do pin to an old version be prepared to revert that change once this has been fixed on a more global level. |
Thank you very much for the prompt response! |
This has been fixed with RTD Theme Version |
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 (cherry picked from commit 6fd9c01)
sphinx_rtd_theme 0.5.2 has "docutils<0.17" in its requirements. docutils 0.17 was released this April and caused regression in sphinx_rtd_theme 0.5.1 [1]. Put the same limit in sphinx/requirements.txt. [1]: readthedocs/sphinx_rtd_theme#1112 Signed-off-by: Akira Yokosawa <akiyks@gmail.com> Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
sphinx_rtd_theme 0.5.2 has "docutils<0.17" in its requirements. docutils 0.17 released this April caused regression in sphinx_rtd_theme 0.5.1 [1]. By removing docutils and moving sphinx_rtd_theme before Sphinx in requirements.txt, the requirement of "docutils<0.17" can be met naturally. [1]: readthedocs/sphinx_rtd_theme#1112 Signed-off-by: Akira Yokosawa <akiyks@gmail.com> Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Acked-by: Mauro Carvalho Chehab <mchehab@kernel.org> Link: https://lore.kernel.org/r/75f14c88-6091-1072-41cb-16b886aee5a0@gmail.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 (cherry picked from commit 6fd9c01159aeba132d7b0f7ef3949dd0049a0392) GitOrigin-RevId: 1205b4de9c45eddd4b1a71c285f2addf93c8a83b
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 (cherry picked from commit 6fd9c01159aeba132d7b0f7ef3949dd0049a0392) GitOrigin-RevId: 1205b4de9c45eddd4b1a71c285f2addf93c8a83b
Docutils 0.17 causes issues with the theme see: readthedocs/sphinx_rtd_theme#1112 Until this is fixed in the theme/sphinx we need to pin an old version. git-svn-id: https://svn.blender.org/svnroot/bf-manual/trunk/blender_docs@7919 c4de1f47-6596-e411-a384-0024e86c2797
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 (cherry picked from commit 6fd9c01159aeba132d7b0f7ef3949dd0049a0392) GitOrigin-RevId: 1205b4de9c45eddd4b1a71c285f2addf93c8a83b
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 GitOrigin-RevId: 6fd9c01159aeba132d7b0f7ef3949dd0049a0392
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 GitOrigin-RevId: 6fd9c01159aeba132d7b0f7ef3949dd0049a0392
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 GitOrigin-RevId: 6fd9c01159aeba132d7b0f7ef3949dd0049a0392
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 GitOrigin-RevId: 6fd9c01159aeba132d7b0f7ef3949dd0049a0392
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 GitOrigin-RevId: 6fd9c01159aeba132d7b0f7ef3949dd0049a0392
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 GitOrigin-RevId: 6fd9c01159aeba132d7b0f7ef3949dd0049a0392
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 GitOrigin-RevId: 6fd9c01159aeba132d7b0f7ef3949dd0049a0392
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 GitOrigin-RevId: 6fd9c01159aeba132d7b0f7ef3949dd0049a0392
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 GitOrigin-RevId: 6fd9c01159aeba132d7b0f7ef3949dd0049a0392
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 GitOrigin-RevId: 6fd9c01159aeba132d7b0f7ef3949dd0049a0392
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 GitOrigin-RevId: 6fd9c01159aeba132d7b0f7ef3949dd0049a0392
Sphinx RTD theme 0.5.2. introduced limitation to docutils to account for some docutils markup change: readthedocs/sphinx_rtd_theme#1112 GitOrigin-RevId: 6fd9c01159aeba132d7b0f7ef3949dd0049a0392
Problem
I have been using the older version
0.4.3
and had a nice toctrees like below:However, the search functionality was bugged so I updated to
0.5.1
and now I get:And it seems to me that the captions for both toctree elements is not aligned anymore. Neither horizontally nor vertically (werid space between the caption and the first section, no space between last section of the previous toctree and a new one).
Reproducible Project
Expected Results
I would like to have a page layout just like for
0.4.3
.Environment Info
3.7.4
3.5.3
0.5.1
The text was updated successfully, but these errors were encountered: