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

Scope autodoc styling to .class and .data for Sphinx 2.0 #755

Merged
merged 3 commits into from
Jul 4, 2019
Merged

Conversation

jessetan
Copy link
Contributor

@jessetan jessetan commented Apr 28, 2019

Sphinx 2.0+ uses less table elements and more definition lists for layout. This causes styling for autodoc, class etc. to interfere with other layout.
This PR scopes the styling to definition lists in .class or .data, which is all we use in the demo docs. There may be more examples in the wild, but at least this fixes glossaries.

The diff looks larger than it is, only changes to the SASS is an added comment and two classes. Rest of the changes is due to added indentation.

Fixes #752. Affects #741, but does not fix it

@jessetan jessetan requested a review from Blendify April 28, 2019 14:46
@ericholscher ericholscher requested a review from a team June 26, 2019 22:57
@ericholscher
Copy link
Member

Would be good to have a review here @davidfischer or @agjohnson 👍

Copy link
Contributor

@davidfischer davidfischer left a comment

Choose a reason for hiding this comment

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

When reviewing without whitespace this is a pretty small change. LGTM

@jessetan jessetan merged commit f237820 into master Jul 4, 2019
@jessetan jessetan deleted the fix-752 branch July 4, 2019 18:02
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.

Definition lists look different with sphinx 2.0
4 participants