Jekyll site to GitBook converter
This converter is specific for my own Jekyll site structure.
Clone and modify it to fit your need.
Usage
- Initial a gitbook project
- Copy contents from Jekyll site to gitbook project, preserve folder structure.
Contents are markdown files, images etc. Other files in Jekyll site, e.g.
theme, templates, plugins, configuration should be excluded.
- Run converter:
yarn install
yarn build
node build/index.js /path/to/gitbook/project
Hint:
- To revert changes, use command:
git checkout -- . && git clean -df