From 970712e7406de9a8890a87ba48b0dcae89b97fcc Mon Sep 17 00:00:00 2001 From: Chris Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com> Date: Mon, 29 Jun 2026 21:45:54 -0400 Subject: [PATCH] ci(docfx): sync docfx.yaml to canonical --- .github/workflows/docfx.yaml | 153 +++++++++++++++++++++++++++++++---- 1 file changed, 138 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docfx.yaml b/.github/workflows/docfx.yaml index 9bc40ff..875a89b 100644 --- a/.github/workflows/docfx.yaml +++ b/.github/workflows/docfx.yaml @@ -21,6 +21,11 @@ on: required: false type: boolean default: true + overlay_canonical_docs_assets: + description: 'Before docfx build, overlay docfx_project/{public,versions.json,logo.svg,docfx.json} from origin/main onto the checked-out ref. Lets you backfill the canonical version-picker UI onto older tags whose original docfx_project predated it. Leave on for old-tag rebuilds; harmless no-op when running from main.' + required: false + type: boolean + default: true # Manual trigger for ad-hoc builds or dry-runs. # Leave 'version' blank to use the selected branch or tag name as the destination. workflow_dispatch: @@ -37,6 +42,10 @@ on: description: 'Also deploy to the site root (/) and versions/latest/ (uncheck when rebuilding older versions)' type: boolean default: true + overlay_canonical_docs_assets: + description: 'Before docfx build, overlay docfx_project/{public,versions.json,logo.svg,docfx.json} from origin/main onto the checked-out ref. Lets you backfill the canonical version-picker UI onto older tags whose original docfx_project predated it. Leave on for old-tag rebuilds; harmless no-op when running from main.' + type: boolean + default: true permissions: contents: read # Default to read-only; the build-and-deploy job overrides with write @@ -56,6 +65,67 @@ jobs: fetch-depth: 0 # Full history needed to enumerate all v* tags persist-credentials: false + # When backfilling docs for a tag that predates the canonical + # version-picker assets, the checked-out tag has no + # docfx_project/public/version-picker.js and its docfx.json + # has no picker-bootstrap