diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index 6df0fd6f..4491fc34 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -59,20 +59,18 @@ jobs: any::gridExtra local::. needs: website + - name: Create public directory + run: | + mkdir public - name: Build site run: | - pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE, dest_dir = "public") | + pkgdown::build_site(override = list(destination = "public")) | file.copy(from = "./public/articles/logo.png",to = "./public/reference/logo.png") shell: Rscript {0} - name: Set up Quarto uses: quarto-dev/quarto-actions/setup@v2 - name: Render Quarto Project - env: - QUARTO_PRINT_STACK: true - run: | - quarto render tutorials/changes_slides_deck.qmd --output-dir ./public/tutorials | - quarto render tutorials/basic_slides_deck.qmd --output-dir ./public/tutorials - shell: bash + uses: quarto-dev/quarto-actions/render@v2 - name: Upload artifact uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa with: diff --git a/.gitignore b/.gitignore index 5ebac5f2..210360f9 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ docs vignettes/*.html vignettes/*.R + +/.quarto/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2df0f8d3..4322313c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -103,8 +103,8 @@ pages: - Rscript -e 'devtools::install(quick = TRUE, upgrade = "never")' - Rscript -e 'pkgdown::build_site(override = list(destination = "public"))' - Rscript -e 'file.copy(from = "./public/articles/logo.png", to = "./public/reference/logo.png")' - - quarto render tutorials/changes_slides_deck.qmd --output-dir $PAGES_OUTDIR/tutorials - - quarto render tutorials/basic_slides_deck.qmd --output-dir $PAGES_OUTDIR/tutorials + - quarto render + artifacts: paths: - $PAGES_OUTDIR diff --git a/_quarto.yml b/_quarto.yml new file mode 100644 index 00000000..5de3e287 --- /dev/null +++ b/_quarto.yml @@ -0,0 +1,8 @@ +project: + output-dir: public + render: + - tutorials/basic_slides_deck.qmd + - tutorials/changes_slides_deck.qmd + +toc: false + diff --git a/tutorials/_metadata.yml b/tutorials/_metadata.yml new file mode 100644 index 00000000..12a33cb5 --- /dev/null +++ b/tutorials/_metadata.yml @@ -0,0 +1,5 @@ +format: + revealjs: + menu: false + progress: false +search: false \ No newline at end of file