Open bashfulrobot opened 3 years ago
PS, it's not perfect, could use some formatting cleanup, etc, but it is close enough for me (for now).
How about to generate epub, fb2 (or bunch of another formats) just in next 3 simple steps?
F="README" && pandoc $F.html --to=epub --output=$F.epub && ls -l $F.epub
from CLI.If you want to using newer mdbook or mdbook-epub,
replace commands
- Installed mdbook with
cargo install mdbook --version 0.3.7
(the epub requires an older version)- installed mdbook-epub with
cargo install mdbook-epub
with
cargo install mdbook
cargo install --version 0.4.15-beta mdbook-epub
- added
[output.epub]
to the bottom ofbook.toml
With mdbook-epub standalone mode,
step 6 is not needed but generate epub after step 7 (run createBookFromReadme.sh
) with command
mdbook-epub -s . # "." indicate the path where `book.toml` located
Anyone successfully produced the epub version. Would you like to share the output here?
I am not sure of the best way to approach this (to officially support on your end or not), but I generated an epub for the book using https://github.com/Michael-F-Bryan/mdbook-epub.
Steps
createBookFromReadme.sh
to use the csplit command (search and replace).mdBook
withmdbook
in the script as well.cargo install mdbook --version 0.3.7
(the epub requires an older version)cargo install mdbook-epub
[output.epub]
to the bottom ofbook.toml
createBookFromReadme.sh
- this results in the web preview having a 404, can ignore, and justctrl-c
to kill the script.book
directoryI just wanted to share the process in case any others wanted to add the book to a reader, etc.