mirror of
https://github.com/Leaflet/Leafdoc.git
synced 2025-07-20 18:27:28 +00:00
19 lines
455 B
JavaScript
Executable File
19 lines
455 B
JavaScript
Executable File
#!/usr/bin/env js
|
|
|
|
|
|
var LeafDoc = require('./src/leafdoc');
|
|
// var doc = new LeafDoc({templateDir: 'templates/yuml', leadingCharacter: '@'});
|
|
var doc = new LeafDoc({});
|
|
|
|
// doc.addFile('src/leafdoc.js');
|
|
doc.addDir('src');
|
|
// doc.addDir('../Leaflet/src/');
|
|
|
|
// console.log('calling outputStr');
|
|
var out = doc.outputStr();
|
|
var json = doc.outputJSON();
|
|
|
|
var fs = require('fs');
|
|
fs.writeFileSync('Leafdoc.html', out);
|
|
fs.writeFileSync('Leafdoc.json', json);
|