Repository navigation
docs: publish stable documentation by minor version - #517
WentingWu666666 wants to merge 1 commit into
Conversation
Keep full release versions in installation commands and preserve existing patch snapshots. Guard minor updates and latest against out-of-order releases, isolate prereleases, and document an approval-gated migration. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: bb97eb45-118e-4327-8add-3ec0527b9089 Signed-off-by: Wenting Wu <wentingwu@microsoft.com>
|
🤖 Auto-triaged by documentdb-triage-tool. Applied: Reasoningcomponent from path globs (ci, docs); effort from diff stats (492+76 LOC, 6 files) If a label is wrong, ping |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block approval of the minor-version documentation publishing changes.
No open issues 🎉
What changed in this PR
This PR changes stable documentation publishing from patch-specific snapshots to shared major.minor paths, while retaining full release versions in installation commands and CRD URLs.
Changes:
- Adds a deployment helper that records release provenance, prevents older patches from overwriting newer docs, and keeps
latestfrom moving backward. - Integrates the helper into documentation workflows and adds deployment-policy and local mike integration tests.
- Documents the publishing policy and a separately approved migration plan; existing patch snapshots remain unchanged.
| File | Description |
|---|---|
mkdocs.yml |
Updates comments to describe minor-version publishing. |
docs/developer-guides/documentation-publishing.md |
Documents publishing rules and the proposed migration. |
.github/workflows/test-docs.yml |
Triggers helper tests when deployment scripts change. |
.github/workflows/deploy_docs.yml |
Uses the helper for version stamping and release publishing. |
.github/scripts/deploy_docs.py |
Implements version validation, ordering guards, provenance, and publishing. |
.github/scripts/deploy_docs_test.py |
Tests deployment policy, full-version stamping, aliases, and legacy snapshot preservation. |
Review effort: Balanced
Summary
Publish stable documentation by
major.minor: release1.1.2publishes to/1.1/and appears as1.1in the version selector. Installation commands and CRD URLs retain the full release version, with the existing chart/tag match check preserved.Current published state (verified 2026-11-23)
The current stable operator release is 1.2.1; main’s Helm chart version is also
1.2.1. Documentation currently uses full patch versions:/1.2.1/appears as1.2.1in the selector and owns thelatestalias. Existing entries include1.2.0,1.1.1,1.1.0,1.0.0,1.0-rc1,0.3.0,0.2.0, and the separatedeventry. There are currently no stablemajor.minorentries.For a concrete before/after example, a future stable 1.2.2 release containing this workflow would publish to
/1.2/, appear as 1.2 in the selector, and advancelatestfrom1.2.1to1.2. Its installation commands and CRD URLs would still use 1.2.2. A later1.2.3would update that same/1.2/entry. These future versions are examples, not already published releases.Merging alone publishes main to
/dev/; it does not republish1.2.1, create/1.2/, or remove existing patch-version entries. The old/1.2.1/and other published snapshot URLs remain intact; backfilling minor entries and consolidating the selector require the separately approved migration below. Rerunning the historical1.2.1deployment still uses its old workflow, so it is not a way to apply the new publishing policy.Automatic deployment behavior
releaseproperty inversions.json.latestbackward. Compare versions numerically, including existing patch snapshots in ordering decisions./dev/and prereleases at their full-tag paths. Prereleases cannot update a stable minor,latest, or the root redirect. Stable tags must bemajor.minor.patch; prerelease tags must bemajor.minor.patch-prerelease.Existing URLs and proposed one-time migration
No existing published snapshot is migrated or deleted by this PR. Existing patch directories and their selector entries remain available.
docs/developer-guides/documentation-publishing.mdproposes a separate, approval-gated migration: inventory and back upgh-pages; seed missing minor paths from each minor's highest stable patch; alignlatest; then optionally remove legacy patch entries only fromversions.json, preserving every old patch directory byte-for-byte. Preview and verify old deep links before publishing the migration.Merging this PR does not backfill minor versions. Historical tags retain their original workflows; maintenance branches must receive these publishing changes before tagging future releases.
Validation
actionlintpassed for both documentation workflows.git diff --checkpassed.Created in a separate worktree from
upstream/main; the supported-releases worktree and #516 are untouched. No production documentation deployment or one-time migration was performed.