Turn any Jekyll site into an offline application with relative links

Usage

Clone or download the repository and enter the following command in a terminal from within the repo main directory:

./jekyll_offline.rb demo.yml

This will create a new folder named demo_offline in the same directory. This folder contains the offline version of the default Jekyll demo site. You can visit it by opening the file START_HERE.html within the demo_offline folder in a web browser.

To create your own new offline site, simply adjust the variables in the config.yml file and run the script again:

./jekyll_offline

The configuration file is assumed to be config.yml by default, so it does not need to be specified unless you are using a different file.

Note that the config.yml file should point to the generated _site folder of a Jekyll website, and not the unprocessed Jekyll source code.