Skip to content

Commit

Permalink
Add config_automation.yml to templates
Browse files Browse the repository at this point in the history
  • Loading branch information
howardbaik committed May 14, 2024
1 parent 67fcebd commit 0bbf3ec
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/setup_project.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ setup_project_quarto <- function(path, ...) {

# Vector of filenames to be copied
boilerplate_file <- c("index.qmd", "intro.qmd", "404.qmd",
"style.css", "references.bib", "_quarto.yml")
"style.css", "references.bib", "_quarto.yml", "config_automation.yml")
# Apply the function to each file in the vector
lapply(boilerplate_file, copy_files, dots$style_set, path)

Expand Down
24 changes: 24 additions & 0 deletions inst/style-sets/anvil/config_automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

##### Checks run at pull request #####
# Check quiz formatting
check-quizzes: no
# Check that urls in the content are not broken
url-checker: yes
# Render preview of content with changes (Rmd's and md's are checked)
render-preview: yes
# Spell check Rmds and quizzes
spell-check: yes
# Style any R code
style-code: yes
# Test build the docker image if any docker-relevant files have been changed
docker-test: no

##### Renderings run upon merge to main branch #####
# Rendering each platform's content
render-bookdown: yes
render-leanpub: yes
render-coursera: no

# What docker image should be used for rendering?
# The default is jhudsl/base_ottr:latest
rendering-docker-image: 'jhudsl/ottr_quarto:latest'
24 changes: 24 additions & 0 deletions inst/style-sets/custom/config_automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

##### Checks run at pull request #####
# Check quiz formatting
check-quizzes: no
# Check that urls in the content are not broken
url-checker: yes
# Render preview of content with changes (Rmd's and md's are checked)
render-preview: yes
# Spell check Rmds and quizzes
spell-check: yes
# Style any R code
style-code: yes
# Test build the docker image if any docker-relevant files have been changed
docker-test: no

##### Renderings run upon merge to main branch #####
# Rendering each platform's content
render-bookdown: yes
render-leanpub: yes
render-coursera: no

# What docker image should be used for rendering?
# The default is jhudsl/base_ottr:latest
rendering-docker-image: 'jhudsl/ottr_quarto:latest'
24 changes: 24 additions & 0 deletions inst/style-sets/fhdasl/config_automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

##### Checks run at pull request #####
# Check quiz formatting
check-quizzes: no
# Check that urls in the content are not broken
url-checker: yes
# Render preview of content with changes (Rmd's and md's are checked)
render-preview: yes
# Spell check Rmds and quizzes
spell-check: yes
# Style any R code
style-code: yes
# Test build the docker image if any docker-relevant files have been changed
docker-test: no

##### Renderings run upon merge to main branch #####
# Rendering each platform's content
render-bookdown: yes
render-leanpub: yes
render-coursera: no

# What docker image should be used for rendering?
# The default is jhudsl/base_ottr:latest
rendering-docker-image: 'jhudsl/ottr_quarto:latest'
24 changes: 24 additions & 0 deletions inst/style-sets/gdscn/config_automation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

##### Checks run at pull request #####
# Check quiz formatting
check-quizzes: no
# Check that urls in the content are not broken
url-checker: yes
# Render preview of content with changes (Rmd's and md's are checked)
render-preview: yes
# Spell check Rmds and quizzes
spell-check: yes
# Style any R code
style-code: yes
# Test build the docker image if any docker-relevant files have been changed
docker-test: no

##### Renderings run upon merge to main branch #####
# Rendering each platform's content
render-bookdown: yes
render-leanpub: yes
render-coursera: no

# What docker image should be used for rendering?
# The default is jhudsl/base_ottr:latest
rendering-docker-image: 'jhudsl/ottr_quarto:latest'

0 comments on commit 0bbf3ec

Please sign in to comment.