Repository navigation
API Explorer: derive canonical and robots from the API page type - #4976
Merged
Merged
Conversation
One function maps each rendered API tree to a page type. The numbered copy of the newest major names the versionless page as canonical. The unreleased tree renders noindex. A build that disallows indexing still wins on every page. Markdown pages keep their head. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…w by @infra-vault-gh-plugin-prod) The fixture keeps the canonical base in the non-indexable case, so the v9 copy is checked for the staging and edge combination. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…per review by @infra-vault-gh-plugin-prod) The fixture build reads the exported .md of the v9 and versionless pages and checks that both name the versionless page. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/4976/ |
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.
Why
_Head.cshtmlprints one global robots value. The numbered copy of the newest major and the unreleased/nexttree both claim to be the indexable page.Closes elastic/docs-eng-team#1217
What
noindex. A build that disallows indexing still rendersnoindex, nofollowon every page.<head>as before.Notes
prodsetsallow_indexing: true. On staging and edge, every API page keepsnoindex, nofollow, so the canonical change shows there and the robots values show on prod. Fixture-build tests cover both.🤖 Generated with Claude Code