We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I have a trouble with navbar applied in each version
I tried adding navbars/versioned/{my-version}.json but it redirects in root version only when I switch to another version that not from root
navbars/versioned/{my-version}.json
//*navbars/versioned/v4.0.0 [ { "text": "Introduction", "link": "/v4.0.0/intro/...", "activeMatch": "^/intro/" } ]
//*navbars/versioned/v5.0.0 (root) [ { "text": "Introduction", "link": "/intro/...", "activeMatch": "^/intro/" } ]
Config:
import { DefaultTheme } from "vitepress" import defineVersionedConfig from "vitepress-versioning-plugin" // https://vitepress.dev/re ference/site-config export default defineVersionedConfig( { versioning: { latestVersion: "v5.0.0", sidebars: { sidebarContentProcessor(sidebar) { return sidebar }, }, }, themeConfig: { versionSwitcher: { text: "Switch version", }, nav: [ { text: "Introduction", link: "/intro/", activeMatch: "^/intro/", } ], sidebar: { "/intro/": [ { text: "Introduction", items: [ .... ], }, ], "/v4.0.0/intro/": [ { text: "Introduction", items: [ .... ], }, ], }, }, }, __dirname )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I have a trouble with navbar applied in each version
I tried adding
navbars/versioned/{my-version}.json
but it redirects in root version only when I switch to another version that not from rootConfig:
The text was updated successfully, but these errors were encountered: