fix: publish complete versioned docs across languages - #103
Merged
Merged
Conversation
Germey
approved these changes
Oct 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and resulting behavior
Docs could report successful synchronization while missing independent guides, preserving stale translations and skipping non-Chinese MCP. Duplicate events could race to push or replay old source, and generated links/MDX could be invalid.
Reuse the existing
GET /api/v1/documents/?lang=...&limit=...&offset=...list and its additivecontent_sourcemetadata from https://github.com/AceDataCloud/PlatformBackend/pull/2072. No new endpoint or export mode is required. The consumer supplies the normal primary-site Origin, follows pagination, checks source/content hashes and exact-language status, and rejects missing metadata or inconsistent pages. Independent Text guides and MCP are consumed directly instead of inferred from API siblings.Reconcile all 18 existing locale directories, honor public visibility, and publish generated navigation/API indexes atomically. Pending translations stay explicitly incomplete, even when an existing page is retained. Resolve source-relative and platform-relative links, preserve code/math, and validate every page's MDX and local links before pushing. Editorial locale paths and outdated entry points are repaired; fixed credit-conversion claims are replaced with the package-derived rule.
The workflow has one serialized writer, verifies current-main source/event ancestry, reconciles hourly, and retains per-page completeness reports.
Validation
Deployment order
Deploy Backend PR #2072, then merge this consumer. Missing metadata aborts until the producer is updated. No production records were modified and no generated backfill was hand-edited; the normal publication workflow generates pages from the existing document list.