On a mac:
brew install hugo
On Linux:
- Download from the releases page: https://github.com/gohugoio/hugo/releases/tag/v0.37
- Extract and save the executable to
/usr/local/bin
git clone
this repo onto your workstation
cd website
npm install
cd website && npm run server
Visit http://localhost:1313/ to see the site.
In order to create the nice copy-to-clipboard and 'click to view diff' features, we're using a strategy of pre-processing markdown files to generate source content that is then read by Hugo.
- Start the hugo server using the step above
- Edit files in
website/source_content
cd website/scripts
npm run build
- Check for updated content in the browser.
- Repeat steps 1-4 until you're happy with the content.
note: shift-reload may be necessary in your browser to reflect the latest changes.