Repository navigation
Name the release branch on released API landing pages - #5018
Merged
Merged
Conversation
The 9.6 spec description says it is derived from the `main` branch, so the v9 API landing page shows `main` while v8 shows `8.19`. `OpenApiGenerator` now rewrites that sentence to name the branch the version index published. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/5018/ |
akira28
marked this pull request as ready for review
November 23, 2026 18:57
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ster The rewrite now checks the `main` moniker instead of the branch name, because `elastic/cloud` publishes `main` from `master`. A test runs the rewrite through version resolution, so it fails if the resolver stops applying it or passes the major instead of the branch. Co-Authored-By: Claude Opus 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.
Released API landing pages now say their documentation is derived from the release branch instead of
main. Elasticsearch v9 shows9.6, Kibana v9 shows9.6and Logstash v9 shows9.5. The v8 pages already name8.19.Affects: API reference
Prompt summary: The "This documentation is derived from the main branch" sentence on the current Elasticsearch, Kibana and Logstash API references should name the latest 9.x minor version, the way the v8 pages name
8.19. The unreleasedmainpages keep sayingmain.Why
The sentence comes from each spec's own
info.description, not from docs-builder. The Elasticsearch 9.6, Kibana 9.6 and Logstash 9.5 specs in the specs bucket still saymain, so the pages for the released major claim they show unreleased content.What
Released specs name the branch they were published from
When
OpenApiGeneratorloads a remote spec for a version other thanmain, it replaces "derived from the `main` branch" with the branch from the version index. The rewrite applies to every API product. The spec published under themainmoniker keeps its wording, even when a repository publishes it frommaster. Local spec files stay as they are. It happens at load time, so the landing page, its meta description and the catalog entry all show the same branch.Out of scope: the root cause sits in each upstream spec. elastic/elasticsearch-specification#7046 fixes the Elasticsearch 9.6 overlay. If upstream rewords the sentence, the rewrite stops matching and the page shows the spec's text unchanged.
Verify
Check on the preview
9.6.9.6.9.5.main.8.19.🤖 Generated with Claude Code