Skip to content
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

[UX] Improve confusing split navigation #267

Open
zackw opened this issue May 20, 2024 · 8 comments
Open

[UX] Improve confusing split navigation #267

zackw opened this issue May 20, 2024 · 8 comments
Labels
pyconus-24 UX User experience

Comments

@zackw
Copy link

zackw commented May 20, 2024

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
Copy link
Member

lwasser commented May 29, 2024

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
Copy link
Author

zackw commented May 29, 2024

yes I was at the sprint last monday

@lwasser
Copy link
Member

lwasser commented May 29, 2024

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 willingc added the UX User experience label May 29, 2024
@willingc
Copy link
Collaborator

willingc commented May 29, 2024

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

@willingc willingc changed the title Confusing split navigation Improve confusing split navigation May 29, 2024
@willingc willingc changed the title Improve confusing split navigation [UX] Improve confusing split navigation May 29, 2024
@lwasser
Copy link
Member

lwasser commented Jun 6, 2024

@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
Copy link

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
Copy link
Member

lwasser commented Jun 7, 2024

got it. thank you @choldgraf !! 🚀

@sneakers-the-rat
Copy link
Contributor

If i'm getting the question right, we want to just move the in-page TOC to the left side? I think that you can do this with pydata-sphinx-theme like

html_theme_options = {
    # ...
    "secondary_sidebar_items": {
        "**": []
    }
}

html_sidebars = {
    "**": ["page-toc"]
}

weirdly i literally was just doing this: zarr-developers/zarr-python#2142

(but i mean don't take my word for it, i'm assuming i'm missing what's being asked here because chris wrote the dang thing so he obviously knows better than me)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pyconus-24 UX User experience
Projects
Development

No branches or pull requests

5 participants