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

avoid placing the flyout in a hidden sidebar #1133

Closed
wants to merge 5 commits into from

Conversation

12rambau
Copy link
Collaborator

@12rambau 12rambau commented Jan 23, 2023

closes #1092

kmaehashi added a commit to kmaehashi/cupy that referenced this pull request Feb 6, 2023
Copy link
Collaborator

@drammock drammock left a comment

Choose a reason for hiding this comment

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

@12rambau on the PR build it looked weird to me that the RTD switcher was floating in the bottom right and our theme's version switcher was in the topbar. At first I thought that anyone who requested the theme's version switcher wouldn't want the (redundant) RTD switcher too? But then I realized that the redundant switcher has been there all along, hidden at the bottom of the sidebar below the ethical ads.

So I pushed a commit here b18046d to suppress the RTD flyout if the theme's version switcher is found on the page, but if you think that's a bad idea feel free to revert. I've also pushed a docs update describing our RTD version flyout integration (if you revert you'll need to delete one line of the docs update too).

Otherwise this LGTM, if you agree please take out of draft mode and we can merge.

@12rambau
Copy link
Collaborator Author

So I pushed a commit here b18046d to suppress the RTD flyout if the theme's version switcher is found on the page, but if you think that's a bad idea feel free to revert.

Currently that is indeed a bad idea as the RDT witcher also include language switch that we still don't support. If you could reverse it that would be great and I'll update this PR to see if it works as expected.

@drammock
Copy link
Collaborator

ok I reverted the changes (which weren't working anyway) that try to suppress the RTD switcher. Looking at the PR build though, things are still not working right here; the RTD switcher seems to be always bottom-right even on pages that have a sidebar, e.g. https://pydata-sphinx-theme--1133.org.readthedocs.build/en/1133/user_guide/index.html

@12rambau
Copy link
Collaborator Author

It's not working as expected and creates to many caveheat; I think I'll focus on #705 instead which should solve every problems at once.

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.

readthedocs flyout become invisible on big screens if the primary sidebar is hidden
2 participants