Plutonomicon / plutonomicon

Advanced techniques in the plutus smart contract language
https://plutonomicon.github.io/plutonomicon/
MIT License
202 stars 44 forks source link

Add Hercules-CI and Website Flake #21

Closed MatthewCroughan closed 2 years ago

MatthewCroughan commented 2 years ago

Adds a simple flake that utilizes Hercules CI Effects to build and deploy the contents of this repo with Emanote. Every time a change is made to the main branch of this repository the effect runs and pushes the results to the gh-pages branch. You can also build the website with Nix via nix build .#website.

Please keep this flake simple if making additions.

L-as commented 2 years ago

https://plutonomicon.github.io/plutonomicon/ for anyone wondering. A bit unfortunate that it doesn't work without JS.

srid commented 2 years ago

https://plutonomicon.github.io/plutonomicon/ for anyone wondering. A bit unfortunate that it doesn't work without JS.

@MatthewCroughan I forgot about this. This can be fixed by running bash $out/_emanote-bin/compile-css after the emanote command. It will generate a .css file (instead of relying on twind.dev shim which requires JS).

MatthewCroughan commented 2 years ago

@srid That will never work, since your compile-css script requires Docker, which will never run inside of a Nix derivation.