Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.15 KB

README.md

File metadata and controls

37 lines (21 loc) · 1.15 KB

schema_to_html

Converts Specify's schema to an HTML or TSV page

See result

Requirements

You need to have Python 3.8+, a checked out repository of Specify 6 and an installed copy of Specify 6

Configuration

Configuration options are described in ./config.py

Additionally, you might want to change the schema version number by editing ./html_templates/main.html

Generating output

Adjust the variables in config.py as needed, then run the script:

python main.py --output ./schema.html --format html

Supported formats are HTML and TSV

If TSV format is chosen, you can also optionally specify the language:

python main.py --output ./schema.tsv --format tsv --language en

The resulting HTML file (schema.html) would be saved in the same directory as main.py.

You will need to rerun main.py each time there is a schema change in Specify.