jekyll-to-gitbook

jekyll-to-gitbook

Jekyll site to GitBook converter

This converter is specific for my own Jekyll site structure. Clone and modify it to fit your need.

Usage

  1. Initial a gitbook project
  2. 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.
  3. 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