From 31455928b8e0ef703ddbb461fa7a27ba0de83b81 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Wed, 5 Aug 2026 08:32:05 +1000 Subject: [PATCH] chore(docs): bump vp-dynamic-nav to preserve page on version switch (#28136) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(docs): bump vp-dynamic-nav to 0.1.0 for version-switcher path preservation Switching versions in the navbar previously always sent the reader to the target version's front page, losing their place. vp-dynamic-nav 0.1.0 adds an opt-in "preservePath" flag that rewrites same-origin nav links to the equivalent page on the target version instead of its root. Opt in the Version group via navbar.json. Depends on hamishwillee/vp-dynamic-nav (branch pr_version_switcher) being merged and 0.1.0 published to npm — yarn.lock still pins 0.0.3 and needs `yarn install` rerun once the new version is available. Assisted-by: Claude:claude-sonnet-5 Signed-off-by: Hamish Willee * docs(docs): update yarn lockfile --------- Signed-off-by: Hamish Willee --- docs/.vitepress/navbar.json | 1 + docs/package.json | 2 +- docs/yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/.vitepress/navbar.json b/docs/.vitepress/navbar.json index c5f8b537f71..0071e6d3784 100644 --- a/docs/.vitepress/navbar.json +++ b/docs/.vitepress/navbar.json @@ -14,6 +14,7 @@ { "text": "Support", "link": "https://docs.px4.io/main/en/contribute/support.html" }, { "text": "Version", + "preservePath": true, "items": [ { "text": "main", "link": "https://docs.px4.io/main/en/" }, { "text": "v1.17 (stable)", "link": "https://docs.px4.io/v1.17/en/" }, diff --git a/docs/package.json b/docs/package.json index 293b5797566..48ac44e247d 100644 --- a/docs/package.json +++ b/docs/package.json @@ -23,7 +23,7 @@ "medium-zoom": "^1.1.0", "open-editor": "^5.0.0", "vitepress": "^1.6.3", - "vp-dynamic-nav": "0.0.3", + "vp-dynamic-nav": "0.1.0", "vue3-tabs-component": "^1.3.7" }, "devDependencies": { diff --git a/docs/yarn.lock b/docs/yarn.lock index 4066300c8df..2c421cc958d 100644 --- a/docs/yarn.lock +++ b/docs/yarn.lock @@ -1785,10 +1785,10 @@ vitepress@^1.6.3: vite "^5.4.14" vue "^3.5.13" -vp-dynamic-nav@0.0.3: - version "0.0.3" - resolved "https://registry.npmjs.org/vp-dynamic-nav/-/vp-dynamic-nav-0.0.3.tgz" - integrity sha512-qkDeki7TA21bhA12uiR0kEWZHVqeFusza3/XsGjD75Ht6qUoDOS/+YrCPyw9+6Zm+5/BvzK7j0jpDXPwW20m3g== +vp-dynamic-nav@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/vp-dynamic-nav/-/vp-dynamic-nav-0.1.0.tgz#7f0136edfe2c7d2eaa0e8a75b99d8dd5b409e7c5" + integrity sha512-AXGT1uYpjngEqtRSVWsJu/8O08uxqyYb84glF31w3ozTlp1TiBWVLELCPKIhj0ukX/x6J7lfaQNDS2R/8DNO9Q== vue3-tabs-component@^1.3.7: version "1.3.7"