Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
Assets dir is unrequired
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Oct 10, 2012
1 parent f8f2f5a commit 31f153e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
8 changes: 6 additions & 2 deletions bin/panda-docs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -67,9 +67,13 @@ panda_docs.make = exports.make = function(manifestFile, args, callback) {
}); });
}, },
function(cb) { function(cb) {
panda.copyAssets(options.assets, options.outputAssets, function() { if (options.assets) {
panda.copyAssets(options.assets, options.outputAssets, function() {
cb(null);
});
}
else
cb(null); cb(null);
});
}, },
function(cb) { function(cb) {
panda.copyResources(options.output, function() { panda.copyResources(options.output, function() {
Expand Down
3 changes: 1 addition & 2 deletions lib/cli.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ cli.addArgument(['--skin'], {
cli.addArgument(['--assets'], { cli.addArgument(['--assets'], {
help: 'The location of your asset files (CSS, Javascript, e.t.c.) [./templates/default/assets]', help: 'The location of your asset files (CSS, Javascript, e.t.c.) [./templates/default/assets]',
dest: 'assets', dest: 'assets',
metavar: 'PATH', metavar: 'PATH'
defaultValue: './templates/default/assets'
}); });


cli.addArgument(['-d', '--disableTests'], { cli.addArgument(['-d', '--disableTests'], {
Expand Down
2 changes: 1 addition & 1 deletion lib/version.js
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
'use strict'; 'use strict';


// Shortcut to current Panino's version from the package.json // Shortcut to current Panda's version from the package.json
module.exports = require('../package.json').version; module.exports = require('../package.json').version;
2 changes: 1 addition & 1 deletion package.json
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
{ {
"name": "panda-docs", "name": "panda-docs",
"version": "0.3.19", "version": "0.3.20",
"author": "Garen Torikian", "author": "Garen Torikian",
"keywords": ["documentation", "docs", "markdown"], "keywords": ["documentation", "docs", "markdown"],
"description": "A complete documentation generation tool for Markdown files", "description": "A complete documentation generation tool for Markdown files",
Expand Down

0 comments on commit 31f153e

Please sign in to comment.