This is how you can conver the vuejs guide to a .ePub / Kindle (.mobi) file to read in an eReader (or eReader app):
- Make sure you have Pandoc available (on a Mac, it can be installed by
brew install pandoc
via Homebrew) - Checkout or download master from the Vue docs repo [https://github.com/vuejs/vuejs.org]
- go to
src/v2/guide
- run the following commands in a shell (builds one markdown in order of
order
attr in each file):
echo '' > toc
for i in *.md
do
echo "$(cat $i | grep '^order:' | head -1 | awk -F: '{printf("%03d", $2)}') $i" >> toc
done
echo '' > ALL.md
for i in $(cat toc | sort | awk '{print$2}')
do
cat $i >> 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)
This doesn't work anymore.