diff --git a/docs/build.js b/docs/build.js deleted file mode 100755 index 3af6248c..00000000 --- a/docs/build.js +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env node - -var markdox = require("markdox"); - -var options = { - output: __dirname + "/api.md", - template: __dirname + "/template.md.ejs" -}; - -var files = [ - __dirname + "/../src/browser/starter.js", -]; - -markdox.process(files, options, function() { - console.log("Ok. %s written.", options.output); -}); diff --git a/docs/template.md.ejs b/docs/template.md.ejs deleted file mode 100644 index b03af236..00000000 --- a/docs/template.md.ejs +++ /dev/null @@ -1,107 +0,0 @@ -.]/g, ""); - str = str.replace(/[^a-z0-9_-]+/gi, "-"); - str = str.toLowerCase(); - - return str; -} - -docfiles.forEach(function(doc) -{ - doc.javadoc.forEach(function(comment) - { - var tags = comment.raw.tags; - - comment.tagsByType = comment.raw.tags.reduce(function(result, tag) - { - result[tag.type] = tag; - return result; - }, {}); - - comment.ignore = "ignore" in comment.tagsByType; - - if(comment.name && !comment.ignore) - { - if(comment.isMethod || comment.isFunction) - { - var args = comment.paramTags.map(function(c) - { - return c.joinedTypes + " " + c.name; - }).join(", "); - - var returnVal = ""; - - if(comment.returnTags[0]) - { - returnVal = " -> " + comment.returnTags[0].joinedTypes; - } - comment.args = args; - comment.returnVal = returnVal; - comment.longName = comment.name + "(" + comment.args + ")" + comment.returnVal; - - ?># \n" ?> - -