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
Everything else at the root supports the repo rather than shipping to npm:
83
+
`docs/` (the reference docs), `www/` (the documentation site), `scripts/` (build
84
+
and comparison helpers), and `e2e/` (Playwright tests).
85
+
74
86
### Running the Tool Locally
75
87
76
88
`doc-kit` generates documentation from the Markdown API docs in the [Node.js repository](https://github.com/nodejs/node). To run the tool locally, you need a copy of those source files.
@@ -91,7 +103,7 @@ The steps below will give you a general idea of how to prepare your local enviro
91
103
For fast iteration during development, target a single Markdown file instead of all API docs:
92
104
93
105
```bash
94
-
node bin/cli.mjs generate \
106
+
node packages/core/bin/cli.mjs generate \
95
107
-t legacy-html \
96
108
-i ../node/doc/api/fs.md \
97
109
-o out \
@@ -112,7 +124,7 @@ The steps below will give you a general idea of how to prepare your local enviro
112
124
Add `--log-level debug` before the `generate` subcommand to see the full pipeline trace:
Copy file name to clipboardExpand all lines: docs/commands.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,10 +24,10 @@ Each command consists of:
24
24
25
25
### Step 1: Create the Command File
26
26
27
-
Create a new file in `bin/commands/` with your command name:
27
+
Create a new file in `packages/core/bin/commands/` with your command name:
28
28
29
29
```javascript
30
-
// bin/commands/my-command.mjs
30
+
//packages/core/bin/commands/my-command.mjs
31
31
importloggerfrom'../../src/logger/index.mjs';
32
32
33
33
/**
@@ -53,7 +53,7 @@ export default {
53
53
54
54
### Step 2: Register the Command
55
55
56
-
Add your command to the exports in `bin/commands/index.mjs`:
56
+
Add your command to the exports in `packages/core/bin/commands/index.mjs`:
57
57
58
58
```javascript
59
59
importgeneratefrom'./generate.mjs';
@@ -67,7 +67,7 @@ export default [
67
67
68
68
### Step 3: Update CLI Entry Point
69
69
70
-
The CLI in `bin/cli.mjs` automatically loads commands from `bin/commands/index.mjs`, so no changes are needed there if you followed step 2.
70
+
The CLI in `packages/core/bin/cli.mjs` automatically loads commands from `packages/core/bin/commands/index.mjs`, so no changes are needed there if you followed step 2.
0 commit comments