LearnToDiscover / sandpaper

L2D's fork of {sandpaper}
https://learntodiscover.github.io/sandpaper/
Other
0 stars 1 forks source link

Generate single-episode PDFs #82

Closed milanmlft closed 5 months ago

milanmlft commented 5 months ago

Convert rendered HTML outputs of episodes to PDF using pagedown::chrome_print().

You can see a preview here: https://milanmlft.github.io/sandpaper-test/introduction.html

To do

Fixes #74

milanmlft commented 5 months ago

Though, I dont understand what this PR is doing? I do not see single episode pdf.

It is generating PDF outputs of the rendered episodes, which is achieved by these lines: https://github.com/LearnToDiscover/sandpaper/blob/d62a4d22d92ff44d93c86da0db2673a39cd264c2/R/build_site.R#L128-L135

You can see an example of what this looks like here: https://milanmlft.github.io/sandpaper-test/introduction.pdf