Demo webpage for the Dahlia Programming language.
- Install Hugo (= 0.65.1)
- (Optional for local builds) Install entr.
- Run
make get-dahlia
to grab the Dahlia JS compiler. - Run
make
. Thsi will install the dependencies forcustom-js/
and generate the website under thepublic/
folder.
There are two components to the webiste, the static webpage and the custom JavaScript (which contains all the examples).
- Run the following command to automatically rebuild the JavaScript dependencies
whenever a file in
custom-js/
is changed:cd custom-js && find *.js | entr -c yarn build
- Run
hugo server -w
in the repository root. This will serve the webpage to localhost:1313/dahlia.
All the examples live in custom-js/examples.js
. Add a new example by
adding a new object in the same style as the existing examples.
If running a local build, the file should be automatically rebuilt and the example should up in the list. If it doesn't show up, check the console for any errors. It's likely that the example was malformed or a the script failed.