2018-10-15 11:36:55 +00:00
# Build script
2015-01-12 23:35:17 +00:00
2018-10-15 11:36:55 +00:00
The build script `build.py` uses as input:
* [vocabulary/term_versions.csv ](../vocabulary/term_versions.csv ): the list of terms
2018-10-29 18:50:13 +00:00
* [terms.tmpl ](terms.tmpl ): a Jinja2 template for the quick reference guide
2018-10-15 11:36:55 +00:00
To create:
* The quick reference guide as a Markdown file at [docs/terms/index.md ](../docs/terms/index.md ). The guide is build as Markdown (with a lot of included html) rather than html, so it can incorporated by Jekyll in the Darwin Core website (including a header, footer and table of content).
* Two simple Darwin Core CSV files in [dist/ ](../dist/ )
2015-01-14 17:24:08 +00:00
2017-09-30 15:21:02 +00:00
## Run the build script
2015-01-14 17:24:08 +00:00
2018-10-15 11:36:55 +00:00
1. Install the required libraries (once):
```bash
pip install -r requirements.txt
```
2015-01-14 17:24:08 +00:00
2018-10-15 11:36:55 +00:00
2. Run the script from the command line:
2015-01-14 17:24:08 +00:00
2018-10-15 11:36:55 +00:00
```bash
python build.py
```
2020-08-06 20:15:22 +00:00
## Generating the "normative document"
The script `generate_normative_csv.py` pulls source data from the rs.tdwg.org GitHub repo. No local files are required.
It outputs the file `term_versions.csv` , which is used as the input for the `build.py` script above.