You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks. I understand your example but is anyone actually doing that? It seems like you're favoring an edge case at the expense of sacrificing the commonly desired behavior. A much better solution to your example would be a sub-menu under docs. Ex:
- Docs (/docs)
- Introduction (/docs/introduction)
- API (/docs/api)
Oh, and it's still not clear how I can enable the /docs route, even if that's just redirecting to another page. Having /docs404 is a pretty poor user experience.
Activity
endiliey commentedon Nov 6, 2019
I don't think its a bug. The thing is,
themeConfig.navbar.linksis just a helper for you to link to internal pages, and "Docs" is just a Label.In docusaurus, it is possible to have multiple sidebars. See https://v2.docusaurus.io/docs/sidebar
Example:
I could change my
themeConfig.navbar.linkstoWhich yields accessing /docs/introduction

/docs/cli

It's gonna be weird if i go to /docs/cli, both Navbar
introductionandAPIis highlighted according to your expected behaviorbinarylogic commentedon Nov 6, 2019
Thanks. I understand your example but is anyone actually doing that? It seems like you're favoring an edge case at the expense of sacrificing the commonly desired behavior. A much better solution to your example would be a sub-menu under docs. Ex:
It appears Infima supports this, and I noticed it is a feedback request.
It's typically best practice for the navigation organization to follow the URL structure.
Does that make sense? Do you agree?
binarylogic commentedon Nov 6, 2019
Oh, and it's still not clear how I can enable the
/docsroute, even if that's just redirecting to another page. Having/docs404is a pretty poor user experience.endiliey commentedon Nov 7, 2019
I guess the main problem is more on how to create
/docsroute.Because if
/docsexist.Will always be highlighted when you are in
/docs/introductionfor example. Our navbar highlighting is powered by react-router NavLink.You might want to wait #1946 to land first before you can actually create
/docson your own even if its a redirect