-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC [PST] better integrate gallery with pydata-sphinx-theme
#28415
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
Conversation
Why configuring
|
I like the location of the source links in the right-hand side panel. Here is suggestion to improve the style of the links: .sidebar-secondary-item a svg {
margin-right: 0.5em;
} to get: instead of currently: While I overall like the results, I am not a big fan of having to maintain our own HTML post-processor to move the source links at the right place. I agree that it's a pragmatic, short-term way to move forward without having to wait for changes upstream, but in the long term, I would prefer to collaborate with sphinx-gallery maintainers to make sphinx-gallery flexible enough to have those links inserted at the right location of the pydata theme either by default or via a configuration option. Could you please open an issue on their repo to discuss this possibility? |
@adrinjalali @ogrisel Thanks for your review! I've added/updated some comments, please check if those are good enough.
Thanks for catching this. After rechecking the other
The secondary sidebar is not a shared feature of all |
Given the popularity and correlated adoptions of sphinx-gallery and the pydata sphinx theme, maybe it could make sense to add a pydata theme specific config option to sphinx-gallery? |
Yes you're right. A configuration option to hide (remove) the top note and the footer is clearly possible. As for the sidebar components, it might be possible for |
Awesome, so I think we can put this on hold for now and see how things go on the upstream side? |
So I've opened sphinx-gallery/sphinx-gallery#1258, please let me know if there's anything I should add or you can directly comment in that issue. |
Since this PR is targeting the Then we can decide prior to merging |
Please note that this PR targets the
new_web_theme
branch!Towards #28084. This is mainly inspired by the suggestions in #26809 (comment).
Here is the list of things left to be done in this PR (if any). Maintainers please feel free to modify.