Repository navigation
Remove x-topics support from the API Explorer - #5111
Merged
Merged
Conversation
API guide pages now come only from children: pages. A spec's x-topics extension is ignored: no topic pages, no topic prose on the Authentication page, and no topic URLs in the version switcher. A children: page whose first heading is Authentication still stands for the Authentication page. Closes the migration in elastic/docs-eng-team#1144. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
reakaleek
approved these changes
Dec 3, 2026
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/5111/ Sample changed pages: |
akira28
enabled auto-merge (squash)
December 3, 2026 10:41
akira28
disabled auto-merge
December 3, 2026 11:54
This branch was successfully deployed
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.
Summary
API guide pages now come only from
children:pages. The API Explorer ignores thex-topicsOpenAPI extension, which was deprecated in elastic/docs-eng-team#820 and migrated in elastic/docs-eng-team#1144 (now closed).What a spec's
x-topicsno longer does:/topic/topic-<slug>. The old URLs redirect tochildren:pages in elastic/docs-infra./authentication, and no longer builds that page for a spec without security schemes. No published spec relies on this any more.isMirrorparameter that only existed for it.What stays:
The Authentication page, which now depends only on the spec's security schemes and on a
children:page whose first heading isAuthentication:Authenticationchild page/authenticationauthbadge links to/authenticationThis is the same as before this PR. Whether a page should come from Markdown or the spec, and not both, is elastic/docs-eng-team#1302.
Children whose first heading is
AuthenticationorRate limitingare pinned first and second.topicstays a reserved child slug, so no child page can take a redirected/topic/URL.Removed:
ApiTopicPage,TopicNavigationItem,TopicView,OpenApiExtensionReader.ParseXTopics,ApiUrlBuilder.TopicUrl/TopicMoniker,SimpleMarkdownNavigationItem.ReplacedTopicUrls,StructuralNavigationItem.ForAuthenticationTopicandApiStructuralPage.Intro.Who still has x-topics
I listed every spec in the published spec bucket (22 files). Only the Kibana
9.6,9.5and8.19specs still declarex-topics, for the Kibana spaces topic. Thespaces.mdchildren:page in the Kibana docset already covers every version, so their published pages don't change. The backports that remove the entry from those specs are elastic/kibana#309072, elastic/kibana#309076, elastic/kibana#309077 and elastic/kibana#309078.Testing
Elastic.ApiExplorer.Tests: 1731 passed, 1 skipped.TopicPageTestsnow coverschildren:pages, pinning and the Authentication page, plus a spec that still declaresx-topicsand gets no topic pages. The two version-switcher tests that matched a child with a topic page were removed.elastic/cloud, which haschildren:Authentication pages with and without security schemes): 0 errors, 0 warnings, same pages as production.docs/data/openapi/api-explorer.mddrops thex-topicssection and describes how guide pages and the Authentication page work now.🤖 Generated with Claude Code