Files
public-apis/build/build.sh
T

8 lines
335 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-12-22 20:11:25 -05:00
./md2json.py ../README.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