adding more examples and updating the docs

This commit is contained in:
Jason Salzman
2016-10-06 16:12:34 -07:00
parent 91a74e96cc
commit 5d9a12f58f
20 changed files with 10286 additions and 2538 deletions
+2
View File
@@ -25,6 +25,7 @@ process.stdin.on('end', function() {
function buildDocs(api) {
// api is an object keyed by filepath. We use the file name as component name.
for (var filepath in api) {
process.stdout.write(filepath + '\n\n');
var name = getComponentName(filepath);
var markdown = generateMarkdown(name, api[filepath]);
var outputLocation = './docs/';
@@ -37,6 +38,7 @@ function getComponentName(filepath) {
var name = path.basename(filepath);
var ext;
while ((ext = path.extname(name))) {
process.stdout.write(name + '\n\n');
name = name.substring(0, name.length - ext.length);
}
return name;