mirror of https://github.com/tdwg/dwc.git
906c36bc62
Building the quick reference guide as a html file doesn't allow it to use the Jekyll templates (header, navbar, footer). We also can't reference those templates in the terms.tmpl as jinja2 and jekyll work slightly different. But by building the quick reference to a markdown document (with just the content, no html header etc.) it can be picked up by Jekyll like any other markdown file. The markdown file does contain mostly html, so we can style it exactly like we want. |
||
---|---|---|
.. | ||
config | ||
README.md | ||
build.py | ||
requirements.txt |
README.md
The build folder contains a python script to rebuild the terms index page.
It will use the vocabulary/term_versions.csv
and the ./config/terms_config.csv
to populate the html-template file (./config/index.tmpl
)
Run the build script
Install the required libraries for this script with pip once:
pip install -r requirements.txt
To run the script, run the build script from command line:
python build.py