Turn any Jekyll site into an offline application with relative links

Overview

Usually, Jekyll sites can be viewed either by uploading the generated site files to a remote server or locally using the jekyll serve command, which hosts the site temporarily on a local server. However, it is not always possible or practical to do this (for example, on a phone or other mobile device). As static sites, Jekyll sites are well-suited to running offline and usually present no special challenges other than that all of the resources and links are relative to the root of the server, not the user’s computer file structure.

So long as the Jekyll-generated site code is available, the Jekyll executable itself is not even required for this script to work.