Skip to content

Commit 9b23414

Browse files
authored
build: write all docs for workspace packages (#2533)
1 parent 98dbd4e commit 9b23414

File tree

12 files changed

+20
-26
lines changed

12 files changed

+20
-26
lines changed

.claude/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"Bash(npm install)",
3131
"Bash(npm install:*)",
3232
"Bash(npm run build:*)",
33+
"Bash(npm run docs:*)",
3334
"Bash(npm run lint:*)",
3435
"Bash(npm run lint:fix:*)",
3536
"Bash(npm show:*)",

.github/maintainers_guide.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,13 @@ Remove cached project dependencies with `rm -r node_modules package-lock.json` b
7777

7878
The reference docs for each package is independent of the others. They're generated using the `typedoc` and `typedoc-plugin-markdown` packages with the configurations of the package's `typedoc.json` file.
7979

80-
Each package has a script to these generate reference docs. For example:
80+
Generate reference docs for all packages:
81+
82+
```sh
83+
npm run docs
84+
```
85+
86+
Or generate docs for a specific package. For example:
8187

8288
```sh
8389
npm run docs --workspace packages/web-api

.github/workflows/ci-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
npm run build --workspace=@slack/socket-mode
6262
- name: Lint
6363
run: npm run lint
64+
- name: Build docs
65+
run: npm run docs
6466
- name: Run tests (Node 18/20)
6567
if: matrix.node-version != '22.x'
6668
shell: bash

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
],
2121
"scripts": {
2222
"changeset": "npx @changesets/cli",
23+
"docs": "npm run docs --workspaces --if-present",
2324
"lint": "npx @biomejs/biome check packages",
2425
"lint:fix": "npx @biomejs/biome check --write packages",
2526
"test": "npm test --workspaces --if-present"
@@ -30,6 +31,8 @@
3031
"@types/node": "^18.19.130",
3132
"shx": "^0.4.0",
3233
"tsx": "^4.20.6",
34+
"typedoc": "^0.28.7",
35+
"typedoc-plugin-markdown": "^4.7.1",
3336
"typescript": "5.9.3"
3437
}
3538
}

packages/cli-test/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
"devDependencies": {
4444
"@types/sinon": "^21.0.0",
4545
"cross-env": "^10.0.0",
46-
"sinon": "^21.0.0",
47-
"typedoc": "^0.28.7",
48-
"typedoc-plugin-markdown": "^4.7.1"
46+
"sinon": "^21.0.0"
4947
}
5048
}

packages/logger/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,5 @@
3939
},
4040
"dependencies": {
4141
"@types/node": ">=18"
42-
},
43-
"devDependencies": {
44-
"typedoc": "^0.28.7",
45-
"typedoc-plugin-markdown": "^4.7.1"
4642
}
4743
}

packages/oauth/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@
5050
"devDependencies": {
5151
"@types/sinon": "^21",
5252
"rewiremock": "^3",
53-
"sinon": "^21",
54-
"typedoc": "^0.28.7",
55-
"typedoc-plugin-markdown": "^4.7.0"
53+
"sinon": "^21"
5654
}
5755
}

packages/rtm-api/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@
5757
"devDependencies": {
5858
"@types/sinon": "^17",
5959
"@types/ws": "^8",
60-
"sinon": "^21",
61-
"typedoc": "^0.28.7",
62-
"typedoc-plugin-markdown": "^4.7.1"
60+
"sinon": "^21"
6361
}
6462
}

packages/socket-mode/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@
6262
"@types/sinon": "^21",
6363
"nodemon": "^3.1.0",
6464
"proxyquire": "^2.1.3",
65-
"sinon": "^21",
66-
"typedoc": "^0.28.7",
67-
"typedoc-plugin-markdown": "^4.7.0"
65+
"sinon": "^21"
6866
}
6967
}

packages/types/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@
3939
"test:types": "tsd"
4040
},
4141
"devDependencies": {
42-
"tsd": "^0.33.0",
43-
"typedoc": "^0.28.7",
44-
"typedoc-plugin-markdown": "^4.7.1"
42+
"tsd": "^0.33.0"
4543
},
4644
"tsd": {
4745
"directory": "test"

0 commit comments

Comments
 (0)