Name: toolbox-training
Owner: Ocean Health Index - Science
Description: The Ocean Health Index Toolbox Training
Created: 2017-02-14 21:26:48.0
Updated: 2018-05-04 21:23:43.0
Pushed: 2018-05-04 21:23:42.0
Homepage: http://ohi-science.org/toolbox-training
Size: 1251
Language: R
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
These materials are available as a book at http://ohi-science.org/toolbox-training.
Please clone or download https://github.com/OHI-Science/toolbox-demo to accompany this training.
To render this book: bookdown::render_book("index.Rmd", "bookdown::gitbook")
Many thanks to the creators of bookdown
:
/docs
folderHere is how to publish this book using the docs/ folder (instead of using Travis-CI or some script to move content between branches like we did with _deploy.r).
In RStudio:
In the root directory of your book, create a folder called docs
(all lowercase)
In _bookdown.yml
, add a line that says output_dir: "docs"
(no indentation)
Check your .Rproj
file (may have to open a separate text editor for this). Make sure that lines ~12 on say the following (replace whatever is there):
eave: knitr
X: pdfLaTeX
AppendNewline: Yes
pTrailingWhitespace: Yes
dType: Website
Quit RStudio. When you reopen, your “Build” tab in the top right pane should have a button that says “Build Book”
Build your book by clicking the button or in the console: rmarkdown::render_site(encoding = 'UTF-8')
Delete the _book
folder if it exists (this is what _deploy.R
used)
Commit and push
On GitHub.com
Back in RStudio