From 4ce137b39ef74318f3625fd7553a9eaccfd6f682 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Sat, 7 Nov 2026 11:39:36 -0600 Subject: [PATCH] ci(site): build the docs without a mode (#62468) --- .github/workflows/check-docs.yml | 2 +- services/site/src/docs/script/build.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-docs.yml b/.github/workflows/check-docs.yml index a48be29f053..a065382882d 100644 --- a/.github/workflows/check-docs.yml +++ b/.github/workflows/check-docs.yml @@ -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" diff --git a/services/site/src/docs/script/build.ts b/services/site/src/docs/script/build.ts index 57889b1ce3e..f9473494624 100644 --- a/services/site/src/docs/script/build.ts +++ b/services/site/src/docs/script/build.ts @@ -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")