Roller Derby Tracker (https://rollerderby.jetzt)
root
- css
- gen
- importer
- js
- lib
- pages
- posts
- templates
- README.md
- importer.hs
- index.html
- rdtracker.cabal
- robots.txt
- site.hs
- stack.yaml
Install prerequisites
# FreeBSD
pkg install hs-stack hs-darcs
# Ubuntu
apt install build-essential haskell-stack darcs pkg-config zlib1g-dev
Fetching the code
Setup your SSH config as described here.
darcs clone https://hub.darcs.net/enum/rdtracker
# or:
darcs clone username@hub.darcs.net:enum/rdtracker
Without data
If you don't need the tracker prefilled with data, create an empty data folder:
cd rdtracker
mkdir data
Data from repository
If you'd like to be able to contribute data and push it upstream, please create an account on DarcsHub and tell me your user name(derby (meow) enumeration (dot) eu). I have to manually approve you (which I certainly will). Then:
cd rdtracker
darcs clone username@hub.darcs.net:enum/rdtracker-data data
Data from website
Alternatively, if you're not planning to push changes upstream, you can just download the prebuilt data set from the website:
cd rdtracker
mkdir data
fetch https://rollerderby.jetzt/tous/tous.en.yaml -o data/tous.$(date +%F).en.yaml
# or:
wget https://rollerderby.jetzt/tous/tous.en.yaml -O data/tous.$(date +%F).en.yaml
Steps to compile
Using stack, it should be easy to compile the site generator:
# if you've never used stack before, update the package list
stack update
stack build
If you prefer cabal-install, that should work as well (if dependencies are available and resolvable):
cabal new-update
cabal new-build
Generate the site
Now you can use the site generator to compile the site itself:
stack run site rebuild
# or, using cabal-install
cabal new-run site rebuild