Source files for
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nek0 8a90913f2a brighten the background a little 2 years ago
site brighten the background a little 2 years ago
src new style 2 years ago
templates new style 2 years ago
.gitignore mark folders as such 2 years ago
ChangeLog.md init 4 years ago
README.md enable foreign access 3 years ago
Setup.hs init 4 years ago
chaoszone.cabal test 3 years ago
default.nix switch to haskell.nix build infrastructure 2 years ago
newpost.sh new post and adjustments to script 3 years ago
shell.nix switch to haskell.nix build infrastructure 2 years ago

README.md

chaoszone.cz

The source files for the https://chaoszone.cz website.

Dependencies

This site is built using Hakyll. To be able to build and run this, you need to install the following:

  • ghc
  • cabal-install
  • alex
  • happy
  • zlib1g-dev

New post

To write new posts just invoke newpost.sh. This will guide you through the process.

After you have written and saved the new post, add the post (you can find it in site/posts/) to the repo, commit and push it.

Build and deploy

NixOS

After cloning the repo and changing into the repo directory, you can invoke

nix-shell shell.nix

to build a shell with all dependencies in it. After that, you invoke

cabal new-run -- chaoszone build && cabal new-run -- chaoszone deploy

to build the static sites and eploy them in one step.

Other *nix

After cloning the repo, you change into the directory and invoke

cabal new-update

to initialize your cabal package repository list. After that you can run

cabal new-run -- chaoszone build && cabal new-run -- chaoszone deploy

to build the static sites and eploy them in one step.

Altering building process

For altering the building process, you may edit the src/Main.hs file. To actually see your results, contact me at nek0@nek0.eu so I can rebuild the executable for the static site generator.