From 570d3474f9e2270220442a3df29fd620204a271c Mon Sep 17 00:00:00 2001 From: Chris Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com> Date: Wed, 3 Jun 2026 16:18:53 -0400 Subject: [PATCH 1/4] D8 canonical: sync docfx.yaml (inline root-redirect HTML) --- .github/workflows/docfx.yaml | 323 +++++++++++++++++++++++++++++++---- 1 file changed, 286 insertions(+), 37 deletions(-) diff --git a/.github/workflows/docfx.yaml b/.github/workflows/docfx.yaml index b7ecab0..9018545 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 ", + '', + '
', + 'Redirecting to the latest documentation…
', + ' ', + '', + '