Generate the website
Make sure you have installed npm and yarn.
Then run
$ ./mill -i docs.generate --npm-install --yarn-run-build
If you're getting an error message like Cannot resolve $file import: almond/scripts/website0/Website.sc
make sure you have checked out the git submodule for the website script:
git submodule update --init --recursive
If the generation is successful, you can run a small webserver to serve the website locally, like
$ npx http-server docs/website/build
This command should print the address to access the local website, like http://127.0.0.1:8080
.
Watch sources
To watch sources and rebuild/hot-reload on changes in docs/pages
or docs/website
run
$ ./mill -i -w docs.generate --npm-install --yarn-run-build --watch
This should open a browser window, pointing at the locally running website.