multiVersion: sidebar collapses to '/' when both _meta.json and _nav.json exist at version root #3452
-
|
When using https://github.com/web-infra-dev/rspress/blob/main/packages/core/src/node/auto-nav-sidebar/walk.ts This means the last version processed always overwrites earlier ones, so switching versions in the header shows the same sidebar regardless of version. Root cause: The Proposed fix: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Thanks for the detailed report. This is by design. When You can refer to the docs here: |
Beta Was this translation helpful? Give feedback.
Thanks for the detailed report.
This is by design. When
_nav.jsonand_meta.jsonboth are used at the version root, it follows the global sidebar usage behavior, so the sidebar is keyed by/.You can refer to the docs here:
https://rspress.rs/guide/basic/auto-nav-sidebar#global-sidebar-usage