Skip to content

Commit 1f30d14

Browse files
committed
will this work on GitLab?
1 parent 16786cb commit 1f30d14

File tree

5 files changed

+22
-12
lines changed

5 files changed

+22
-12
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,18 @@ jobs:
5959
any::gridExtra
6060
local::.
6161
needs: website
62+
- name: Create public directory
63+
run: |
64+
mkdir public
6265
- name: Build site
6366
run: |
64-
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE, dest_dir = "public") |
67+
pkgdown::build_site(override = list(destination = "public")) |
6568
file.copy(from = "./public/articles/logo.png",to = "./public/reference/logo.png")
6669
shell: Rscript {0}
6770
- name: Set up Quarto
6871
uses: quarto-dev/quarto-actions/setup@v2
6972
- name: Render Quarto Project
70-
runs:
71-
using: 'composite'
72-
steps:
73-
- name: 'render1'
74-
env:
75-
QUARTO_PRINT_STACK: true
76-
run: |
77-
quarto render tutorials/changes_slides_deck.qmd --output-dir ./public/tutorials
78-
shell: bash
73+
uses: quarto-dev/quarto-actions/render@v2
7974
- name: Upload artifact
8075
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa
8176
with:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ docs
1515
vignettes/*.html
1616
vignettes/*.R
1717

18+
19+
/.quarto/

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ pages:
103103
- Rscript -e 'devtools::install(quick = TRUE, upgrade = "never")'
104104
- Rscript -e 'pkgdown::build_site(override = list(destination = "public"))'
105105
- Rscript -e 'file.copy(from = "./public/articles/logo.png", to = "./public/reference/logo.png")'
106-
- quarto render tutorials/changes_slides_deck.qmd --output-dir $PAGES_OUTDIR/tutorials
107-
- quarto render tutorials/basic_slides_deck.qmd --output-dir $PAGES_OUTDIR/tutorials
106+
- quarto render
107+
108108
artifacts:
109109
paths:
110110
- $PAGES_OUTDIR

_quarto.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
project:
2+
output-dir: public
3+
render:
4+
- tutorials/basic_slides_deck.qmd
5+
- tutorials/changes_slides_deck.qmd
6+
7+
toc: false
8+

tutorials/_metadata.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
format:
2+
revealjs:
3+
menu: false
4+
progress: false
5+
search: false

0 commit comments

Comments
 (0)