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