diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 83c74569..fa397e6a 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -126,6 +126,10 @@ jobs: # (Runs with the main checkout's docs toolchain — tsx lives there.) pnpm --filter ./docs exec tsx "$GITHUB_WORKSPACE/.github/scripts/inject-docs-version-nav.ts" \ /tmp/stable-docs/docs/.vitepress + # Brand assets follow main, not the tag: the stable site is the landing page, + # and a tag cut before a rebrand would otherwise serve the old logo forever. + rm -rf /tmp/stable-docs/docs/public + cp -r docs/public /tmp/stable-docs/docs/public cd /tmp/stable-docs pnpm install --frozen-lockfile pnpm --filter ./docs exec turbo build diff --git a/turbo.json b/turbo.json index 1b91499a..179b7c6f 100644 --- a/turbo.json +++ b/turbo.json @@ -32,6 +32,10 @@ }, "@temporal-contract/docs#build": { "dependsOn": ["^build", "^build:docs"], + // deploy-docs.yml passes these to build the versioned (/beta/) site; turbo's + // strict env mode drops anything undeclared, which silently builds the beta + // site with the root base and 404s every asset. + "env": ["DOCS_BASE", "DOCS_VERSIONS"], "outputs": [".vitepress/dist/**"] }, "check:package": {