rstudio / bookdown

Authoring Books and Technical Documents with R Markdown
https://pkgs.rstudio.com/bookdown/
GNU General Public License v3.0
3.78k stars 1.27k forks source link

[FR] bs4_book: make table of contents on the right appear conditionally #1177

Open maelle opened 3 years ago

maelle commented 3 years ago

See e.g. https://devguide.ropensci.org/index.html: on that page, I'd like to not have the "On this page" in the top right corner as there's nothing below it.

Similar pkgdown PR https://github.com/r-lib/pkgdown/pull/1711

maelle commented 3 years ago

The TOC should probably also omit the H1 as that's the chapter title :thinking: