Skip to content

feat: add floating ToC and section anchors - #73

Merged
QEDK merged 2 commits into
mainfrom
feat/section-anchors-and-toc
Jul 31, 2026
Merged

feat: add floating ToC and section anchors#73
QEDK merged 2 commits into
mainfrom
feat/section-anchors-and-toc

Conversation

@QEDK

@QEDK QEDK commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator
  • adds a floating ToC
  • adds section anchors

@QEDK QEDK self-assigned this Jul 31, 2026
Copilot AI review requested due to automatic review settings July 31, 2026 18:24
@QEDK QEDK added the enhancement New feature or request label Jul 31, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds in-page navigation enhancements for MIP/MRC documents by introducing a floating “On this page” table of contents and making section headings linkable via permalinks/anchors.

Changes:

  • Add floating, fixed-position ToC UI with active-section tracking and anchor “flash” highlight behavior.
  • Convert section headings (h2–h4 with ids) into self-permalinks and add a secondary # marker link.
  • Add an explicit id="citation" to the “Citation” heading in MIP/MRC layouts so it participates in anchor navigation.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
_layouts/default.html Adds CSS/HTML/JS for heading permalinks and a floating ToC with scroll syncing.
_layouts/mip.html Adds id="citation" to the Citation heading for anchor linking/ToC inclusion.
_layouts/mrc.html Adds id="citation" to the Citation heading for anchor linking/ToC inclusion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread _layouts/default.html Outdated
Comment thread _layouts/default.html
@QEDK
QEDK merged commit 8ecd869 into main Jul 31, 2026
4 checks passed
@QEDK
QEDK deleted the feat/section-anchors-and-toc branch July 31, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants