Open hammer opened 6 years ago
First lesson from first Travis build (7 min): use binary installs!
With caching, second build only took 2 minutes. Still...
NB: the download PDF and EPUB links don't work out of the box, not clear why...
Turns out Yihui added this capability to the demo a while back: https://github.com/rstudio/bookdown/issues/133
When I add an image in images/
, it gets picked up locally and moved into _book
. For some reason, it's not getting picked up by Netlify, as I don't see an images/
directory in the zip file. I don't think it's Netlify's fault as the image is < 1 MB (so probably not hitting a size restriction) and png files don't seem to be on Netlify's default exclude list. Will try to manually build again to see if it was maybe a caching issue?
Bookdown project template
Configuration
_bookdown.yml
Our book also has:
output_dir: "docs"
for GitHub pagesnew_session: yes
for “Knit and Merge” (K-M)rmd_files: [ ... ]
so we don't need numerical prefixes in.Rmd
file names_output.yml
Our book doesn't use any of these settings, only (under
bookdown::gitbook:
):table_css: false
to use Bootstrap styling with kableExtra tablesconfig: sharing: no
to turn off those annoying social media linksindex.Rmd
preambleOur book adds
github-repo
though I'm not sure why it's valuablecover-image
which is for epub only it turns outHere's an R chunk to get the cover image in
index.Rmd
: