Installation
Add the extension to your Quarto project:
quarto add lsbjordao/quarto-book-focus-modeThen enable the filter in _quarto.yml:
format:
html:
theme: [flatly, darkly]
filters:
- focus-modeRender as usual:
quarto renderRequirements
- Quarto ≥ 1.4
- HTML book output (
project: type: book)
The extension automatically detects whether the page uses the Quarto Book sidebar layout. The floating button hides itself on pages that do not.