Repository navigation
Remove the table of contents from API type pages - #5037
Merged
Merged
Conversation
Type pages such as `QueryContainer` listed every property in the right rail, which added noise without helping navigation. 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/5037/ Sample changed pages: |
…eview by Libra) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…per review by Libra) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
|
||
| var html = await fixture.RenderAsync(item); | ||
|
|
||
| html.Should().Contain("Copy page"); |
There was a problem hiding this comment.
Severity: P3 (Low)
This assertion fails with FEATURE_NAVIGATION_PREVIEW=true even when the schema page correctly has no TOC. The preview layout renders “View as Markdown” instead of the legacy “Copy page” button. Assert the appropriate page action for each layout, or explicitly isolate this test to the legacy layout.
Generated by Libra. React with 👍 or 👎 to give feedback on this comment.
akira28
approved these changes
Nov 24, 2026
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.
API type pages, such as
QueryContainer, no longer show the "On this page" table of contents in the right rail.Affects: API Explorer
Prompt summary: Remove the table of contents from API type pages like
/docs/api/elasticsearch/types/_types-query_dsl-querycontainer.Why
A type page lists every property in the right rail. On large types such as
QueryContainer, that list is long and repeats the property list already shown in the page body.What
Type page rail
The type page no longer puts a table of contents in the right rail. The rail column stays in place, so the content keeps the same width and left edge as operation pages. Copy page still shows.
Table of contents builder
SchemaViewModelno longer builds a list of headings, so the page exposes none. Operation, landing, topic and structural pages keep theirs.Guidance and test
src/Elastic.ApiExplorer/AGENTS.mdno longer tells authors to add "On this page" to schema pages.SchemaPage_RendersNoOnThisPageListrenders theQuerytype page through the layout and asserts it has no "On this page" list and still shows Copy page.Verify
dotnet test --project tests/Elastic.ApiExplorer.TestsCheck on the preview
🤖 Generated with Claude Code