Adding functions here that will create markdowns with iframes for Leanpub.
What was your approach?
The way this works is that you can give a TSV that has chapter urls and specifies image paths for each. You can supply a default image for all chapters, or if you don't supply any images there's a default OTTR image that will be used for you.
The main function is (at it's minimum arguments specified is:
ottr::bookdown_to_embed_leanpub(base_url)
The one required item is that you must specify the base_url.
These functions will be called by Github actions in OTTR_Template and OTTR_Quizzes.
Purpose/implementation Section
What changes are being implemented in this Pull Request?
This is working to address: https://github.com/jhudsl/OTTR_Template/issues/381
Adding functions here that will create markdowns with iframes for Leanpub.
What was your approach?
The way this works is that you can give a TSV that has chapter urls and specifies image paths for each. You can supply a default image for all chapters, or if you don't supply any images there's a default OTTR image that will be used for you.
The main function is (at it's minimum arguments specified is:
ottr::bookdown_to_embed_leanpub(base_url)
The one required item is that you must specify the base_url.
These functions will be called by Github actions in OTTR_Template and OTTR_Quizzes.
What GitHub issue does your pull request address?
https://github.com/jhudsl/OTTR_Template/issues/381