DBScan
March 4, 2025, 10:10am
1
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
.
vedoa
March 5, 2025, 4:17pm
2
Hi @DBScan ,
this HTML Basics – Quarto should be enough to get a self contained html.
format:
html:
embed-resources: true
DBScan
March 6, 2025, 8:30am
3
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
system
Closed
March 13, 2025, 9:01am
5
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.