Skip to content

Instantly share code, notes, and snippets.

@flynnduism
Last active May 7, 2017 04:08
Show Gist options
  • Save flynnduism/4ba44e4226dade9b1295bd8253843ea5 to your computer and use it in GitHub Desktop.
Save flynnduism/4ba44e4226dade9b1295bd8253843ea5 to your computer and use it in GitHub Desktop.

Running the site

Install Dependancies

This site uses Hugo, a static site generator. It can be installed via homebrew:

brew update && brew install hugo

then:

npm install

When these packages are installed, you can generate the Docs site by:

hugo server

Local Dev

The site uses Gulp to build and optimize the site assets. If you're work on the styles or scripts in the site, re-compile and reload your changes with:

gulp watch

Structure

The /content directory contains all of the Docs in markdown format, extracted from their home in the kubernetes/helm repo.

When Hugo generates the site, these markdown files are spun into a site structure via the theme (html layouts and css/js assets) in /themes/hugodocs.

Editing Docs

Edits to the Docs themselves should be carried out via pull requests on the kubernetes/helm repo.
The Docs site will then extract those files and publish them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment