Thank you for being interested in contributing to this project! Feel free to ask questions on the issue tracker.
Setting up a development environment requires nix
.
Clone this repository:
$ git clone https://github.com/styx-static/styx.git
Enter the devshell:
$ direnv allow || nix develop -c "$SHELL"
Running styx dev version:
$ nix run . -- --version
Styx is just a shell script wrapping nix-build
, the --DEBUG
flag can be passed to see executed commands (set -x
).
Previewing the dev version showcase theme example site:
$ nix run . -- preview-theme showcase
Loading the showcase example site in nix repl
:
$ nix repl ./repl.nix
> themes = out.data.styxthemes
nix-repl> site = import "${themes.showcase}"/example/site.nix {}
nix-repl> site.conf
{ siteUrl = "https://styx-static.github.io/styx-theme-showcase"; theme = { ... }; }
Please run the tests before any commit:
$ nix run .#run-tests