Indigo is Laws.Africa's legislation database for managing, consolidating and publishing legislation in the Akoma Ntoso format.
It is a Django python web application using:
- Django
- Cobalt -- a lightweight Python library for working with Akoma Ntoso
- Bluebell -- a generic Akoma Ntoso 3 parser, supporting all hierarchical elements and multiple document types
- django-rest-framework
Read the full documentation at indigo.readthedocs.io.
Refer to https://indigo.readthedocs.io/en/latest/running/index.html
Each indigo package has its own translations in the locale
directory. Translations for strings are added on CrowdIn.
If you have added or changed strings that need translating, you must tell Django to update the .po files so that translations can be supplied through CrowdIn.
for app in indigo indigo_api indigo_za; do pushd $app; django-admin makemessages -a; popd; done
And then commit the changes. CrowdIn will pick up any changed strings and make them available for translation. Once they are translated, it will open a pull request to merge the changes into master.
Once merged into master, you must tell Django to compile the .po files to .mo files:
python manage.py compilemessages
And then commit the changes.
Indigo is migrating to modules written in ES6 using Vue. This code needs to be compiled into a single JS file using webpack.
npm install
npx webpack
During development, using npx webpack -w
to watch for changes and recompile automatically.
To run the tests use:
python manage.py test
Read the documentation for details on deploying Indigo.
An example Dockerfile
and docker-compose.yml
are provided as a starting point for running Indigo.
- Run the tests!
- Update VERSION appropriately
- Update
docs/changelog.rst
- Commit changes
- Tag:
git tag vX.X.X
and push to githubgit push; git push --tags
The project is licensed under a GNU GPL 3 license.
Indigo is Copyright 2015-2020 AfricanLII.