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

WIP: fixes Python Reference Sidebar #775

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sylwiavargas
Copy link
Contributor

@sylwiavargas sylwiavargas commented May 10, 2024

In reference to Aaron's bug report.

The reason the TypeScript nav bar is open is that it has defaultOpen: true, and currently the logic is that we show the current page's parent navigation AND everything with defaultOpen: true.

This change makes it so that the defaultOpen: true elements are only shown as open when there is no currently active route.

This may not be what we want, though, because on the "Getting Started" route the "Learn the Basics" section is now closed by default because the "Getting started" route is actually a Next.js subpage under Quickstarts. A solution here is to maybe make a separate landing page for the "Getting Started" route. This would mean, though, that when someone is working through a QuickStart, they don't see the "Getting Started" nav bar. We could move them to be a sub-section the "Getting Started" sidebar, though.

Copy link

vercel bot commented May 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2024 6:19pm

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

Successfully merging this pull request may close these issues.

None yet

1 participant