cours/quarto command line.md
Oscar Plaisant 602a41e7f8 update
2024-12-25 22:30:24 +01:00

26 lines
1006 B
Markdown

up:: [[quarto blog]]
#s/informatique #s/blog
> [!info]- creating a blog
> - **Create :** `quarto create-project myblog --type website:blog`
> - le blog sera dans le dossier `myblog`
> - **Preview** : `quarto preview myblog`
> - **Update publication** : `quarto publish quarto-pub`
>
> - **Drafts** : Just add `draft: true` in the yaml. The post will only be published once that option is removed.
> - **freezing** : You can freeze a post by adding `freeze: true`
> - The post won't be refreshed when rendering
> - That is usefull to make the post future-proof, and to **speed up rendering**
> [!info]- rendering
> `quarto render file.qmd --to html`
> `quarto render file.qmd --to docx`
>
> You can specify the output format in the yaml frontmatter, with the option `format`
> See the yaml options for more details
> - if multiple output formats are specified, then multiple files will be created
> [!info]- preview
> `quarto preview file.qmd`
> - opens the live preview browser window