Source files for https://chaoszone.cz
Go to file
nek0 976e6e9df2 enable foreign access 2018-12-02 13:16:16 +01:00
site to capital 2018-11-13 10:44:22 +01:00
src enable foreign access 2018-12-02 13:16:16 +01:00
templates redesign 2018-11-10 14:43:43 +01:00
.gitignore meta 2017-11-11 22:02:26 +01:00
ChangeLog.md init 2017-11-10 13:28:35 +01:00
README.md enable foreign access 2018-12-02 13:16:16 +01:00
Setup.hs init 2017-11-10 13:28:35 +01:00
chaoszone.cabal test 2018-10-17 00:51:21 +02:00
newpost.sh new post and adjustments to script 2018-10-13 16:00:59 +02:00
shell.nix nixify 2018-10-17 00:40:22 +02:00

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.