Files
public-apis/build/build.sh
T

9 lines
391 B
Bash
Raw Normal View History

2017-05-25 00:21:13 -04:00
#!/bin/bash
2017-05-25 10:15:57 -04:00
# create json directory if not already present
mkdir -p ../json
2017-05-25 10:15:57 -04:00
# parse API README and print (minified) JSON to stdout, redirect to /json
2017-08-03 15:18:08 -04:00
node condenseMd.js ../README.md > single_table.md
node md2json.js single_table.md > ../json/entries.min.json
2017-05-25 10:15:57 -04:00
# beautify the previously created JSON file, redirect to /json
2017-07-02 23:54:53 -04:00
python -m json.tool ../json/entries.min.json > ../json/entries.json