-
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
rendering wrong in docutils 0.17 (unordered list, maybe more?) #1115
Comments
In the 0.17 changelog, I do not see any mention of changes to unordered list. Perhaps this is a bug in sphinx? |
This can also be seen in this project's docs as well:
By hard-coding docutils to v0.16, everything is back to normal: pip3 install sphinx sphinx-rtd-theme docutils==0.16 Edit:// My bad, the first post also mentions the changelog as an example 🤦 |
Yes, that's an example of the problem.
When I was first trying to debug it I downgraded Sphinx, but it didn't
help. I also tried the default Sphinx theme and unordered lists were
OK. Of course, it could still be a bug whose root is somewhere else,
but is only visible here...
Unfortunately I haven't had time to go deeper, but now everyone has an
example to look at.
|
there was an error in the requirements #1118, docs from the theme should be good now https://sphinx-rtd-theme.readthedocs.io/en/latest/changelog.html |
I still want to address docutils 0.17 and sphinx4 support for the upcoming 1.0 release. |
Names of a table of contents are now also rendered incorrectly in the contents menu on the left it seems. |
@1313e you need to set the theme version explicitly to 0.5.2 https://github.com/1313e/CMasher/blob/master/docs/requirements_docs.txt, the default version may not be the latest see https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html#don-t-rely-on-implicit-dependencies |
Alright, will fix that. |
The issue with docutils 0.17 is the change from I will have a fix out soon. |
Looked into this and we need to fix our css for the new semantic tags |
When pushing our docs to GitHub pages in the last days we were surprised when some parts were not rendered correctly. We have discovered that this has something to do with the version of Read the docs theme we're using (more info is available her in this issue: readthedocs/sphinx_rtd_theme#1115), so we had to upgrade sphix-rtd-theme package to 0.5.2 and we also updated Sphinx to the latest 3.5.3 version.
When pushing our docs to GitHub pages in the last days we were surprised when some parts were not rendered correctly. We have discovered that this has something to do with the version of Read the docs theme we're using (readthedocs/sphinx_rtd_theme#1115), so we had to upgrade sphix-rtd-theme package to 0.5.2 and we also updated Sphinx to the latest 3.5.3 version.
When pushing our docs to GitHub pages in the last days we were surprised when some parts were not rendered correctly. We have discovered that this has something to do with the version of Read the Docs theme we're using (readthedocs/sphinx_rtd_theme#1115), so we had to upgrade sphix-rtd-theme package to 0.5.2 and we also updated Sphinx to the latest 3.5.3 version.
Currently running into this bug: readthedocs/sphinx_rtd_theme#1115 Hoping bumping the python version alone is sufficient, rather than specifying build dep versions.
Currently running into this bug: readthedocs/sphinx_rtd_theme#1115 Hoping bumping the python version alone is sufficient, rather than specifying build dep versions. fix #273
Currently running into this bug: readthedocs/sphinx_rtd_theme#1115 This comment explains why pinning is necessary: readthedocs/sphinx_rtd_theme#1115 (comment) fix #273
Currently running into this bug: readthedocs/sphinx_rtd_theme#1115 This comment explains why pinning is necessary: readthedocs/sphinx_rtd_theme#1115 (comment) fix #273
I have deeply read the above and am still a little confused which packages exactly I need to pin to get this to work. The docs build fine locally, but still don't have bullets on readthedocs. My docs (most recent iteration of)
My
edit: I should note that I've found that when I pin
|
@GregDMeyer since you are using Read the Docs, can you create a build with the configuration and point to the build log and a page where the issue is demonstrated? Thanks 🙏 |
Due to an issue with the compatibility of sphinx-rtd-theme and docutils, there are problems with rendering some doc elements when using the most recently installed versions. This is a known bug (see, among others, readthedocs/sphinx_rtd_theme#1115). This pins Sphinx and sphinx-rtd-theme to versions that work. Also add it to conf.py so that the problems can be simulated locally. Signed-off-by: Szymon Łopaciuk <szymon@lopaciuk.eu>
Due to an issue with the compatibility of sphinx-rtd-theme and docutils, there are problems with rendering some doc elements when using the most recently installed versions. This is a known bug (see, among others, readthedocs/sphinx_rtd_theme#1115). This pins Sphinx and sphinx-rtd-theme to versions that work. Also add it to conf.py so that the problems can be simulated locally. Signed-off-by: Szymon Łopaciuk <szymon@lopaciuk.eu>
Due to an issue with the compatibility of sphinx-rtd-theme and docutils, there are problems with rendering some doc elements when using the most recently installed versions. This is a known bug (see, among others, readthedocs/sphinx_rtd_theme#1115). This pins Sphinx and sphinx-rtd-theme to versions that work for now. Signed-off-by: Szymon Łopaciuk <szymon@lopaciuk.eu>
Due to an issue with the compatibility of sphinx-rtd-theme and docutils, there are problems with rendering some doc elements when using the most recently installed versions. This is a known bug (see, among others, readthedocs/sphinx_rtd_theme#1115). This pins Sphinx and sphinx-rtd-theme to versions that work for now. Signed-off-by: Szymon Łopaciuk <szymon@lopaciuk.eu>
@benjaoming Thanks for following up! I actually got it working since then by doing I just tried to revert to a commit where it was broken in order to give you an example in case you want to dig further, and... the docs look fine, from the exact same commit that was broken before. Is there some sort of caching or something that could cause this to happen? In any case, my bullet points look fine now, so I guess no biggie, I'm fine to not spend any more time worrying about it! |
It's likely the source of the version mismatch between docutils and sphinx_rtd_theme making bullets disappear. xref: readthedocs/sphinx_rtd_theme#1115
Looks like there was an issue in docutils/sphinx-rtd-theme so we needed to downgrade to docutils < 0.17 for the unordered lists to be rendered again properly. Reference: readthedocs/sphinx_rtd_theme#1115 Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
* Plugin documentation I've introduced the plugin system with descriptions and examples for the 4 main kinds of plugins (app/dataset routers, dataset providers, and hook spec). I've also tried to explain the common functionality and enough of the underlying system to get folks started building their own. * Trying to fix bullet formatting * Include missing self arg ht @jr3cermak * python.version is deprecated It's likely the source of the version mismatch between docutils and sphinx_rtd_theme making bullets disappear. xref: readthedocs/sphinx_rtd_theme#1115 * Additional mismatch of theme version xref: https://stackoverflow.com/questions/67542699/readthedocs-sphinx-not-rendering-bullet-list-from-rst-file/71069918#71069918
To solve rendering of bulleted lists; see readthedocs/sphinx_rtd_theme#1115 H/T https://github.com/dedupeio/dedupe/pull/961/files
Seems this issue is still not fully handled in latest versions of sphinx / sphinx_rtd_theme (see readthedocs/sphinx_rtd_theme#1115) But hopefully this now covers it.
Looks like there was an issue in docutils/sphinx-rtd-theme so we needed to downgrade to docutils < 0.17 for the unordered lists to be rendered again properly. Reference: readthedocs/sphinx_rtd_theme#1115 Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Looks like there was an issue in docutils/sphinx-rtd-theme so we needed to downgrade to docutils < 0.17 for the unordered lists to be rendered again properly. Reference: readthedocs/sphinx_rtd_theme#1115 Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Reference: readthedocs/sphinx_rtd_theme#1115 Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Reference: readthedocs/sphinx_rtd_theme#1115 Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
There's an old bug in sphinx_rtd_theme which made rendering bullet lists buggy. That bug since has been fixed, but sometimes pip-compile resolves to use the older buggier version of the theme. https://stackoverflow.com/questions/67542699/readthedocs-sphinx-not-rendering-bullet-list-from-rst-file/74355734 readthedocs/sphinx_rtd_theme#1115 readthedocs/sphinx_rtd_theme#1185
I am giving this issue a broad title to collect other issues.
Problem
With docutils 0.17, it seems that bullet points don't render properly (the marker is missing), spacing too little (see images below)
An immediate fix is already in sphinx_rtd_theme==0.5.2 (just released), see (#1111, #1112 for issues, #1114 for fix), but that seems to only pin docutils==0.16 so other things that broke should still be tracked. I tested using the sphinx_rtd_theme docs themselves. #1112 shows this with a problem in the sidebar.
With 0.16:
With 0.17:
I originally thought this was another Sphinx problem, but it seems to not be present in the default Sphinx theme, but (only/at least) sphinx_rtd_theme.
Reproducible Project
sphinx_rtd_theme with docutils==0.16. Installed from the master branch
pip install docutils=0.17
immediately after.Error Logs/Results
none I see as relevant
Expected Results
...
Environment Info
See also
The text was updated successfully, but these errors were encountered: