The blog is a static site generated with Hugo and hosted in GitHub Pages. We are also using Mdoc to compile the scala code snippets, so we always generate correct code. To help us with the site generation we use sbt-site and for publishing to ghpages we use sbt-ghpages
Blog posts should be created in the posts
directory. See existing posts for examples.
After the post is created, we need to make sure that the code is actually correct. Execute the following to compile the source code
sbt mdoc
To generate and preview the blog.
sbt previewSite
Publishing to GitHub Pages
To publish the blog, execute the folowing.
sbt ghpagesPushSite
This setup was heavily inspired by Viktor Lövgren's blog