Skip to content

Restyle the docs sidebar and make it work with hotkeys - #3471

Merged
nojaf merged 1 commit into
fsprojects:mainfrom
nojaf:hotkey-docs
Sep 13, 2026
Merged

nojaf merged 1 commit into
fsprojects:mainfrom
nojaf:hotkey-docs

Conversation

@nojaf

@nojaf nojaf commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

fsdocs 23 adds keyboard navigation: j and k walk the links of the main menu, h and l move between the menu, the content and the page menu. Our menu folds its sections with visibility: hidden, which a browser will not focus, so the walk stalled at the first folded section. A folded section now hides by height alone and unfolds when a link inside it receives the focus, from the hotkeys or from Tab, which before had no way to open a section at all. The hotkey outline is white inside the sidebar, where the primary colour it uses by default is invisible.

While there, give the sidebar the polish it lacked. Sections get a rail with their items inset under the header, and the current page is a rounded highlight with a marker on that rail. Hover and highlight are translucent white, so they hold up on both the light and the dark panel colour. The fold animates, the chevron is sized from the stylesheet rather than the template, and the type sits on the default scale.

docs-setup.js was left behind when the Bootstrap theme went; nothing has loaded it since and everything it looked for is gone from the page.

Bump fsdocs-tool to 23.0.0-alpha.4 and fantomas to 8.0.0-beta-003.

fsdocs 23 adds keyboard navigation: j and k walk the links of the main
menu, h and l move between the menu, the content and the page menu. Our
menu folds its sections with visibility: hidden, which a browser will
not focus, so the walk stalled at the first folded section. A folded
section now hides by height alone and unfolds when a link inside it
receives the focus, from the hotkeys or from Tab, which before had no
way to open a section at all. The hotkey outline is white inside the
sidebar, where the primary colour it uses by default is invisible.

While there, give the sidebar the polish it lacked. Sections get a rail
with their items inset under the header, and the current page is a
rounded highlight with a marker on that rail. Hover and highlight are
translucent white, so they hold up on both the light and the dark panel
colour. The fold animates, the chevron is sized from the stylesheet
rather than the template, and the type sits on the default scale.

docs-setup.js was left behind when the Bootstrap theme went; nothing
has loaded it since and everything it looked for is gone from the page.

Bump fsdocs-tool to 23.0.0-alpha.4 and fantomas to 8.0.0-beta-003.
@nojaf
nojaf merged commit 52de1b2 into fsprojects:main Sep 13, 2026
13 checks passed
@nojaf
nojaf deleted the hotkey-docs branch September 13, 2026 18:14
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