Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding embed functionality for Leanpub conversion #90

Merged
merged 11 commits into from
Feb 4, 2022
Merged

Conversation

cansavvy
Copy link
Contributor

@cansavvy cansavvy commented Feb 4, 2022

Purpose/implementation Section

What changes are being implemented in this Pull Request?

This is working to address: jhudsl/OTTR_Template#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?

jhudsl/OTTR_Template#381

@cansavvy
Copy link
Contributor Author

cansavvy commented Feb 4, 2022

Windows is failing #73 but everything else is working. Going to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant