Files
PX4-Autopilot/docs/package.json
T
Hamish Willee 31455928b8 chore(docs): bump vp-dynamic-nav to preserve page on version switch (#28136)
* 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 <hamishwillee@gmail.com>

* docs(docs): update yarn lockfile

---------

Signed-off-by: Hamish Willee <hamishwillee@gmail.com>
2026-08-05 08:32:05 +10:00

38 lines
1.5 KiB
JSON

{
"name": "px4_user_guide",
"version": "1.0.1",
"repository": "https://github.com/PX4/px4_user_guide.git",
"license": "CC-BY-4.0",
"scripts": {
"docs:dev": "vitepress dev .",
"docs:build": "yarn docs:build_ubuntu",
"docs:buildwin": "set NODE_OPTIONS=--max_old_space_size=8192 && set CI=true && vitepress build .",
"docs:build_ubuntu": "NODE_OPTIONS='--max-old-space-size=8192' vitepress build .",
"docs:preview": "vitepress preview .",
"docs:sitemap": "python3 ./scripts/gen_sitemap.py",
"docs:gen_alt_sidebar_ubuntu": "python3 ./scripts/gen_alt_sidebar.py",
"docs:get_alt_sidebar_windows": "python ./scripts/gen_alt_sidebar.py",
"start": "yarn docs:dev",
"linkcheck": "markdown_link_checker_sc -r .. -d docs -e en -i assets -u docs.px4.io",
"build_docs_metadata_ubuntu": "(cd .. && Tools/ci/metadata_sync.sh --generate && Tools/ci/metadata_sync.sh --sync) && echo 'NOTE: These metadata changes are for local testing only and do not need to be merged.'"
},
"dependencies": {
"@red-asuka/vitepress-plugin-tabs": "0.0.4",
"lite-youtube-embed": "^0.3.4",
"markdown-it-mathjax3": "^4.3.2",
"medium-zoom": "^1.1.0",
"open-editor": "^5.0.0",
"vitepress": "^1.6.3",
"vp-dynamic-nav": "0.1.0",
"vue3-tabs-component": "^1.3.7"
},
"devDependencies": {
"prettier": "^3.8.3",
"markdown_link_checker_sc": "^0.0.145"
},
"resolutions": {
"markdown-it": "^14.1.1",
"esbuild": "^0.25.0"
}
}