Skip to content

Conversation

@tmarnet
Copy link

@tmarnet tmarnet commented Dec 15, 2025

The purpose of this PR is to display sub-sections inside the "On this page" navigation of the docs, e.g.:

Desktop Mobile
Screenshot 2025-12-14 at 22 59 39 Screenshot 2025-12-14 at 23 05 31

This is motivated by the fact that some of the sections (such as the remote functions "form" above) can get really big and hard to navigate (because it requires lots of scrolling and that you know what you are looking for).

On large screens the sub-sections are only displayed if the parent section is active. On small screens, when togging the menu, they are always displayed. These are the behaviours that made the most sense to me, but do let me know if you feel like we should do it differently.

@vercel
Copy link

vercel bot commented Dec 15, 2025

@tmarnet is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

@tmarnet tmarnet force-pushed the on-this-page-subsections branch 2 times, most recently from 79ba391 to 9027fae Compare December 15, 2025 04:17
@tmarnet tmarnet force-pushed the on-this-page-subsections branch from 9027fae to c419c88 Compare December 15, 2025 13:36
@tmarnet tmarnet changed the title feat: on this page sub-sections feat: "On this page" navigation sub-sections Dec 16, 2025
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.

1 participant