-
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
Update pydata theme to 0.10 #597
Conversation
for more information, see https://pre-commit.ci
Just a note that some of this has already been done in the PR below, but if you think it's better to start a fresh PR I am +1. Will link below if it's useful I think we should use this as an opportunity to simplify and reduce as much as we can...there were many special-cases in CSS, HTML structure, etc that we had in this theme, that we have since upstreamed to the pydata theme, so we should be able to slim things down here a lot more. |
Ahh yes, Thank you for linking the PR. |
…/sphinx-book-theme into updt-pydata-0.10
for more information, see https://pre-commit.ci
…/sphinx-book-theme into updt-pydata-0.10
…/sphinx-book-theme into updt-pydata-0.10
for more information, see https://pre-commit.ci
…/sphinx-book-theme into updt-pydata-0.10
@AakashGfude let's try to add in the content footer in the PyData theme as an empty template for now. That way sub themes can override it even if it's not used in the PyData theme. |
for more information, see https://pre-commit.ci
…/sphinx-book-theme into updt-pydata-0.10
for more information, see https://pre-commit.ci
pyproject.toml
Outdated
"sphinx>=3,<5", | ||
"pydata-sphinx-theme~=0.8.0", | ||
"sphinx>=3,<6", | ||
"pydata-sphinx-theme~=0.10.0rc1", |
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.
I'd try rc2 - that makes some more changes
@choldgraf, I tried introducing a button for the theme mode and added a few CSS changes. But realized that it would need a lot of CSS updates to work seamlessly. So, I think it will be best to do that in a new PR. For now, I have set the Full-width cells should be fine now. And margin style anomaly I could not detect. Probably was fixed by some other changes. Let me know how it looks now, and thank you for taking some time out for this. |
A few more visual bugs. Can you please go through the kitchen sink and the theme-specific elements page and confirm that everything looks normal. That is the easiest way to spot these bugs. I'd like to get this PR merged quickly and I know that we will need to keep iterating, but I at least want to avoid introducing an obvious visual bug into our docs. |
@choldgraf thanks for reporting this, and looking through all this patiently. I think the ones notified in the last comment have been resolved with the latest push. I will look through those pages for any visual anomalies. |
Sounds good @AakashGfude - let me know when you've taken a close look and think it is ready to merge, and then I can give a final look-over. |
@choldgraf from my inspection of the pages, I think this PR looks good. Just pointing out some visual changes, which are inherited from pydata-sphinx-theme. The changes inherited looks better to me. Left: original right: this PR
|
Sorry to jump in late with feedback. I like the improvements and customizations made so far. I found a few more discrepancies that are important to our documentation projects. The search box hint text is very light and difficult for me to read. OriginalProposedThe OriginalProposedThe contents menu no longer highlights the final heading of a page when scrolled to the end. OriginalProposedThe OriginalProposedThe OriginalProposed |
Thanks @stevepiercy ! A few quick responses from me on next steps for these suggestions:
|
Thank you for the inputs @stevepiercy, and for the replies @choldgraf. The latest push should have the search field text covered. I agree with the admonition styling being done upstream. |
Thanks for the responses. I agree on the course forward on all points. I will work on the new issues next week. Full speed ahead for this PR! |
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.
OK I think that this one is ready to go - I bet that we will still need to make some tweaks over time, and I also think it'd be great to try and take another pass at removing more customizations here to just re-use the pydata theme structure as much as possible, but this is a big complex PR and it'll be out of date quickly if we merge anything in. @AakashGfude what do you think?
@choldgraf I agree. Let's merge this one. And continue the tweaks over time. |
On second thought, I think the I think I can see that this theme inherits the colors from pydata: https://pydata-sphinx-theme.readthedocs.io/en/stable/examples/kitchen-sink/admonitions.html I could open an issue in the pydata theme to discuss, but I wanted to get @choldgraf's opinion first. Please let me know. Thank you! |
I think that makes sense to me - let's discuss in the pydata theme and see where that goes - what do you think? |
Any chance to tag new version soon? 🤔 |
Kindly ping, any plan to make a new release? :D |
I think there are some more breaking changes we'll need to make here: My feeling is that we should get that done at least as an MVP before we release, so that we can simplify this one as much as possible and start to make it much easier to update in the future |
This PR updates the theme to synchronize with pydata-sphinx-theme~=0.10. The aim here is to just refactor the existing code to harmonize with the latest pydata. So, no new features will be added. Although a lot of CSS rework would be done here, apart from HTML and CSS.
footer-content in sbt:
for reference in s-b-ng:
We can probably just use a hacky one in this PR and update it in relevant sources in upcoming cycles.
EDIT: Done in pydata/pydata-sphinx-theme#861
fixes #575