Getting started
You need to:
- install Java 11+
- install Sbt or Mill (included in starter template)
- clone the starter project
and you're ready!
Mill
Type ./mill site.hepek
Or ./mill -w site.hepek
so that mill watches for file changes and runs hepek
automatically.
Output will be in the site/hepek_output
folder.
Sbt
Start up sbt
console and type hepek
.
Or ~hepek
so that sbt watches for file changes and runs hepek
automatically.
Output will be in the site/hepek_output
folder.
Serving locally
Usually you'll want to use an HTTP server to develop a site locally.
First cd site/hepek_output
and then use one of the options below.
jwebserver
If using Java 18+, use the jwebserver
tool:
$> jwebserver
By default it will serve the site at http://localhost:8000
Browsersync
Install Browsersync and then:
$> browser-sync
Browsersync will automatically refresh page in browser when it gets changed!
By default it will serve the site at http://localhost:3000/