Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 70D341050A for ; Thu, 14 Nov 2013 00:22:53 +0000 (UTC) Received: (qmail 33670 invoked by uid 500); 14 Nov 2013 00:22:52 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 33613 invoked by uid 500); 14 Nov 2013 00:22:52 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 33298 invoked by uid 99); 14 Nov 2013 00:22:52 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Nov 2013 00:22:52 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 669A38A8D69; Thu, 14 Nov 2013 00:22:52 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mwbrooks@apache.org To: commits@cordova.apache.org Date: Thu, 14 Nov 2013 00:23:02 -0000 Message-Id: <2985488ba2954d5687ef4255cbba3fad@git.apache.org> In-Reply-To: <114285012feb4d99850ae58aaac9a9aa@git.apache.org> References: <114285012feb4d99850ae58aaac9a9aa@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [11/15] git commit: [lib] Iterate over each directory. [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 Authored: Tue Nov 12 14:51:13 2013 -0800 Committer: Michael Brooks 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" },