ci(site): build the docs without a mode

The docs build no longer has modes: check-docs.yml passed --mode dev, which
build.ts parsed and ignored. Drop both.
This commit is contained in:
Adam
2026-11-06 19:33:30 -06:00
Unverified
parent a1dfa56c17
commit 62bc78d6aa
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -39,4 +39,4 @@ jobs:
run: bun run generate
- name: Build docs
run: bun src/docs/script/build.ts --mode dev --out "$RUNNER_TEMP/docs"
run: bun src/docs/script/build.ts --out "$RUNNER_TEMP/docs"
+1 -2
View File
@@ -22,8 +22,7 @@ import { docsHref, docsMarkdownHref } from "../lib/navigation"
import type { docsSlugs, renderDocsMarkdown, renderDocsPage, renderLlmsTxt, renderSitemap } from "../render"
import { docs } from "../vite"
// check-docs.yml still passes `--mode dev`, which changes nothing; drop the option with it.
const args = parseArgs({ options: { mode: { type: "string" }, out: { type: "string" } } })
const args = parseArgs({ options: { out: { type: "string" } } })
const root = path.resolve(import.meta.dir, "../../..")
const output = path.resolve(root, args.values.out ?? ".output/public")
const cache = path.join(root, "node_modules/.cache/docs")