ci(site): build the docs without a mode (#62468)

This commit is contained in:
Adam
2026-11-07 11:39:36 -06:00
committed by GitHub
Unverified
parent fdce6365bc
commit 4ce137b39e
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")