Skip to content

Remove x-topics support from the API Explorer - #5111

Merged
akira28 merged 1 commit into
mainfrom
feature/remove-x-topics
Dec 3, 2026
Merged

akira28 merged 1 commit into
mainfrom
feature/remove-x-topics

Conversation

@akira28

@akira28 akira28 commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

API guide pages now come only from children: pages. The API Explorer ignores the x-topics OpenAPI 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-topics no longer does:

  • Topic pages: none are built at /topic/topic-<slug>. The old URLs redirect to children: pages in elastic/docs-infra.
  • Authentication: an entry titled Authentication no longer adds its text above the scheme sections on /authentication, and no longer builds that page for a spec without security schemes. No published spec relies on this any more.
  • Version switcher: a child page no longer answers to the topic URLs it replaced in other versions, since no version builds topic pages.
  • Deprecation hint: the hint from Hint when an API builds a page from a deprecated x-topics entry #5090 is gone, along with the isMirror parameter 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 is Authentication:

    Spec has security schemes Authentication child page Sidebar lists /authentication auth badge links to Example
    Yes No The generated page Built and listed /authentication Elasticsearch, Kibana
    Yes Yes The child page, with the spec's scheme sections below its Markdown Built, hidden, kept for old links The child page Cloud
    No Yes The child page, nothing added Not built (edge redirect) The child page Cloud Billing
    No No Nothing Not built No link –

    This 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 Authentication or Rate limiting are pinned first and second.

  • topic stays 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.ForAuthenticationTopic and ApiStructuralPage.Intro.

Who still has x-topics

I listed every spec in the published spec bucket (22 files). Only the Kibana 9.6, 9.5 and 8.19 specs still declare x-topics, for the Kibana spaces topic. The spaces.md children: 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. TopicPageTests now covers children: pages, pinning and the Authentication page, plus a spec that still declares x-topics and gets no topic pages. The two version-switcher tests that matched a child with a topic page were removed.
  • Strict local build of the Cloud docset (elastic/cloud, which has children: Authentication pages with and without security schemes): 0 errors, 0 warnings, same pages as production.
  • docs/data/openapi/api-explorer.md drops the x-topics section and describes how guide pages and the Authentication page work now.

🤖 Generated with Claude Code

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>
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Docs preview (local build)

Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/5111/

Sample changed pages:

@akira28
akira28 enabled auto-merge (squash) December 3, 2026 10:41
@akira28
akira28 disabled auto-merge December 3, 2026 11:54
@akira28
akira28 merged commit 11f1404 into main Dec 3, 2026
54 checks passed
@akira28
akira28 deleted the feature/remove-x-topics branch December 3, 2026 11:54
@akira28 akira28 added chore and removed breaking labels Dec 3, 2026

This branch was successfully deployed

2 active deployments
docs-preview — 4a327551 Deployed Dec 3, 2026 by github-actions[bot]
assembler-preview — 4a327551 Deployed Dec 3, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants