Skip to content

Commit fb9fcfb

Browse files
committed
Update -h examples, fix reference to streams
1 parent 1357568 commit fb9fcfb

File tree

3 files changed

+41
-28
lines changed

3 files changed

+41
-28
lines changed

README.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,26 +62,28 @@ $ documentation -h
6262
Usage: documentation <command> [options]
6363

6464
Options:
65-
-f, --format output format, of [json, md, html] [default: "json"]
66-
--lint check output for common style and uniformity mistakes
67-
-t, --theme specify a theme: this must be a valid theme module
68-
-p, --private generate documentation tagged as private
69-
--name project name. by default, inferred from package.json
70-
--version project version. by default, inferred from package.json
71-
--shallow shallow mode turns off dependency resolution, only processing
72-
the specified files (or the main script specified in
73-
package.json) [default: false]
74-
--polyglot polyglot mode turns off dependency resolution and enables
75-
multi-language support. use this to document c++
76-
-g, --github infer links to github in documentation
77-
-o, --output output location. omit for stdout, otherwise is a filename for
78-
single-file outputs and a directory name for multi-file
79-
outputs like html [default: "stdout"]
80-
-c, --config configuration file. an array defining explicit sort order
81-
-h, --help Show help
65+
--lint check output for common style and uniformity mistakes
66+
[boolean]
67+
-t, --theme specify a theme: this must be a valid theme module
68+
-p, --private generate documentation tagged as private [boolean]
69+
--version Show version number [boolean]
70+
--name project name. by default, inferred from package.json
71+
--project-version project version. by default, inferred from package.json
72+
--shallow shallow mode turns off dependency resolution, only
73+
processing the specified files (or the main script
74+
specified in package.json) [boolean] [default: false]
75+
--polyglot polyglot mode turns off dependency resolution and enables
76+
multi-language support. use this to document c++ [boolean]
77+
-g, --github infer links to github in documentation [boolean]
78+
-o, --output output location. omit for stdout, otherwise is a filename
79+
for single-file outputs and a directory name for multi-file
80+
outputs like html [default: "stdout"]
81+
-c, --config configuration file. an array defining explicit sort order
82+
-h, --help Show help [boolean]
83+
-f, --format [choices: "json", "md", "html"] [default: "json"]
8284

8385
Examples:
84-
documentation foo.js parse documentation in a given file
86+
documentation foo.js parse documentation in a given file
8587
```
8688

8789
## [Contributing](CONTRIBUTING.md)

docs/FAQ.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ documentation.
3535
* Beatiful defaults for HTML & Markdown output
3636
* Supports CommonJS `require()` syntax so that node modules can be documented
3737
by giving their `main` file
38-
* Expresses source transformations as chainable transform streams
3938
* Heavily documented internally: all public and private functions in `documentation`
4039
are documented. [JSDoc is not well documented internally](https://github.com/jsdoc3/jsdoc/issues/839).
4140
* Robust ES6 support
@@ -46,8 +45,6 @@ documentation.
4645
tasks: separates concerns so that we can focus on a robust solution
4746
* Customization points like plugins & templates are heavily documented and
4847
made to be flexible
49-
* Uses streams & [vinyl](https://github.com/wearefractal/vinyl) to make
50-
output configurable and stdout-friendly.
5148

5249
## Why use `documentation` instead of writing a Markdown file by hand?
5350

docs/USAGE.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,29 @@ $ npm install -g documentation
1010
`-h` to get help.
1111

1212
```sh
13-
$ documentation -h
14-
Usage: bin/documentation.js <command> [options]
13+
Usage: documentation <command> [options]
1514

1615
Options:
17-
-f, --format output format, of [json, md] [default: "json"]
18-
--mdtemplate markdown template: should be a file with Handlebars syntax
19-
-p, --private generate documentation tagged as private
20-
-h, --help Show help
16+
--lint check output for common style and uniformity mistakes
17+
[boolean]
18+
-t, --theme specify a theme: this must be a valid theme module
19+
-p, --private generate documentation tagged as private [boolean]
20+
--version Show version number [boolean]
21+
--name project name. by default, inferred from package.json
22+
--project-version project version. by default, inferred from package.json
23+
--shallow shallow mode turns off dependency resolution, only
24+
processing the specified files (or the main script
25+
specified in package.json) [boolean] [default: false]
26+
--polyglot polyglot mode turns off dependency resolution and enables
27+
multi-language support. use this to document c++ [boolean]
28+
-g, --github infer links to github in documentation [boolean]
29+
-o, --output output location. omit for stdout, otherwise is a filename
30+
for single-file outputs and a directory name for multi-file
31+
outputs like html [default: "stdout"]
32+
-c, --config configuration file. an array defining explicit sort order
33+
-h, --help Show help [boolean]
34+
-f, --format [choices: "json", "md", "html"] [default: "json"]
2135

2236
Examples:
23-
documentation foo.js parse documentation in a given file
37+
documentation foo.js parse documentation in a given file
2438
```

0 commit comments

Comments
 (0)