Quarto Book as single HTML file

Is it possible to render a Quarto book as a single HTML file?
My _quarto.yml looks like this:

project:
  type: book
book:
  title: "Tips & Tricks"
  author: "Me"
  date: "2025-03-04"
  chapters:
    - index.qmd
    - a.qmd
    - b.qmd
    - c.qmd
    - d.qmd
format:
  html:
    self-contained: true
    code-annotations: hover
    theme:
      - cosmo
      - brand
editor: visual

Unfortunately all my HTML files are split by chapter and place under _books.
I'm running Quarto 1.6.40 and render my book with quarto render.

Hi @DBScan ,

this HTML Basics – Quarto should be enough to get a self contained html.

format:
  html:
    embed-resources: true

Hi @vedoa, unfortunately doesn't work.

If you want to display your book as a single chapter, you must then render it in one chapter. So use index.qmd as your chapter and include your content as different sections in index.qmd.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.