Skip to content

fix: keep the sidebars in place on sites without a navbar style - #771

Merged
rich-iannone merged 5 commits into
mainfrom
fix/sticky-sidebars-without-navbar-style
Nov 27, 2026
Merged

rich-iannone merged 5 commits into
mainfrom
fix/sticky-sidebars-without-navbar-style

Conversation

@rich-iannone

Copy link
Copy Markdown
Member

This PR keeps the "On this page" sidebar in place below the navbar while a page scrolls, on every site. Quarto expects the navbar to slide away when the reader scrolls down, so it moves the sidebars to the top of the window. Great Docs keeps the navbar visible on desktop, so the sidebar ended up partly hidden behind it, and it rose further once the footer came into view.

Great Docs already corrected both problems, but the code lived in navbar-style.js, which only loads when navbar_style is set, so only sites with a gradient navbar got it. That code now lives in a new sticky-sidebars.js that every site loads, and navbar-style.js keeps only the gradient.

@github-actions

Copy link
Copy Markdown

📚 Preview this PR's docs locally

Fetch the just-built site and open it in your browser:

# this exact build
great-docs preview --run 46064216791

# or always the latest build for this PR
great-docs preview --pr 771
Auth & tips
  • Requires great-docs: pip install great-docs (or run via pipx/uvx).
  • Auth: run gh auth login then add --use-gh, or set GITHUB_TOKEN (needs Actions: read).
  • Jump to a page: add --path reference/index.html.
  • Latest vs exact: --pr <n> grabs the newest build; --run <id> pins this one.
  • Re-download: --refresh ignores the local cache.

@rich-iannone
rich-iannone merged commit 0ef52cd into main Nov 27, 2026
7 checks passed
@rich-iannone
rich-iannone deleted the fix/sticky-sidebars-without-navbar-style branch November 27, 2026 20:52
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