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

Add support for docutils 0.17 #1185

Merged
merged 8 commits into from Aug 12, 2021
Merged

Add support for docutils 0.17 #1185

merged 8 commits into from Aug 12, 2021

Conversation

Blendify
Copy link
Member

@Blendify Blendify commented Aug 6, 2021

This should'nt be a breaking change as backward compatibility is preserved so this change could go into 1.0 or wait until 1.1.

I know a lot of users are asking for this so it might be nice to include this in 1.0.

Fixes #1115

This should'nt be a breaking change as backward compatibility is preserved so this change could go into 1.0 or wait until 1.1.

I know a lot of users are asking for this so it might be nice to include this in 1.0.

Fixes #1115
Copy link
Collaborator

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Glad to have this fixed. I'll note a few visual differences I noticed in QA

@@ -16,22 +16,18 @@
.rst-content
// Sphinx by default applies HxW style attributes to images. This fixes that oversite.
img
margin-bottom: $base-line-height
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming there will probably be unwanted side effects from this, img is a pretty generic selector. Is this on purpose? Looks like the original selector was a bit more specific, at .rst-content .section > img

@agjohnson
Copy link
Collaborator

Gave a quick test against Sphinx 4.1 + master branch on Firefox. Lists look far better!


There is some probably unwanted spacing added with this PR, under the image in this hlist:

On master:

image

On this PR:

image


image


Some unwanted spacing under an inline image:

image


More spacing was added here, but it actually looks better. If we want to undo the image spacing in this PR, I would make a separate PR with this change included:

image

Same with image spacing and this caption:

image


Probably a bit too much spacing here now:

image

@agjohnson agjohnson added this to the 1.0 milestone Aug 10, 2021
It seems that browsers add some special default styling to header tags :(

I found that for smaller heading tags, like h5 could give more padding then h1 tags...

To fix this, everything should now just recieve the theme standard of 24px bottom margin.
@Blendify
Copy link
Member Author

This was weird... Seems to be some user agent styling from the browser, it seems to give special bottom margins to section h1-6

To standardize this, I just made them all have a 24px bottom margin.

Copy link
Collaborator

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good, I tested Firefox again really quick and the issues I noted are resolved.

@MehdiChinoune
Copy link

Is there an issue with docutils>=0.18

bennorth added a commit to pytchlang/pytch-webapp that referenced this pull request Jan 17, 2023
Fixes bug where bullet lists lose their bullets.  See

    readthedocs/sphinx_rtd_theme#1115
    readthedocs/sphinx_rtd_theme#1185

Does mean we use older version of Sphinx and docutils but seems OK.
This only affects building the docs in standalone mode for
development.  For release we're using a custom theme anyway.
sajith added a commit to atlanticwave-sdx/sdx-docs that referenced this pull request Nov 3, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rendering wrong in docutils 0.17 (unordered list, maybe more?)
4 participants