Repository navigation
Conversation
`pnpm run docs:vitepress` builds the guide pages with VitePress into docs/.vitepress/dist, while `pnpm run docs` keeps building and deploying the VuePress site. The VitePress dependencies live in a temporary workspace package, docs/.vitepress/package.json, until the site replaces VuePress. The config takes its base from docs/.vitepress/docs-version.json, which scripts/docs-config.sh now writes beside the VuePress sed. Partials and the VuePress TypeDoc output in docs/api are not published, and links into the API reference are ignored until this site generates it. `pnpm run docs:typecheck` checks the docs' TypeScript with vue-tsc. Resolving the lockfile moves the auto-installed chart.js peer to 4.6.2, which is still inside pnpm's minimumReleaseAge window, so pnpm-workspace.yaml excludes chart.js@4.6.2 until the clean-up removes it. Part of chartjs#10583
✅ Deploy Preview for chartjs-docs canceled.
|
|
Size Change: 0 B Total Size: 361 kB ℹ️ View Unchanged
|
The config excludes `api/**` until the API piece, as D6 and the P2 row say; the task now says so too.
kurkle
marked this pull request as ready for review
November 24, 2026 03:40
etimberg
approved these changes
Nov 24, 2026
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.
Advances #10583. This is piece P2 of the design in
openspec/changes/migrate-docs-to-vitepress.What was missing
No VitePress build of the docs existed. The later pieces (sidebar, API reference, redirects, version menu, live samples, and then the switch) need a site to build on. VuePress keeps building and deploying the docs until the switch.
What changed
pnpm run docs:vitepressbuilds the library, then the guide pages intodocs/.vitepress/dist.docs:vitepress:devruns the dev server.docs:typecheckrunsvue-tsc --noEmitover the docs' TypeScript.docs/.vitepress/package.jsonmarkdown-it-include, TypeScript 6.0 and vue-tsc.site:build,site:devandtypecheck. The root--filter "./docs/**"does not select it either."type": "module". Without that, VitePress loadsconfig.tsas CommonJS and fails on the ESM-onlyvitepress.docs/.vitepress/config.tsdocs-version.json, the favicon under the base, and the nav (Home, API, Samples, Ecosystem).markdown-it-include, and duplicate-heading anchors as today (#animations-2).**/_*.md) and, until the API piece,api/**. Without theapi/**exclusion, a build afterpnpm run docspublishes the 126 TypeDoc pages VuePress left indocs/api.localhostand, until the API piece, links intoapi/.chart.js→dist/chart.js, plus two temporary aliases that pointvueandvue/server-rendererat the Vue 3 package.docs/package.jsonstill pins Vue 2.docs/public/.scripts/docs-config.shalso writes the tag todocs/.vitepress/docs-version.json, beside the existingsed. No workflow changes..gitignore: VitePress'scache,.tempanddist.design.mdandtasks.mdrecord what this piece measured, and tasks 2.x are ticked.chart.jspeer to 4.6.2, which is still inside pnpm'sminimumReleaseAgewindow. Sopnpm-workspace.yamlexcludeschart.js@4.6.2. The entry is stale after 2026-11-24 19:23 UTC and is removed in the clean-up piece (D22).Evidence
Before, on cdfab70:
After:
pnpm run docs:vitepress: "build complete", 135 pages. These output checks pass:getting-started/usage.htmlexists andaxes/_common.htmldoes not.configuration/animations.htmlhasid="animations-2".charts/bar.htmlhas a tip callout and a copy button.axes/cartesian/linear.htmlcontains "Common options to all cartesian axes"./docs/master/, and there is no appearance switch../scripts/docs-config.shwrites these markers. A build withnextlinks only under/docs/next/.mastermaster4.6.2 release4.6.24.6.2latest4.7.0-beta.1nextpnpm run docs:typecheckpasses. WithlastUpdated: 42in the config it fails withTS2322: Type 'number' is not assignable to type 'boolean | undefined'.pnpm run docs(VuePress), run after a VitePress build: it still writes the same site todist/docs, andpnpm pack --dry-runlists no docs file.pnpm install --frozen-lockfilepasses the supply-chain policy check.How to try it
Until later pieces land, the site has no sidebar, API reference or live samples, and the three tab pages show literal
:::: tabstext.