

This can be installed via Homebrew with the Terminal command:Įnsure the brew installed Ruby is in the Terminal shell path by adding the following to the shell config e.g.zshrc: export PATH="/usr/local/opt/ruby/bin:$PATH"Ĭheck the brew Ruby installation with these Terminal commands: which ruby These can be installed from a Terminal window with the command: In this post I describe the steps I took to install a working Jekyll environment on my Apple iMac, which, at the time of installation, was running macOS Catalina 10.15.4. Many tutorials are available online describing the Jekyll installation process, including the official Jekyll site. To host a GitHub Pages compatible website locally you will need to install Jekyll on your machine. As well as reflecting the changes to the local site immediately, this also has the benefit of leaving the live website unchanged until the changes have been checked before being pushed to the repository. But when making multiple incremental changes to a site, waiting for them to be published will inevitably delay the development process.Ī better solution is to make and test the changes locally, only pushing them to the repository to be published once they have been tested and approved. Typically GitHub Pages will publish the changes in a matter of minutes, if not immediately. However, it can be frustrating when creating a new, or restyling an existing, website as there is no direct control over when changes to the site are built and published. This is straightforward and convenient, especially when adding new content to an established site. By default, GitHub Pages uses Jekyll to build the site. Once you have a website hosted on GitHub Pages, see Welcome GitHub Pages and Jekyll, it publishes any static files that are pushed to the website repository. It takes HTML, CSS, and JavaScript files straight from a repository on GitHub, optionally runs the files through a build process, and publishes a website. GitHub Pages is a free service provided by GitHub to host static websites.

JEKYLL, BUNDLE, GEM Installing Jekyll April 15, 2020
