Skip to content

fix: advertise the operator documentation sitemap - #256

Merged
guanzhousongmicrosoft merged 1 commit into
documentdb:mainfrom
xgerman:geeichbe/advertise-operator-sitemap
Nov 15, 2026
Merged

guanzhousongmicrosoft merged 1 commit into
documentdb:mainfrom
xgerman:geeichbe/advertise-operator-sitemap

Conversation

@xgerman

@xgerman xgerman commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Companion to documentdb/documentdb-kubernetes-operator#515 (machine-readable discovery priority 2, building on documentdb/documentdb-kubernetes-operator#514).

  • Advertise https://documentdb.io/documentdb-kubernetes-operator/latest/sitemap.xml in the generated root robots.txt alongside the existing main-site sitemap.
  • Preserve custom crawler rules and existing sitemap declarations; repeated builds do not duplicate either declaration.
  • Keep independently published operator documentation separate from the main-site URL inventory; no network dependency is added to site builds.

The operator companion generates version-aware stable sitemaps. Its latest sitemap becomes populated when that change is included in a stable operator release; main pushes publish development docs only.

Verification

  • Focused sitemap-generation tests passed for fresh and existing robots.txt, including preservation of custom rules and rerun idempotence.
  • ESLint passed for the changed generator and tests; whitespace checks passed.

Add the independently published operator sitemap to robots.txt while preserving existing crawler rules and the root sitemap.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a75e58d3-aa68-49f9-8213-70a354bfcc1b
Signed-off-by: German <geeichbe@microsoft.com>
@guanzhousongmicrosoft
guanzhousongmicrosoft merged commit 9066444 into documentdb:main Nov 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants