-
Notifications
You must be signed in to change notification settings - Fork 14
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
Disentangle bookdown/coursera/leanpub rendering. #459
Conversation
No quiz errors detected! 🎉 |
No spelling errors! 🎉 |
render-coursera: | ||
name: Render Coursera | ||
needs: [yaml-check, render-bookdown] | ||
render-tocless: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new section that will run before Leanpub or Coursera if either is set to yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it makes sense to call this something like "Start Leanpub/Coursera render" and then have the jobs below be "Finish Leanpub" and "Finish Coursera"
run: | | ||
Rscript -e "ottr::bookdown_to_embed_leanpub( \ | ||
Rscript -e "ottr::bookdown_to_embed_leanpub( | ||
render = FALSE \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realized its redundant to have bookdown re-rendered if we just did it. So we're using the option here to skip the bookdown::render() step done by this function if bookdown was just run previously.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope. I just realized it never needs to be re-rendered here because the render-tocless
section does this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
render-coursera: | ||
name: Render Coursera | ||
needs: [yaml-check, render-bookdown] | ||
render-tocless: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it makes sense to call this something like "Start Leanpub/Coursera render" and then have the jobs below be "Finish Leanpub" and "Finish Coursera"
Yes, I like this. |
Re-rendered previews from the latest commit:
Updated at 2022-02-11 with changes from eb11c94 |
Purpose/implementation Section
What changes are being implemented in this Pull Request?
render_coursera()
function is actually just "render_without_toc" but Leanpub also needs a toc-less version.I'm working on disentangling the renders from each other so someone can truly specify just one and not the others. Before Leanpub was dependent on Coursera which was dependent on Bookdown.
Now, my hope is you can really just choose one and not the others (although really Bookdown is still run underneath the hood for all)
Over in the
ottr
package, I renamedrender_coursera
torender_without_toc()
so this is less confusing. jhudsl/ottrpal#96