Documentation Site
The documentation is written in Markdown format to keep it portable. A website is built with the Hugo static site generator, using the Relearn theme.
Development
Build process: The Markdown and Docker Compose files are collected and converted by update-docs.py, then hugo build is executed in a Docker container, producing a container image with nginx serving the static website.
Run task docs:deploy to build and locally deploy (using docker/tools/homelab-docs.yaml) the site.
Hugo
Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again.
Note - Alternatives to Hugo:
Installation
Install with APT (older Hugo version):
…or install a specific release from Github:
…or use Docker:
Hugo Docker Images
Use docker pull hugomods/hugo:exts to update Hugo.
Theme
- https://mcshelby.github.io/hugo-theme-relearn/
- https://mcshelby.github.io/hugo-theme-relearn/basics/installation/index.html
- https://github.com/McShelby/hugo-theme-relearn/blob/main/exampleSite/
Clone repo:
git clone https://github.com/McShelby/hugo-theme-relearn.git --depth 1
Create and serve a new website
Initialize the new site:
Output:
Install the theme:
Run the webserver, allowing remote HTTP access: