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
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.
90
+
To generate a 1:1 match with the [legacy tooling](https://github.com/nodejs/node/tree/main/tools/doc), use the generators from the [`@doc-kittens/legacy`](packages/legacy) package.
91
91
92
92
```sh
93
93
npx doc-kit generate \
94
-
-t @node-core/doc-kit/generators/legacy-html \
95
-
-t @node-core/doc-kit/generators/legacy-json \
94
+
-t @doc-kittens/legacy/html \
95
+
-t @doc-kittens/legacy/json \
96
96
-i "path/to/node/doc/api/*.md" \
97
97
-o out \
98
98
--index path/to/node/doc/api/index.md
@@ -104,8 +104,8 @@ To generate [our redesigned documentation pages](https://nodejs-api-docs-tooling
@@ -130,7 +138,7 @@ function transformToMyFormat(entries, version) {
130
138
131
139
### Step 4: Register the Generator
132
140
133
-
Add an entry to the `exports` map in `packages/core/package.json`. If you follow the `index.mjs` convention, the wildcard pattern `"./generators/*": "./src/generators/*/index.mjs"` handles this automatically — no changes needed.
141
+
Add a short subpath entry to the `exports` map in your package's `package.json`, e.g. `"./my-format": "./src/generators/my-format/index.mjs"`. The `./src/*` wildcard already exposes utilities and types under the longer path form for cross-package imports.
134
142
135
143
## Parallel Processing with Workers
136
144
@@ -139,11 +147,11 @@ For generators processing large datasets, implement parallel processing using wo
0 commit comments