Allow navbar items to be hidden based on path #7832
Labels
closed: duplicate
This issue or pull request already exists in another issue or pull request
feature
This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
Have you read the Contributing Guidelines on issues?
Motivation
I would like to show/hide navbar items based on the path. For example
/docs/cli
- show a github link and version dropdown for our CLI/docs/supabase-js
- show a github link and version dropdown for our client librariesImplementation idea
The NavBar Item has a field
activeBaseRegex
, which I thought I could re-purpose for this, but it appears this function doesn't run on all NavBar items (only "Navbar link"). If this can be applied to all top-level links, then we could use thenavbar__link--active
CSS class to show/hide navbar itemsOne more thing
Thank you! We really love Docusaurus at supabase 🦖 . I'd be happy to swizzle this and test it on a live site if someone could let me know what approach to take
Self-service
The text was updated successfully, but these errors were encountered: