@@ -76,32 +76,38 @@ human-readable documentation. First run `documentation` with the `-h`
76
76
option for help:
77
77
78
78
``` sh
79
- $ documentation -h
80
- Usage: documentation < command> [options]
79
+ Usage:
80
+
81
+ # generate markdown docs for index.js and files it references
82
+ bin/documentation.js build index.js -f md
83
+
84
+ # generate html docs for all files in src
85
+ bin/documentation.js build src/** -f html -o docs
86
+
87
+ # document index.js, ignoring any files it requires or imports
88
+ bin/documentation.js build index.js -f md --shallow
89
+
90
+ # build, serve, and live-update html docs for app.js
91
+ bin/documentation.js serve app.js
92
+
93
+ # validate JSDoc syntax in util.js
94
+ bin/documentation.js lint util.js
95
+
96
+ # update the API section of README.md with docs from index.js
97
+ bin/documentation.js readme index.js --section=API
98
+
99
+ # build docs for all values exported by index.js
100
+ bin/documentation.js build --document-exported index.js
101
+
102
+ Commands:
103
+ serve [input..] generate, update, and display HTML documentation
104
+ build [input..] build documentation
105
+ lint [input..] check for common style and uniformity mistakes
106
+ readme [input..] inject documentation into your README.md
81
107
82
108
Options:
83
- --lint check output for common style and uniformity mistakes
84
- [boolean]
85
- -t, --theme specify a theme: this must be a valid theme module
86
- -p, --private generate documentation tagged as private [boolean]
87
- --version Show version number [boolean]
88
- --name project name. by default, inferred from package.json
89
- --project-version project version. by default, inferred from package.json
90
- --shallow shallow mode turns off dependency resolution, only
91
- processing the specified files (or the main script
92
- specified in package.json) [boolean] [default: false]
93
- --polyglot polyglot mode turns off dependency resolution and enables
94
- multi-language support. use this to document c++ [boolean]
95
- -g, --github infer links to github in documentation [boolean]
96
- -o, --output output location. omit for stdout, otherwise is a filename
97
- for single-file outputs and a directory name for multi-file
98
- outputs like html [default: " stdout" ]
99
- -c, --config configuration file. an array defining explicit sort order
100
- -h, --help Show help [boolean]
101
- -f, --format [choices: " json" , " md" , " html" ] [default: " json" ]
102
-
103
- Examples:
104
- documentation foo.js parse documentation in a given file
109
+ --version Show version number [boolean]
110
+ --help Show help [boolean]
105
111
```
106
112
107
113
## [ Contributing] ( CONTRIBUTING.md )
0 commit comments