-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add release notes and community chat links to homepage sidebar #610
Conversation
Hmm, realizing there is already a square for the community page (which contains zulip) on the main page AND the footer has the zulip link. I still struggle to find it sometimes, and this feels like a nice place for a it anyways. Happy to remove and just add the release notes link |
@@ -0,0 +1,19 @@ | |||
<nav class="bd-docs-nav bd-links"> |
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 think making this change in the napari-sphinx-theme is likely a better place for these changes.
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.
Either way would be fine - I understand @TimMonko' s argument about these links being specific to our pages but we have a bunch of napari-specific items in the theme as well 🤷🏻
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.
Approving as this works now. We can move the templates to the napari-sphinx-theme in the future. Thanks @TimMonko
@melissawm @psobolewskiPhD This would be a nice PR to land before 0.6.0. |
Thanks Carol. Why do you think it's good to move to the theme? I guess at least other sites which use the theme would benefit from these relatively generic links. I guess it would be weird if a non core-napari project used this sidebar. To be quite honest, I'm not sure why it uses this special template compared to the other TOCS sidebars, but I didn't want to rewrite something that someone clearly got working before me |
The short answer is that the landing page is a special page, in that its children are listed in the top navbar and not the sidebar. So to add items to the sidebar, we need to use templates (see https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/layout.html#primary-sidebar-left for some docs on this) |
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.
LGTM, thank you @TimMonko !
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.
Looks fine to me.
I will make a followup issue to consider if we want to add anything else to this sidebar location.
Thank you for this extra information! Very helpful :) |
# References and relevant issues Closes #615. Follow up of #610. Remake of #617 because I got confused with the commit history and merging # Description I think the navbar is a bit too cluttered due to the 'More' section being propagated to the sidebar in smaller width screens (and generally being finnicky) 1. Moves 3 lower-value (I still love them) links out of the navbar: blog, zulip chat, and workshop template 2. Moves blog to homepage sidebar (confirms there is a link to blog in community) 3. Moves workshop template link to Workshops page in Usage, also adds a link to Contributing index 4. Removes zulip link in favor of presence in homepage sidebar and presence in footer. If we want to keep this in header we should move the footer link up to the header in theme 5. Adds troubleshooting link to homepage sidebar (**check** that this is internally referenced correctly, I can't do https://napari.org/troubleshooting.html/ like I can for other internal refs, it 404s)
References and relevant issues
Closes #601
Description
Adds two links to the homepage sidebar