This page explains how to run the Dojo page on your local development environment.
- A local git setup that can clone repositories from github.com, documentation can be found at the Set up Git page on the GitHub documentation
- A local clone of the source code
- A working installation of Ruby 2.1.0 or higher:
- OR a container engine compatible with Docker Compose
- Once Ruby is installed open a terminal and install bundler
gem install bundler
- In the Ruby window, navigate to the root directory of the Jekyll site (
/docs
) and install Jekyll:- Run the command
bundle install
- This will install all gems currently listed in the
Gemfile
- Run the command
- Run Jekyll to serve your site locally
bundle exec jekyll serve --livereload
- View your site at the address provided by Jekyll (by default, http://localhost:4000)
- Any changes to the site files will rebuilt it in the Ruby/Jekyll terminal
- As we are using live reload, the webpage should refresh automatically after it is rebuilt
- To stop Jekyll, ctrl + c
- On the root of the project, run the command:
docker compose up
- View your site at the address provided by Jekyll (by default, http://localhost:4000)
- Any changes to the site files will rebuilt it in the Ruby/Jekyll terminal
- As we are using live reload, the webpage should refresh automatically after it is rebuilt
- To stop Jekyll, ctrl + c
Tests with incremental builds (jekyll serve --incremental
command option) did not show considerable build performance improvements, so it is not used.