Brian Lookabaugh
Brian Lookabaugh

Reputation: 187

HTML Preview Not Working With Quarto-Generated HTML File

I am trying to update my portfolio website with new Quarto-generated HTML files rather than my older RMarkdown-generated HTML files. I have rendered these updated files and they look great!

enter image description here

However, when I have uploaded this HTML to my GitHub Pages website, using htmlpreview, I get a very different picture...

enter image description here

Keep in mind that htmlpreview works perfectly well for my RMarkdown-renderd documents:

enter image description here

Here is my YAML for the Quarto document if it is of help:

author: "Brian Lookabaugh"
toc: true
number-sections: true
format:
  html:
    code-background: true

Upvotes: 5

Views: 2554

Answers (1)

Shafee
Shafee

Reputation: 20097

I think using self-contained: true embed-resources: true would solve your case, since you would need a standalone HTML file.

---
author: "Brian Lookabaugh"
toc: true
number-sections: true
format:
  html:
    embed-resources: true
    code-background: true
---

For reference, see this page from Quarto Docs.

Upvotes: 5

Related Questions