Set file_scope option

Fixes #886
This commit is contained in:
Hadley Wickham 2020-10-05 11:28:01 -05:00
parent 02ad3896f3
commit 08a93c7eb4
1 changed files with 8 additions and 3 deletions

View File

@ -59,11 +59,16 @@ jobs:
uses: actions/cache@v2
with:
path: _bookdown_files
key: bookdown-1-${{ hashFiles('**/*Rmd') }}
restore-keys: bookdown-1-
key: bookdown-2-${{ hashFiles('**/*Rmd') }}
restore-keys: bookdown-2-
- name: Build site
run: Rscript -e 'bookdown::render_book("index.Rmd", quiet = TRUE)'
run: |
# Allows [implcit heading links] to work; will need to convert
# to explicit before switching to visual editor
options(bookdown.render.file_scope = FALSE)
bookdown::render_book("index.Rmd", quiet = TRUE)
shell: Rscript {0}
- name: Deploy to Netlify
if: contains(env.isExtPR, 'false')