1
0
mirror of https://github.com/danog/schema.tl.git synced 2024-11-30 04:28:58 +01:00
schema.tl/genmd.js
2017-08-21 21:54:54 -07:00

11 lines
367 B
JavaScript

// this file generates empty markdown files, lol
var fs = require('fs'),
schema = require('./resources/schema.json')
schema.constructors.forEach(constr => {
fs.appendFileSync(__dirname + "/docs/constructors/" + constr.predicate + ".md", "")
})
schema.methods.forEach(method => {
fs.appendFileSync(__dirname + "/docs/methods/" + method.method + ".md", "")
})