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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Add left sidebar end section to bottom #543
Conversation
d27b180
to
01f7186
Compare
01f7186
to
09dea71
Compare
It seems the ethical ads are lately also not working on the actual readthedocs site? -> https://pydata-sphinx-theme.readthedocs.io/en/latest/index.html |
Generally +1 on the change, though! |
@jorisvandenbossche the ads work on my computer - here's a screenshot for the current website maybe you have an ad blocker that is blocking it? |
I can confirm I can see it even with an ad blocker 馃槈 . |
You need to stop working at night!! 馃槾 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now!
It's indeed my ad blocker, should have thought of that! :) |
thanks all! |
This adds an extra div to the bottom (called "end" in our classes etc) of the left sidebar. This means that by default, the ReadTheDocs "ethical ads" div will snap to the bottom of the page rather than coming just after the left navigation content.
It also makes this section extensible in the way others on the page are, via the
left_sidebar_end
key.This is preferable for pages that have only a small amount of left sidebar content, because it'll mean that the ethical ads thing isn't in the middle of the page.
It's a bit hard to demo because ReadTheDocs doesn't show the ethical ads on PR previews, but if I manually increase the height of that div and show where it is, you get the idea:
(sorry for the red tint, that's not included in the PR 馃槄