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

Footer: return well formed html #8202

Merged
merged 1 commit into from Jun 9, 2021
Merged

Footer: return well formed html #8202

merged 1 commit into from Jun 9, 2021

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented May 20, 2021

We shouldn't use strong tags to surround a dd tag, use css instead.

Closes #7903

@@ -24,6 +24,10 @@
margin: 0;
}

.rtd-current-item {
Copy link
Member Author

Choose a reason for hiding this comment

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

noticed we are using rst- for the other selectors, not sure why, so I went with rtd-

Copy link
Member

Choose a reason for hiding this comment

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

I think the CSS for the footer is defined here: https://github.com/readthedocs/readthedocs.org/blob/master/readthedocs/core/static/core/css/badge_only.css

Which is built from here: https://github.com/readthedocs/sphinx_rtd_theme/blob/master/src/sass/badge_only.sass

But we should fix that and include this CSS as part of RTD, but we should put the class in the right place.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done readthedocs/sphinx_rtd_theme#1148, should I just copy that file here? or is it done with a script?

Copy link
Member

Choose a reason for hiding this comment

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

...no idea -- looks like it hasn't changed since 2018 :D

Copy link
Member

Choose a reason for hiding this comment

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

I'm sure there was a script at some point, but just manually copying it is probably fine.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Created #8247

@stsewd stsewd requested a review from a team May 20, 2021 17:59
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

Footer change looks good, but should put the CSS in the right place.

@@ -24,6 +24,10 @@
margin: 0;
}

.rtd-current-item {
Copy link
Member

Choose a reason for hiding this comment

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

I think the CSS for the footer is defined here: https://github.com/readthedocs/readthedocs.org/blob/master/readthedocs/core/static/core/css/badge_only.css

Which is built from here: https://github.com/readthedocs/sphinx_rtd_theme/blob/master/src/sass/badge_only.sass

But we should fix that and include this CSS as part of RTD, but we should put the class in the right place.

stsewd added a commit to readthedocs/sphinx_rtd_theme that referenced this pull request May 20, 2021
We shouldn't use strong tags to surround a dd tag, use css instead.

Closes #7903
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

I feel like we shouldn't hold up this PR on the small CSS change. Let's open an issue to make this way more obvious, and merge this 👍

@stsewd stsewd merged commit 75955e1 into master Jun 9, 2021
@stsewd stsewd deleted the fix-footer-html branch June 9, 2021 13:00
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.

Invalid markup inside version picker definition list
2 participants