Skip to content

html: page navigation at the column's bottom, footer in view, numbered TOC - #1450

Open
icarusz wants to merge 1 commit into
mainfrom
andrew/book-short-pages-toc-numbers
Open

icarusz wants to merge 1 commit into
mainfrom
andrew/book-short-pages-toc-numbers

Conversation

@icarusz

@icarusz icarusz commented Dec 1, 2026

Copy link
Copy Markdown
Member

Three differences from Quarto 1 that show on book pages and apply to every HTML page.

  • Page navigation. The prev/next strip follows <main> as its own child of #quarto-content, as in Quarto 1, so the page grid puts it in the row under the content. On a page shorter than the window it sits at the bottom of the text column and no longer directly under the text.
  • Footer. quarto-nav.js subtracts the footer's height from the content's min-height on every page, so a short page keeps its footer in the window with no scrollbar (bd-f19dbajh).
  • Table of contents. An entry repeats its section's number. The first entry stays active on a page that cannot scroll.

Tested against Quarto 1.9.38 in a browser at 1400 by 900 on three book fixtures; with no footer the strip lands at Quarto 1's exact height. Tests, clippy and lint pass for the crates touched.

Not changed: q2 preview still places the strip inside main. This PR and #1449 both edit the CSS baseline hash, so the second to merge needs that line regenerated.

🤖 Generated with Claude Code

…d TOC

Three differences from Quarto 1, found on book pages and true of every
HTML page.

- The prev/next strip follows main as its own child of #quarto-content,
  so the page grid puts it in the row under the content. On a page
  shorter than the window it sits at the bottom of the text column.
- quarto-nav.js subtracts the footer's height from the content's
  min-height on every page, as Quarto 1 does, so a short page keeps its
  footer in the window (bd-f19dbajh).
- A TOC entry repeats its section's number. The first entry stays
  active on a page that cannot scroll.

Compared with Quarto 1.9.38 in a browser at 1400 by 900.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@posit-snyk-bot

posit-snyk-bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

This branch has not been deployed

No deployments
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