29.8 Websites and books
With a bit of additional infrastructure, you can use Quarto to generate a complete website or book:
Put your
.qmd
files in a single directory.index.qmd
will become the home page.Add a YAML file named
_quarto.yml
that provides the navigation for the site. In this file, set the project type to eitherbook
orwebsite
, e.g.:
Read more at https://quarto.org/docs/websites about Quarto websites and https://quarto.org/docs/books about books.
Note: R4DS 2E is itself a quarto book. You can find the code to render it on your own here: https://github.com/hadley/r4ds/. The Quarto website itself was made with Quarto. You can find the code here: https://github.com/quarto-dev/quarto-web.