tldr/pages/common/quarto.md

25 lines
755 B
Markdown
Raw Normal View History

2022-07-28 00:38:16 +01:00
# quarto
> An open-source scientific and technical publishing system built on Pandoc.
> More information: <https://quarto.org/>.
2022-11-09 12:12:10 +00:00
- Create a new project:
2022-07-28 00:38:16 +01:00
2022-11-09 12:12:10 +00:00
`quarto create-project {{path/to/destination_directory}} --type {{book|default|website}}`
2022-07-28 00:38:16 +01:00
2022-11-09 12:12:10 +00:00
- Create a new blog website:
2022-07-28 00:38:16 +01:00
2022-11-09 12:12:10 +00:00
`quarto create-project {{path/to/destination_directory}} --type {{website}} --template {{blog}}`
2022-07-28 00:38:16 +01:00
2022-11-09 12:12:10 +00:00
- Render input file(s) to different formats:
2022-07-28 00:38:16 +01:00
2022-11-09 12:12:10 +00:00
`quarto render {{path/to/file.{{qmd|rmd|ipynb}}}} --to {{html|pdf|docx}}`
2022-07-28 00:38:16 +01:00
2022-11-09 12:12:10 +00:00
- Render and preview a document or a website:
2022-07-28 00:38:16 +01:00
2022-11-09 12:12:10 +00:00
`quarto preview {{path/to/destination_directory|path/to/file}}`
2022-07-28 00:38:16 +01:00
2022-11-09 12:12:10 +00:00
- Publish a document or project to Quarto Pub, Github Pages, RStudio Connect or Netlify:
2022-07-28 00:38:16 +01:00
2022-11-09 12:12:10 +00:00
`quarto publish {{quarto-pub|gh-pages|connect|netlify}}`