Add Toc, Search box, Dark mode scrollbar#68
Conversation
Add a floating TOC sidebar that automatically updates based on scroll position. Includes responsive design and dark mode support. The TOC is generated from headings (h2-h4) and includes smooth scrolling to anchors.
Add !important to dark mode TOC styles and update selectors for better specificity
Implement a search modal that moves the existing search component into an overlay. Includes styling for the modal, trigger button, and dark mode support. Adds keyboard shortcut (Cmd/Ctrl+K) to toggle the modal.
Update search input and label styles for better UX, add dark mode support, and adjust search button placement in header
Add !important to all dark mode search modal styles and adjust colors for better visual consistency. Make search results background transparent.
🎉 PR: Add VitePress-style Search Modal & Fix Dark Mode Bug✨ Features
🐛 Bug Fixes
🔧 Technical Changes
🎨 Design Highlights
🌐 Browser Compatibility
Ready to merge! 🚀 |
bandicam.2026-02-16.16-56-48-428.mp4 |
|
🎨 Add dark mode scrollbar styling
Preview: Scrollbars now match the dark mode theme with subtle gray tones (#404040 thumb, #1a1a1a track) |
|
Commit #6 has been merged and deployed. Thank you for your work. Could you please split the rest of the work into two PRs:
Then, for the TOC sidebar, please use jekyll-toc to generate the TOC during rendering and not using JavaScript. For both accessibility and performance reasons, I'd like to keep runtime JS to a minimum when there's no other way of doing it. I have not looked at the search box code yet. It looks reasonable, but I'll have to spend an hour or two to understand exactly how it works. |
Ok. I'll reply after handling it later to minimize the review time as much as possible and explain in detail how the book works |






Add Floating Table of Contents (TOC) for Documentation Pages 📑
Summary ✨
This PR adds a VitePress-style floating table of contents to automatically generate navigation links from page headings (H2-H4). The TOC appears on the right side of content pages and supports scroll highlighting. 🎯
Features 🚀
Changes 📝
_config.yml⚙️heading_anchors: true) for native anchor link supportassets/js/toc.js🆕_sass/custom/custom.scss🎨_includes/head_custom.html🔗toc.jsTechnical Details 🔧
IntersectionObserverfor performant scroll trackingTesting ✅