Skip to content
Browse files

Rename template to skin, add keepOutDir, bump

  • Loading branch information...
1 parent b0ff8f0 commit 6f6c581791806074129974c6071098ef8a9aec03 @gjtorikian committed Aug 30, 2012
Showing with 9 additions and 8 deletions.
  1. +2 −1 README.md
  2. +1 −1 bin/panda-docs
  3. +5 −5 lib/cli.js
  4. +1 −1 package.json
View
3 README.md
@@ -86,11 +86,12 @@ There are a number of arguments you can pass to Panda that affect the entire bui
* `-o PATH`, `--output PATH` Resulting file(s) location [out]
* `-oa PATH`, `--outputAssets PATH` Resulting file(s) location for assets [out/assets]
* `-t `STRING`, `--title STRING` Title of the index page [Panda: Default Title Here]
-* `--template PATH` The location of your primary Jade template [./templates/default/layout.jade]
+* `--skin PATH` The location of your primary Jade template [./templates/default/layout.jade]
* `--assets PATH` The location of your asset files (CSS, Javascript, e.t.c.) [./templates/default/assets]
* `-d`, `--disableTests` Disables the test suite that runs at the end of an HTML build. This is NOT recommended.
* `--keepFirstHeader` If set, keeps the first header (<h1>) detected
* `--baseUrl STRING ` Base url of all links [./]
+* `--keepOutDir` Does not wipe output directory before building (defaults to `false`)
## Jade Templates
View
2 bin/panda-docs
@@ -34,7 +34,7 @@ panda_docs.make = exports.make = function(manifestFile, args, callback) {
manifests = [];
- if (options.removeOutDir) {
+ if (!options.keepOutDir) {
wrench.rmdirSyncRecursive(destDir, true);
}
View
10 lib/cli.js
@@ -24,11 +24,11 @@ cli.addArgument(['-oa', '--outputAssets'], {
defaultValue: 'out/assets'
});
-cli.addArgument(['--removeOutDir'], {
- help: 'Remove output dir before building',
- dest: 'removeOutDir',
+cli.addArgument(['--keepOutDir'], {
+ help: 'Does not wipe output directory before building',
+ dest: 'keepOutDir',
action: 'storeTrue',
- defaultValue: true
+ defaultValue: false
});
cli.addArgument(['-t', '--title'], {
@@ -38,7 +38,7 @@ cli.addArgument(['-t', '--title'], {
defaultValue: 'Panda: Default Title Here'
});
-cli.addArgument(['--template'], {
+cli.addArgument(['--skin'], {
help: 'The location of your primary Jade template [./templates/default/layout.jade]',
dest: 'template',
metavar: 'PATH',
View
2 package.json
@@ -1,6 +1,6 @@
{
"name": "panda-docs",
- "version": "0.3.16",
+ "version": "0.3.17",
"author": "Garen Torikian",
"keywords": ["documentation", "docs", "markdown"],
"description": "A complete documentation generation tool for Markdown files",

0 comments on commit 6f6c581

Please sign in to comment.
Something went wrong with that request. Please try again.