Contains all the code necessary to generate https://periph.io via Hugo and serve via Caddy.
The web pages content is located at site/content/. Please send PR as per contributing guidelines.
The github webhook handler leverages hub.docker.com/r/marcaruel/hugo-tidy/ to do the processing whenever a new commit happens.
hugo-tidy leverages:
- pygment to generate the syntax highlighting:
pip install --user Pygments
- hugo to generate the html
- minify to reduce
the size:
go get -u -v github.com/tdewolff/minify/cmd/minify
The syntax styles was generated with pygmentize -f html -S colorful -a .syntax >> site/static/css/style.css
and small modifications.
The time between a PR being merged and the web site being live is generally <5 seconds. One second due to github's latency itself, 2 seconds to regenerate the web site. The author doesn't like waiting.