-
Notifications
You must be signed in to change notification settings - Fork 0
Development
This document is designed to help you get up-and-running with developing the website. It is designed for a computer-literate user but, where possible, effort has been taken to make it as accessible as possible. If you encounter any problems following the steps here, please submit an issue describing it so that we can fix the problem.
The website is run using GitHub Pages and the Jekyll static site generator. Content is hosted directly on GitHub and Jekyll transforms this into web pages, served via our GitHub Pages endpoint.
Content is written using Markdown and should be easily readable and editable in the browser. GitHub allows files to be edited directly and offers a preview function for Markdown files, which should eliminate the need for locally-hosted copies.
The domain name is configured using the provider's management tool and the CNAME file in the project's root directory.
Before you can begin development you must install the tools locally. GitHub has provided documentation for doing this here.
On Macintosh OSX, the steps are as follows:
-
Download
gitby typingbrew install gitin a terminal window. This is a version control system that GitHub is based around. Using version control allows changes to be undone if something has gone wrong, or for the history of a project to be viewed at a later date. -
Download
rubyby typingbrew install rubyin a terminal window. This is a programming language used by Jekyll. -
Download the
bundlertool by typinggem install bundlerin a terminal window. This is a tool that manages dependencies on Ruby packages, known as Gems. These dependencies are pieces of software written by others that have been used in the project. -
Use Bundler to set up GitHub Pages and Jekyll locally by typing
bundle install. You may be prompted for your user's password at this step. -
Run the Jekyll static page generator by typing
bundle exec jekyll servein a terminal window. -
The website should now be hosted at http://127.0.0.1:4000/! 🎈