pyOpenSci / python-package-guide

scientific Python package recommendations & guidance curated by pyOpenSci
https://www.pyopensci.org/python-package-guide/
Other
70 stars 43 forks source link

[UX] Improve confusing split navigation #267

Open zackw opened 1 month ago

zackw commented 1 month ago

I didn’t even see the second table-of-contents sidebar on the right side of each page until after I’d gotten lost clicking around in the left-hand sidebar. I’m still a bit confused but I think the left sidebar has the TOC tree above the level of individual HTML pages, and the right sidebar has the section headings for the current page. I think it would be much less confusing if the left sidebar included the section headings for the page you’re on, nested under the page’s title.

lwasser commented 1 month ago

hey @zackw were you sprinting on pyOpenSci via pycon US last week or did you just find us and are contributing to the guide that way? I'm organizing issues and such and was curious how you found us.

also welcome to pyOpenSci!

zackw commented 1 month ago

yes I was at the sprint last monday

lwasser commented 1 month ago

oooh @zackw of course you were. the owl triggered my memory! i should have looked at your profile as the gh usernames get blurred in my mind! my apologies.

willingc commented 1 month ago

Hi @zackw, Nice to see you here. Thanks for the usability suggestion. The location of the left and right navigation is a function of the theme. I do think we could do an override on the theme to make the headings more explicit. We could likely replace Section Navigation with a more descriptive term. Open to suggestions on the wording of a different title that more clearly reflects that it is listing the main navbar category contents (i.e. Tutorial).

Left

Screenshot 2024-05-29 at 2 14 37 PM

Right

Screenshot 2024-05-29 at 2 14 45 PM
lwasser commented 3 weeks ago

@willingc @zackw that split navigation has always driven me crazy. it also visually is confusing. is there a way in sphinx to add the sub sections of a page to the left hand side bar? i'm guessing we could do that. i'm pretty sure there is an option to turn off the right side! because i remember opening an issue on this a few years ago.

i agree it's too much visually especially if you need larger fonts on the screen (which i do).

i'm guessing there is a way to do this so the sub sections are just added to the left side when you are in a page. i'm going to bug @choldgraf (i hope you don't mind chris!). I try hard to rarely ping you!

I just suspect that you know the answer here and could guide us!

choldgraf commented 3 weeks ago

It's possible in sphinx for sure (the ReadTheDocs theme does this for example) but I don't believe it is yet possible in the pydata theme. Probably would require an enhancement issue to see if others are interested in this too

lwasser commented 3 weeks ago

got it. thank you @choldgraf !! 🚀