Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

build.sh 441 B

12345678910
  1. #!/bin/bash
  2. # create json directory if not already present
  3. mkdir -p ../json
  4. # parse API README and print (minified) JSON to stdout, redirect to /json
  5. node md2json.js ../README.md > ../json/entries.min.json
  6. # beautify the previously created JSON file, redirect to /json
  7. python -m json.tool ../json/entries.min.json > ../json/entries.json
  8. # print out pretty JSON (useful for debugging, checking for new entries, etc)
  9. cat ../json/entries.json