Skip to content

Instantly share code, notes, and snippets.

@sebastianrothbucher
Created March 16, 2019 16:12
Show Gist options
  • Save sebastianrothbucher/e2b82202432657052d6d56bd30bfe6d2 to your computer and use it in GitHub Desktop.
Save sebastianrothbucher/e2b82202432657052d6d56bd30bfe6d2 to your computer and use it in GitHub Desktop.
Reactjs docs as ebook (epub / Kindle)

This is how you can conver the react docs to a .ePub / Kindle (.mobi) file to read in an eReader (or eReader app):

echo '' > ALL.md
for i in $(cat nav.yml | grep 'id:' | awk -F:  '{print$2}')
do
cat "$i.md" >> ALL.md 
done
  • convert to an epub via pandoc ALL.md -o ALL.epub
  • Open All.epub in Calibre
  • edit metadata (and poss. convert to MOBI via Conversion)
@gjorgiev
Copy link

gjorgiev commented Jan 3, 2021

Thanks a lot for the script. I am posting the output in epub format here. Download Docs (epub)

@karl-friman
Copy link

Posting the epub output for Aug 29th 2021 here:
https://github.com/monotones1/reactjs-docs-epub
I just did
pandoc *.md > all.html
and then changed the TOC in Calibre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment