chore: upgrade to VitePress 2 + Vite 8, add sitemap#128
Merged
Conversation
Bump VitePress 1.6.4 -> 2.0.0-alpha.17, with the plugin and toolchain changes the new major requires: - vitepress-plugin-llms 1.12.0 -> 1.13.1 - vitepress-plugin-tabs 0.8.0 -> 0.9.0 - pin vite 8.0.16 via pnpm override in pnpm-workspace.yaml (matches vuejs.org); Vite 8 is rolldown-based and so requires oxc-minify, added as a devDependency - csv data loader: use an absolute watch glob, since VitePress 2 resolves relative loader globs against the loader file's directory rather than the project root (previously yielded empty data and crashed SSR) Also add a sitemap, emitted only for the canonical stable build (base '/'); the versioned latest/patch preview builds must not publish a competing sitemap.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades the docs site to VitePress 2 (alpha) on Vite 8, and adds a sitemap.
1.6.4→2.0.0-alpha.17vitepress-plugin-llms1.12.0→1.13.1vitepress-plugin-tabs0.8.0→0.9.0vite@8.0.16via override inpnpm-workspace.yaml(matches what vuejs.org does). Vite 8 is rolldown-based, which makes VitePress requireoxc-minify— added as a devDependency (pinned to0.134.0to satisfy the repo'sminimumReleaseAgepolicy).watchglob against the loader file's directory rather than the project root, sopublic/files/*.csvmatched nothing → empty data → SSR crash on the Address Book page. Switched to an absolute glob derived fromimport.meta.url.base === '/'). The versionedlatest/patchpreview builds deliberately emit no sitemap so they don't publish competing/incorrect URLs.Validation
pnpm buildon both the default andDOCS_VERSION=latestbuildsNavCards, CSV tables (4 headers/4 rows + download link), interactive tabs (macOS↔Windows switching), local search, code highlighting, llms "Copy page" button/usage-guides/historical-events→/usage-guides/history/events); all 44 redirect targets resolve to built pages, and get the/latest/base prefix in the versioned buildhttps://docs.rotki.com/...URLs on stable, and none on the versioned preview buildNotes
2.0.0-alpha.17is a pre-release; the same VitePress 2 + Vite 8 +vitepress-plugin-llmscombination is what the official vuejs.org docs run in production.