styledocco
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -22,3 +22,3 @@ (function() { | ||
options = optimist.usage('Usage: $0 [options] [INPUT]').describe('name', 'Name of the project').alias('n', 'name').demand('name').describe('out', 'Output directory').alias('o', 'out')["default"]('out', 'docs').describe('tmpl', 'Template directory')["default"]('tmpl', "" + __dirname + "/../resources/").describe('overwrite', 'Overwrite existing files in target dir').boolean('overwrite').argv; | ||
options = optimist.usage('Usage: $0 [options] [INPUT]').describe('name', 'Name of the project').alias('n', 'name').demand('name').describe('out', 'Output directory').alias('o', 'out')["default"]('out', 'docs').describe('tmpl', 'Template directory')["default"]('tmpl', path.resolve(__dirname, '../resources/')).describe('nocss', 'Hide CSS code pane').boolean('nocss')["default"]('nocss', false).describe('overwrite', 'Overwrite existing files in target dir').boolean('overwrite')["default"]('overwrite', false).argv; | ||
@@ -65,3 +65,4 @@ options["in"] = options._[0] || './'; | ||
menu: menu, | ||
root: _.buildRootPath(source) | ||
root: _.buildRootPath(source), | ||
nocss: options.nocss | ||
}; | ||
@@ -150,3 +151,3 @@ render = function(data) { | ||
if (options.overwrite || !path.existsSync(cssPath)) { | ||
fs.writeFileSync(cssPath, fs.readFileSync(__dirname + '/../resources/docs.css', 'utf-8')); | ||
fs.writeFileSync(cssPath, fs.readFileSync(path.join(options.tmpl, 'docs.css'), 'utf-8')); | ||
console.log("styledocco: writing " + (path.join(options.out, 'docs.css'))); | ||
@@ -153,0 +154,0 @@ } |
@@ -9,3 +9,3 @@ { | ||
"author": "Jacob Rask <jacob@jacobrask.net>", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"homepage": "http://jacobrask.github.com/styledocco/", | ||
@@ -12,0 +12,0 @@ "licenses": [ |
@@ -39,4 +39,5 @@ ``` | ||
* `--out`, `-o` Output directory *(default: "docs")* | ||
* `--tmpl` Directory for custom `docs.jade` template *(optional)* | ||
* `--overwrite` Overwrite existing files (`docs.css`) in target directory. | ||
* `--tmpl` Directory for custom `docs.jade` and `docs.css` *(optional)* | ||
* `--nocss` Hide CSS code pane. *(default: false)* | ||
* `--overwrite` Overwrite existing files (`docs.css`) in target directory. *(default: false)* | ||
@@ -62,2 +63,2 @@ | ||
A lot of the heavy lifting in StyleDocco is done by the excellent [Marked](https://github.com/chjj/marked) module by Christopher Jeffrey. The original [Docco](https://github.com/jashkenas/docco) by Jeremy Ashkenas and [Docco Husky](https://github.com/mbrevoort/docco-husky) by Mike Brevoort were also of great help to this project. | ||
A lot of the heavy lifting in StyleDocco is done by the excellent [Marked](https://github.com/chjj/marked) module by Christopher Jeffrey. The original [Docco](https://github.com/jashkenas/docco) by Jeremy Ashkenas and [Docco Husky](https://github.com/mbrevoort/docco-husky) by Mike Brevoort were also of great help to this project. StyleDocco was also inspired by [Knyle Style Sheets](https://github.com/kneath/kss), a similar project written in Ruby. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
260149
49
1516
63