quarto create-project <site-name> --type websiteCrée un nouveau repo sur Github.
Clone le.
Ouvre le terminal dans le répertoire du projet (
Alt + Maj + Mdans Rstudio) et crée un projet de typewebsite.
Ou :
quarto create project website /Dans le fichier
_quarto.yml, choisir :output-dir: docs.Ajouter à
.gitignoreles fichiers et dossiers qui ne doivent pas être publiés sur le site.
quarto renderCheck all files in Git pane with this shortcut :
Ctrl+ AthenSpaceCommit all pending changes :
Ctrl + Alt + MPush
Go to Github > Settings > Pages and “configure your GitHub repository to publish from the docs directory of your main branch” (quoting quarto documentation).
You’re site will be deployed
Preview image
Pour qu’un graphique en particulier serve de preview image :
```{r}
#| classes: preview-image
plot(mtcars)
```Code highlighting
Pour que du code bash ressorte correctement, choisir : engine: knitr. Voir cette issue.
Et ne surtout pas oublier l’option `eval: false` !
Citation
@online{boulakia2023,
author = {Boulakia, Théo},
title = {Site Web},
date = {2023-06-25},
url = {https://tblk.github.io/data-tips/site-web/},
langid = {fr}
}