Skip to content

feat: show an "On this page" outline of headings on document pages - #6

Merged
moulibheemaneti merged 1 commit into
masterfrom
ccr-4105830a-pbie7d
Nov 13, 2026
Merged

moulibheemaneti merged 1 commit into
masterfrom
ccr-4105830a-pbie7d

Conversation

@moulibheemaneti

Copy link
Copy Markdown
Owner

Each document page lists its H2 and H3 headings as a nested tree of
links. On wide screens (1280px and up) it is a sticky column on the
right; on narrower ones it is a box above the text, collapsed behind a
toggle when JavaScript is on and a plain list when it is off. The
section being read is highlighted while scrolling. Pages with fewer
than two such headings get no outline.

Headings are parsed once with their level and id (Doc.outline); the
outline is left out of the search index.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01Ewn3bas2Hf3JkA2EU1ZdLR

Each document page lists its H2 and H3 headings as a nested tree of
links. On wide screens (1280px and up) it is a sticky column on the
right; on narrower ones it is a box above the text, collapsed behind a
toggle when JavaScript is on and a plain list when it is off. The
section being read is highlighted while scrolling. Pages with fewer
than two such headings get no outline.

Headings are parsed once with their level and id (Doc.outline); the
outline is left out of the search index.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ewn3bas2Hf3JkA2EU1ZdLR
@moulibheemaneti
moulibheemaneti merged commit f7e4f91 into master Nov 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants