/website

Source for the main Harbor website

Primary LanguageHTMLApache License 2.0Apache-2.0

The Harbor website

This repo houses the assets used to build the Harbor website, available at https://goharbor.io.

Tools

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.

Project Setup

Step 1: Clone project

$ git clone https://github.com/goharbor/blog.git
$ cd blog

Step 2: Run in a local dev environment

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

Step 3: Prepare for deployment to production

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