-
Notifications
You must be signed in to change notification settings - Fork 637
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Set up _quarto.yml and get book building * Recapture styling * Improve code styling and suppress crayon * Convert tips to various types of callouts * Switch action to use Quarto * Update cross-links * Fix footnotes * Standardise diagram embedding
- Loading branch information
Showing
44 changed files
with
465 additions
and
536 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,38 +22,30 @@ jobs: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
isExtPR: ${{ github.event.pull_request.head.repo.fork == true }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Generate Locales used in Package within | ||
run: | | ||
sudo locale-gen it_IT.UTF-8 | ||
sudo locale-gen pl_PL.UTF-8 | ||
sudo locale-gen pt_BR.UTF-8 | ||
sudo locale-gen en_GB.UTF-8 | ||
- uses: r-lib/actions/setup-pandoc@v2 | ||
- name: Configure Git user | ||
run: | | ||
git config --global user.name "$GITHUB_ACTOR" | ||
git config --global user.email "[email protected]" | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: quarto-dev/quarto-actions/setup@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
|
||
- name: Cache bookdown results | ||
uses: actions/cache@v2 | ||
with: | ||
path: _bookdown_files | ||
key: bookdown-2-${{ hashFiles('**/*Rmd') }} | ||
restore-keys: bookdown-2- | ||
|
||
- name: Configure Git user | ||
run: | | ||
git config --global user.name "$GITHUB_ACTOR" | ||
git config --global user.email "[email protected]" | ||
|
||
- name: Build site | ||
run: bookdown::render_book("index.Rmd", quiet = TRUE) | ||
shell: Rscript {0} | ||
- name: Render book | ||
run: quarto render | ||
|
||
- name: Deploy to GitHub Pages | ||
if: contains(env.isExtPR, 'false') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,5 @@ publishing/ | |
*.md | ||
libs | ||
render*.rds | ||
/.quarto/ | ||
site_libs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,6 @@ Imports: | |
usethis, | ||
withr | ||
Suggests: | ||
bookdown (>= 0.24), | ||
bslib, | ||
digest, | ||
downlit (>= 0.4.1.9000), | ||
|
Oops, something went wrong.