This repo houses the assets used to build the Harbor website, available at https://goharbor.io.
The website is built and developed using the Hugo static site generator.
Instructions for installing Hugo can be found here. Use the most recent Hugo version when possible, and make sure to install the "extended" version of Hugo with support for Hugo Pipes.
$ git clone https://github.com/goharbor/blog.git
$ cd blog
Go back to the project root:
$ cd <path>/<to>/<project root>
Start the Hugo server and keep listening to any changes to the website assets (Markdown, etc.):
$ hugo server --buildDrafts
You can build the website in one of three "environments:" live (production), staging, and local.
# Build project for LIVE
$ ENV=live sh build.sh
# Build project for Staging
$ ENV=staging sh build.sh
# Build project for local
$ ENV=dev sh build.sh
# or just
$ sh build.sh