This project generates Akoma Ntoso markup versions of South Africa's constitution using the HTML output of the MyConstitution.co.za project.
-
Clone this repo (with
--recursive
for submodules) -
Create a virtualenv:
virtualenv --no-site-packages env
-
Activate it:
source env/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Setup the constitution submodule:
pushd constitution bundle install jekyll build popd
-
Generate XML and HTML:
python transform.py
This code is licensed under an MIT license. The original constitution markdown and HTML are in the public domain. The generated XML and HTML files are also in the public domain.
Share the love.