Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for failing documentation build #2643

Merged
merged 1 commit into from Jun 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions book_source/Makefile
Expand Up @@ -23,7 +23,10 @@ DEMO_1_FIGS := $(wildcard ../documentation/tutorials/01_Demo_Basic_Run/extfiles/
build: bkdcheck
mkdir -p extfiles
cp -f ${DEMO_1_FIGS} extfiles/
Rscript -e 'bookdown::render_book("index.Rmd", "bookdown::gitbook")'
# options call is a workaround for a behavior change and probable bug in bookdown 0.20:
# https://stackoverflow.com/a/62583304
# Remove when this is fixed in Bookdown
Rscript -e 'options(bookdown.render.file_scope=FALSE); bookdown::render_book("index.Rmd", "bookdown::gitbook")'

clean:
rm -rf ../book/*
Expand All @@ -32,4 +35,4 @@ deploy: build
./deploy.sh

pdf: bkdcheck
Rscript -e 'bookdown::render_book("index.Rmd", "bookdown::pdf_book")'
Rscript -e 'options(bookdown.render.file_scope=FALSE); bookdown::render_book("index.Rmd", "bookdown::pdf_book")'