Skip to content

Comments

Smooth navigation#709

Merged
bmunkholm merged 5 commits intomainfrom
bm/toc-dont-scroll
Feb 20, 2026
Merged

Smooth navigation#709
bmunkholm merged 5 commits intomainfrom
bm/toc-dont-scroll

Conversation

@bmunkholm
Copy link
Contributor

@bmunkholm bmunkholm commented Feb 20, 2026

Summary of the changes / Why this is an improvement

  • The TOC would always reset to the top of the TOC when clicking any links in the TOC. This could cause huge jumps and the TOC would navigate away from the selection you had just made. This results in confusion and the need to scroll back in the TOC menu to the item you had selected if you wanted to navigate deeper into a section.
    All in all causing a bad user experience far from todays modern doc systems.
    This is due to the design of Sphinx Core and there are no plans to change that. Every major Sphinz theme have tried to implement workarounds, except for Furo.
    But with the use of Swup it's been possible to completely get rid of any flicking experience.

  • Also added animation of the icon transition (as this is now possible because we don't reload pages)

Preview

https://crate-docs-theme--709.org.readthedocs.build/en/709/tests/section1/subpage2.html

It's been tested with all projects projects via devtools/test-multi-project.sh

Better yet, try navigating Integration pages (or other pages in the "guide") https://cratedb-guide--555.org.readthedocs.build/integrate/metabase/index.html. And compare to existing docs.

Checklist

@coderabbitai

This comment was marked as spam.

Copy link
Member

@amotl amotl left a comment

Choose a reason for hiding this comment

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

Thanks. Let's try? Please squash a few commits, so we can more easily swap this out if it causes unforeseen problems.

@bmunkholm bmunkholm merged commit ac54595 into main Feb 20, 2026
9 checks passed
@bmunkholm bmunkholm deleted the bm/toc-dont-scroll branch February 20, 2026 14:37
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.

2 participants