Repository navigation
Leave the API Servers pages out of the sitemap and the index - #5033
Merged
Merged
Conversation
The Servers page exists only so old Bump.sh links land. PR #4979 listed it in `sitemap-api.xml` after a review comment, which put 9 `/servers` URLs in the live sitemap. `StructuralNavigationItem` now reports `InSitemap` and `ExcludeFromIndexing` as false and true for Servers. The page renders `noindex`, so the sitemap and the robots meta agree. The Authentication page stays listed and indexed, even when the sidebar hides it. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
akira28
approved these changes
Nov 24, 2026
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/5033/ Sample changed pages: |
…by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…review by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…by @infra-vault-gh-plugin-prod) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.
The API
serverspages no longer appear insitemap-api.xml, and they rendernoindex. The Authentication page stays listed and indexed.Affects: API reference
Prompt summary: The author expects the
/docs/api/**/serverspages to stay out of the sitemap, because an earlier PR was meant to exclude them, but they still show up. The fix keeps/authenticationpages indexed, since those are real pages.Why
The live
sitemap-api.xmlonwww.elastic.coand on edge lists 9/serversURLs, for example/docs/api/cloud-billing/servers. The Servers page exists only so old Bump.sh links land. #4979 first left hidden API pages out of the sitemap. A review comment pointed out that the page is hidden but still indexable, and the fix for it listed every API page whenever its tree is listed.What
Servers leaves the sitemap
StructuralNavigationItemnow reportsInSitemapas false for the Servers page. The baseInSitemapmember isvirtualagain, so every other API page keeps its current behaviour. The Authentication page is listed even when the sidebar hides it.Servers renders
noindexApiPageTypes.Robotstakes the page's ownExcludeFromIndexing, which is true for Servers. A page that is not in the sitemap now saysnoindextoo, so the sitemap and the robots meta agree. A build that disallows indexing still wins and rendersnoindex, nofollow. The landing pages of hidden version trees stayindex, follow.Tests and docs
The sitemap test in
AssemblerOpenApiBuildStepIntegrationTestsnow expects bothserversURLs to be absent while the pages still render. A new generator test checks the rendered robots meta of Servers, an operation page and the landing pages. A table test pins that a hidden Authentication page stays listed and indexed. The sitemap section ofapi-explorer.mddescribes the new rule.Verify
After the next production deploy, the live sitemap should hold no
serversURL: