STC India Chennai Regional Conference
August 31, 2019
I work at Genesys as a Staff Technical Writer.
Hugo is a static site generator.
A Static Site Generator (SSG) takes some text-based markup and generates a static website using some templates.
You can find more SSGs at StaticGen.
Like the one you're seeing right now...
setx path "%path%;<HUGO EXE Folder>"
hugo help
hugo new site docsite
cd docsite
hugo server
Hugo will now create a temporary site at
http://localhost:1313
We will be using the Whisper theme.
docsite
folder.\docsite
- archetypes
- content
- data
- layouts
- resources
- static
- themes
-- hugo-whisper-theme
- config.toml
Let's copy the entire contents of the .\hugo-whisper-theme\exampleSite folder to the root folder of the Hugo site.
baseURL = "/"
title = "My Docs Site"
theme = "hugo-whisper-theme"
... Other parameters as required
Let's check how the site looks.
hugo server
Hugo will now create a temporary site at http://locahost:1313.
hugo
The site will be now available at public folder for deployment.
You can copy the contents to your website.
What is next?
Hugo + Github + Netlify = 🆓🌐
Create a full-fledged documentation site with Hugo:
Workshop Details : TBD