dc-law-tools
This repo contains tools for processing the dc-law.
The files in this repo will change significantly over time as our tooling needs change.
https://github.com/dccouncil/dc-law has issue tracker and full readme.
requirements
In order to run the scripts in this repo, you must have python3 and pip installed.
installation
from the dc-law-tools
directory run pip install .
build commands
build html all
: build the dc code html by sequentially running all the follow commands:build html merge_xml
: resolve all xml references; turn into one single xml documentbuild html template_xml
: repeatedly apply the xslt template to the single xml document to create the entire html site.
build xml all
: process the raw xml parsed from the Publisher, convert to something we can use to build the html. Sequentially runs all the following commands:build xml insert_tables
: insert hand-made tables into parsed xml.build xml process_annotations
: convert annotations into computer-readable structured data (wip)build xml split_up
: split the single xml document into a file for each title, and each section, with link between. The split-up code is placed in a../dc-law-xml
(a sibling to this directory)
License
This software is released under a CC0 license.