Skip to content

docs: sidebar resize, same-page section toggle, How-to chapter placement - #63

Merged
andreclaudino merged 1 commit into
docs/documentationsfrom
docs/book-ux-fixes
Sep 15, 2026
Merged

andreclaudino merged 1 commit into
docs/documentationsfrom
docs/book-ux-fixes

Conversation

@andreclaudino

Copy link
Copy Markdown
Member

Follow-up to #61: the squash-merge landed before these fixes were pushed, so they were left out of docs/documentations. All three were verified live in headless Chromium against mdbook build output (zero warnings).

Fixes

  1. Sidebar resize restored — .sidebar { width: 300px } overrode mdBook's width: var(--sidebar-width) and silently disabled the drag handle (book.js resizes via --sidebar-target-width). Width follows the variable again; verified drag 300→384px with the content offset tracking exactly (margin = width + indicator, no overlap or gap).
  2. Collapse on click — the chevron toggle worked, but clicking the section link only navigated. Clicking a section link while already viewing that page now toggles its submenu in place (verified open→collapsed→open, no navigation); links to other pages navigate normally with single-open on load.
  3. SUMMARY — How to add an Algorithm promoted to a primary-level bullet (verified it renders as a direct OL.chapter child); file path and URL unchanged, no links break.

…k, promote How-to chapter

- Sidebar width follows --sidebar-width again (fixed 300px killed
  mdBook's variable-driven resize handle); content reflows via fluid main.
- Clicking a section link while already viewing that page toggles its
  submenu instead of reloading (chevron button behavior unchanged).
- SUMMARY: How to add an Algorithm is now a primary-level entry;
  file path and URL unchanged.
@andreclaudino
andreclaudino merged commit 059625f into docs/documentations Sep 15, 2026
1 check passed
@andreclaudino
andreclaudino deleted the docs/book-ux-fixes branch September 15, 2026 20:12
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