Sitemap script + alert#100
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
dovholuknf
approved these changes
May 21, 2026
- Rewrite check-sitemap-drift.mjs: compare new build against cached baseline (not live prod), check redirect stubs for each removed path, exit 1 on unresolved removals so the publish is aborted - Update publish-unified-doc.sh: pass baseline path and build dir, remove || true so drift failures actually block the script - Update publish.yml: add actions/cache restore/save for baseline, drop the wrong notify-sitemap-drift job, add inline drift alert steps (if: failure()) that send to Mattermost doc-alerts when unresolved removals are found Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Expose has_drift as a job output and skip notify-mattermost when drift already sent its own alert. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Extract IGNORE_PREFIXES into sitemap-ignore.json (colocated with script, passed as optional 4th arg) so it's easy to find and edit - Add yarn check-drift / yarn unified:check-drift aliases so the gate can be run locally without memorizing the arg triple; publish script uses the alias instead of invoking node directly - Emit copy-paste redirect snippets for unresolved paths: grouped by product with the target repo/function named, fuzzy-guess the `to` by matching the last path segment against the new sitemap - Scan all redirect stubs (plugin-client-redirects index.html files), build a redirect graph, and detect: stale targets (final target not in sitemap → exit 1), loops (→ exit 1), chained >1 hop (warning), shadowed stubs where the path is also a real page (warning) - Archive input and output sitemap baselines as artifacts (90-day retention) for inspection and history via gh run download Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
dovholuknf
approved these changes
May 22, 2026
Member
dovholuknf
left a comment
There was a problem hiding this comment.
seems right. assuming it works locally should be gtg
Full pages rendered by Docusaurus contain __docusaurus in their HTML — only bare plugin-client-redirects stubs should be scanned for the redirect graph. Also add /docs/llms.txt to sitemap-ignore.json since it is injected into prod by publish-unified-doc.sh post-build and never appears in a local build's sitemap. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
sitemap.xmlagainst a cached baseline from the previous successful build; on first run (no cache), seeds the baseline from the live prod sitemapplugin-client-redirectswrote a redirect stub at that path — if no stub exists, the build failsopenzitiRedirects(), etc.) and a fuzzy guess at the destination when a matching page segment is found in the new sitemapsitemap-ignore.jsonalongside the script instead of being hardcodedyarn check-drift/yarn unified:check-driftaliases let you run the gate locally after a build without memorizing the argument tripleactions/cache; also archives input and output baselines as 90-day artifacts so any run's sitemap state can be retrieved withgh run download