-
Notifications
You must be signed in to change notification settings - Fork 201
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
ENH: Add support for ReadTheDocs popup #518
ENH: Add support for ReadTheDocs popup #518
Conversation
FYI: I’m not able to see the injected button on an iPad in landscape mode. |
Cross-linking to: pradyunsg/furo#359 (was hoping @pradyunsg would do it, so then we could steal he's implementation 😅) |
For me (macbook, firefox), its only visible after scrolling down |
OK the latest commit cleaned things up a bit, but there's still one major UX issue that I think is related to both of the things you reported above: The height of the sidebar container is A better approach would be to somehow get the sidebar container to stretch to fill the remaining vertical space that fits within the screen, however much it is. However, I can't for the life of my figure out how to do it. I've tried |
@choldgraf, it has actually been implemented in furo now 🎉 , did you look at that implementation? pradyunsg/furo#359 (reply in thread) |
If it's in a flex container, |
Ya - I looked at the RTD implementation, though couldn't get the "template injection" method working, which is why this one uses a lightweight javascript approach. I feel like the issue here is some kind of CSS bug that is probably not directly portable to the Furo theme :-/ I can have another look at how the sidebar behavior works though in case that helps illuminate things. The weird thing is that on the "mobile view" of my browser, the RTD button shows up in the sidebar just fine, but when I try it with my actual phone, it is hidden below the screen. I dunno what's up with that. @pradyunsg the issue w/ |
Ah, the problem is the announcements. I have the same problem on https://furo.readthedocs.io/en/latest/; so if you figure something out, lemme know. :P |
OK so at least on mobile I think that I've resolved the issue. Apparently At this point the expected behavior is:
The second bullet is definitely sub-optimal, but hopefully not a huge deal since announcements will likely be used relatively rarely, and if we can resolve #488 , then they can be dismissed on subsequent pageviews. |
(If anything here seems to be broken other than the announcement pushing down the RTD button, please let me know!) |
Actually I think that I might have solved the issue of the footer floating to the bottom in executablebooks/sphinx-book-theme@ |
OK the latest push cleans up the CSS a bit so that it looks more in-line with how the other visual elements of the theme look. It is maybe a bit harder to spot, but I think that it looks a lot cleaner, and since it's in the same position as the RTD theme switcher I'd hope it won't be too confusing. I updated the top comment w/ a GIF of how it looks. |
ok gonna merge this one in and we can iterate on more improvements if there are issues that pop up! |
This adds some JS that "places" the ReadTheDocs popup in the sidebar so that it looks a bit nicer on page load. It creates a "top" and a "bottom" of our sidebar, so that things stay at the bottom regardless of the content at the top. Also adds a bunch of CSS to style the ReadTheDocs popup properly.