rstudio / rmarkdown

Dynamic Documents for R
https://rmarkdown.rstudio.com
GNU General Public License v3.0
2.86k stars 970 forks source link

add gitbook format #394

Closed maxheld83 closed 7 years ago

maxheld83 commented 9 years ago

a gitbook output format would be great for long form stuff (as per #387).

Gitbook is an open source project that takes a directory of *.mds, and together with very lightweight metadata (SUMMARY.md) builds the whole thing into a beautiful HMTL5 book.

Might be a nice idea to add that as an output format, where the structure of (SUMMARY.md) is somehow inferred from the knitr child option structure (maybe?).

I'm guessing this would not be too much work, since it only requires *.mds.

Might eventually try this myself, though I am pretty much a newbie.

Thought I'd ask for some feedback here, also from @SamyPesse and @AaronO of gitbook.io, and also @hadley who seems to have done something similar with bookdown already, though via Jekyll in that case.

znmeb commented 9 years ago

One thing I've looked at is adding EPUB output to RMarkdown via Pandoc. You need some kind of Pandoc table of contents file, but aside from that it's probably just a matter of making some templates or even just passing Pandoc options in the YAML front matter.

You can already make PDFs via LaTeX - the only thing left would be making MOBI files. Calibre does that for GitBook, and there's also an Amazon tool called "KindleGen" which I think runs on Linux.

yihui commented 7 years ago

Just for the record: http://github.com/rstudio/bookdown/

github-actions[bot] commented 3 years ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.