Skip to content

simokawa/website

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

periph.io website

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.

Setup

  • caddy to serve over https
  • docker to be functional and callable from caddy.

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.

Latency

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.

About

Content of https://periph.io; automatically updated on commit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 58.1%
  • CSS 25.0%
  • Shell 16.9%