NOAA-EDAB / tech-doc

Technical documentation for ecosystem reporting
https://noaa-edab.github.io/tech-doc
Other
8 stars 9 forks source link

_output.yml options to fix broken pdf link #58

Closed sgaichas closed 4 years ago

sgaichas commented 4 years ago

Options for pdf book do not correctly assign the bookdown link to the pdf in repository (it should be in the _book directory, but link points to master directory, and still doesn't work when the _main.pdf is placed there). Current code at the end of _output.yml:

bookdown::pdf_book:
  keep_tex:  yes

Online suggestions address the issue when implementing from a docs folder but we are implementing from a gh-pages branch via Travis so our situation is different.

When solved, document in how-to vignette (issue #56)

kimberly-bastille commented 4 years ago

The pdf is built by travis using the code below in the .travis.yml. PDF can be downloaded here so there is no need to build local.

script:
  - Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::gitbook')"
  - Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::pdf_book')"