From dfdf9538ec6652551c9259aae530834ee6f1e32b Mon Sep 17 00:00:00 2001 From: Matthias Osswald Date: Wed, 12 Aug 2026 09:42:33 +0200 Subject: [PATCH] docs(documentation): Add build script that runs full generation sequence build:vitepress requires docs/api/ (jsdoc) and docs/pages/CLI.md (generate-cli-doc) to exist before it runs. Without them the config load crashes with ENOENT. The new build script wires the correct sequence so a fresh clone can produce the docs with one command. --- internal/documentation/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/documentation/package.json b/internal/documentation/package.json index ac2bf7c3896..4e4e5f0eadf 100644 --- a/internal/documentation/package.json +++ b/internal/documentation/package.json @@ -25,6 +25,7 @@ "start": "vitepress dev --open", "lint": "eslint .", "dev": "vitepress dev", + "build": "npm run jsdoc-generate && npm run generate-cli-doc && npm run build:vitepress && npm run build:assets", "build:vitepress": "vitepress build", "build:assets": "sh -c 'DEST_DIR=${1:-./dist}; cp -r ./docs/images \"$DEST_DIR/images\"' --", "preview": "vitepress preview --port 8080",