Skip to content

Show "On this page" on API children: pages #4998

Open

Description

@reakaleek

API pages that come from a docset's children: list should have an On this page rail, like generated API pages and regular docs pages.

What is getting in your way

A children: page renders through MarkdownPageView, which defines no right rail. So none of its headings are listed, and a reader cannot jump to a section. This also applies to a child page that stands for Authentication. Since #4996, it renders one h2 per authentication method after its Markdown, and none of those headings appear in a rail. This was raised in review of that PR: #4996 (comment)

What would you like instead

MarkdownPageView renders _ApiToc in the rail with the headings of the page's Markdown. The authentication sections are part of that Markdown since #4996, so they would be listed too. The Markdown renderer returns HTML and titles but no headings for these pages (MarkdownRenderResult), so it also needs to return the headings it anchors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions