You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<img src="https://www.bestpractices.dev/projects/29/badge" alt="CII Best Practices badge">
@@ -35,6 +35,10 @@ Local invocation:
35
35
$ npx doc-kit --help
36
36
```
37
37
38
+
```sh
39
+
$ node bin/cli.mjs --help
40
+
```
41
+
38
42
```
39
43
Usage: @nodejs/doc-kit [options] [command]
40
44
@@ -78,3 +82,38 @@ Launch guided CLI wizard
78
82
Options:
79
83
-h, --help display help for command
80
84
```
85
+
86
+
## Examples
87
+
88
+
### Legacy
89
+
90
+
To generate a 1:1 match with the [legacy tooling](https://github.com/nodejs/node/tree/main/tools/doc), use the `legacy-html`, `legacy-json`, `legacy-html-all`, and `legacy-json-all` generators.
91
+
92
+
```sh
93
+
npx doc-kit generate \
94
+
-t legacy-html \
95
+
-t legacy-json \
96
+
-i "path/to/node/doc/api/*.md" \
97
+
-o out \
98
+
--index path/to/node/doc/api/index.md
99
+
```
100
+
101
+
### Redesigned
102
+
103
+
To generate [our redesigned documentation pages](https://nodejs-api-doc-tooling.vercel.app), use the `web` and `orama-db` (for search) generators.
104
+
105
+
```sh
106
+
npx doc-kit generate \
107
+
-t web \
108
+
-t orama-db \
109
+
-i "path/to/node/doc/api/*.md" \
110
+
-o out \
111
+
--index path/to/node/doc/api/index.md
112
+
```
113
+
114
+
> [!TIP]
115
+
> In order to use the search functionality, you _must_ serve the output directory.
0 commit comments