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

Sidebar Menu #12

Open
one000mph opened this issue Oct 10, 2019 · 1 comment
Open

Sidebar Menu #12

one000mph opened this issue Oct 10, 2019 · 1 comment

Comments

@one000mph
Copy link

one000mph commented Oct 10, 2019

Moving this discussion to an issue so it doesn't get lost

Originally started in PR #4

Re: the sidebar menu. It isn't bad right now, but it could probably be better. It would be nice to be able to dynamically expand and collapse the page TOC without navigating to the page. One thing I was just wishing I could have would be the ability to create a top-level TOC/menu item. For example: the CLI Docs and FAQ are both very important pages but don't necessarily belong to another category like Guides or Concepts. There was generically-titled "Documentation" category but that heading feels vague to me. I found the theme file here at this path teleport/docs/theme/toc.html but haven't touched it yet. HTML/CSS isn't my strong suit, so hoping that your design team can help here.

Another issue I noticed just now: when I load a page that is below the fold on in the sidebar menu I lose the view of the TOC outline in the sidebar since the page jumps to the top. One site that has a solution to this is the GCP CLI docs. It looks like there is some sort of event that fires after pageload which updates the scroll anchor in the sidebar (https://cloud.google.com/sdk/gcloud/reference/).

@benarent
Copy link

I'm going to have to file this under technical design / UX debt. It's a good point but currently out of scope for the project right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants