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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Add left sidebar end section to bottom #543

Merged
merged 2 commits into from Jan 11, 2022

Conversation

choldgraf
Copy link
Collaborator

@choldgraf choldgraf commented Jan 8, 2022

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:

image

(sorry for the red tint, that's not included in the PR 馃槄

@jorisvandenbossche
Copy link
Member

It's a bit hard to demo because ReadTheDocs doesn't show the ethical ads on PR previews

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

@jorisvandenbossche
Copy link
Member

Generally +1 on the change, though!

@choldgraf
Copy link
Collaborator Author

@jorisvandenbossche the ads work on my computer - here's a screenshot for the current website

image

maybe you have an ad blocker that is blocking it?

@damianavila
Copy link
Collaborator

maybe you have an ad blocker that is blocking it?

I can confirm I can see it even with an ad blocker 馃槈 .

@damianavila
Copy link
Collaborator

(sorry for the red tint, that's not included in the PR 馃槄

You need to stop working at night!! 馃槾

Copy link
Collaborator

@damianavila damianavila left a comment

Choose a reason for hiding this comment

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

LGTM now!

@jorisvandenbossche
Copy link
Member

It's indeed my ad blocker, should have thought of that! :)

@choldgraf choldgraf merged commit 47aeeed into pydata:master Jan 11, 2022
@choldgraf choldgraf deleted the ENH-sidebar-end branch January 11, 2022 18:24
@choldgraf
Copy link
Collaborator Author

thanks all!

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.

None yet

3 participants