cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwbro...@apache.org
Subject [11/15] git commit: [lib] Iterate over each directory.
Date Thu, 14 Nov 2013 00:23:02 GMT
[lib] Iterate over each directory.


Project: http://git-wip-us.apache.org/repos/asf/cordova-labs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-labs/commit/dc8ad044
Tree: http://git-wip-us.apache.org/repos/asf/cordova-labs/tree/dc8ad044
Diff: http://git-wip-us.apache.org/repos/asf/cordova-labs/diff/dc8ad044

Branch: refs/heads/doclet
Commit: dc8ad0449a0d7c329366c09543f023b692d81f06
Parents: 125498d
Author: Michael Brooks <michael@michaelbrooks.ca>
Authored: Tue Nov 12 14:51:13 2013 -0800
Committer: Michael Brooks <michael@michaelbrooks.ca>
Committed: Tue Nov 12 14:51:13 2013 -0800

----------------------------------------------------------------------
 lib/doclet/index.js | 10 ++++++++++
 package.json        |  1 +
 2 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/dc8ad044/lib/doclet/index.js
----------------------------------------------------------------------
diff --git a/lib/doclet/index.js b/lib/doclet/index.js
index ec462b2..6f7a917 100644
--- a/lib/doclet/index.js
+++ b/lib/doclet/index.js
@@ -2,6 +2,8 @@
  * Module dependencies.
  */
 
+var dir = require('node-dir');
+
 /**
  * Doclet compiler.
  *
@@ -11,4 +13,12 @@
  */
 
 module.exports.compile = function(path) {
+    // default to current working directory
+    path = path || process.cwd();
+
+    // each file
+    dir.paths(path, function(e, paths) {
+        // parse markdown
+        // render html
+    });
 };

http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/dc8ad044/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 4cce6c6..b98c9f1 100644
--- a/package.json
+++ b/package.json
@@ -23,6 +23,7 @@
         "node": ">=0.10.0"
     },
     "dependencies": {
+        "node-dir": "0.1.5",
         "optimist": "0.6.0",
         "shelljs": "0.2.6"
     },


Mime
View raw message