rstudio4edu / rstudio4edu-book

Organizing rstudio4edu project progress
https://rstudio4edu.github.io/rstudio4edu-book/
66 stars 34 forks source link

Bookdown's download "rmd" option #28

Closed apreshill closed 5 years ago

apreshill commented 5 years ago

Just pointing out we need to note that this requires an "edit" field.

bookdown::gitbook:
  css: assets/style.css
  config:
    toc:
      before: |
        <li><a href="./">A Minimal Book Example</a></li>
      after: |
        <li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
    download: ["rmd"]

So you'll get this error:

1: In download_filenames(config) :
  The edit link was not specified, and the download link for RMD will not work

Fixed by adding to index.Rmd YAML:

edit: https://github.com/rstudio-education/rmd4medicine/book/edit/master/%s