5

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

1 Answer 1

5

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.

Sign up to request clarification or add additional context in comments.

3 Comments

Worked flawlessly, thank you!
This trick doesn't seem to work at the moment, any idea?
I solved it, I think updating quarto and switching to embed-resources helped. Also, I realized that the my private GutHub repo token was changing often and can't make a permanent link for html preview.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.