Website for fractalide made with the styx static site generator.
The contents is managed in the
data/blocks: Holds the blocks data in nix format.
data/news: Holds news in nix, markdown or asciidoc format.
data/pages: Holds pages data.
News can be added by adding a content file in
Pages can be added by adding entries site.nix
Blocks are more complex and requires to create templates.
The most important setting is
siteUrl that is used for link generation.
siteUrl should be set to the url of published site, without the trailing
$ styx preview
And visit http://localhost:8080.
nix-build can be used to build the site as a normal nix derivation.
nix-repl can be used for debugging, see documentation for details.
styx deploy related commands can be used to quickly deploy to github pages.
styx deploy --init-gh-pageswill prepare the repo for github pages deployment, this command should be run only once.
styx-deploy --gh-pageswill copy the generated site to the
- Then the
gh-pagescan be pushed by running
(cd gh-pages && git push -u origin gh-pages) && git push -u origin gh-pages