Skip to content

Commit fa9e45b

Browse files
authored
chore: Change typedoc setup to use monorepo. (#261)
1 parent b0bd120 commit fa9e45b

File tree

29 files changed

+96
-39
lines changed

29 files changed

+96
-39
lines changed

actions/ci/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ runs:
4040

4141
- name: Build Docs
4242
shell: bash
43-
run: yarn workspace ${{ inputs.workspace_name }} doc
43+
run: yarn build:doc -- ${{ inputs.workspace_path }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"clean": "yarn workspaces foreach -pt run clean",
2222
"build": "yarn workspaces foreach -p --topological-dev run build",
2323
"//": "When using build:doc you need to specify the workspace. 'yarn run build:doc packages/shared/common' for example.",
24-
"build:doc": "./scripts/build-doc.sh $1",
24+
"build:doc": "npx typedoc --options $1/typedoc.json",
2525
"lint": "npx eslint . --ext .ts",
2626
"lint:fix": "yarn run lint -- --fix",
2727
"test": "echo Please run tests for individual packages.",
@@ -43,7 +43,7 @@
4343
"eslint-plugin-import": "^2.27.5",
4444
"eslint-plugin-prettier": "^5.0.0",
4545
"prettier": "^3.0.0",
46-
"typedoc": "0.24.8",
46+
"typedoc": "0.25.0",
4747
"typescript": "5.1.6"
4848
},
4949
"packageManager": "[email protected]"

packages/sdk/akamai-base/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"dist"
3636
],
3737
"scripts": {
38-
"doc": "npx typedoc --name \"$(../../../scripts/doc-name.sh .)\" --readme none --entryPointStrategy resolve src/index.ts",
3938
"build": "rollup -c rollup.config.js && ../../../scripts/replace-version.sh .",
4039
"clean": "rimraf dist",
4140
"tsw": "yarn tsc --watch",
@@ -69,7 +68,7 @@
6968
"rollup": "^3.23.0",
7069
"rollup-plugin-generate-package-json": "^3.2.0",
7170
"ts-jest": "^29.1.0",
72-
"typedoc": "0.24.8",
71+
"typedoc": "0.25.0",
7372
"typescript": "5.1.6"
7473
},
7574
"dependencies": {
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": ["../../../typedoc.base.json"],
3+
"entryPoints": ["src/index.ts"],
4+
"out": "docs"
5+
}

packages/sdk/akamai-edgekv/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"dist"
3636
],
3737
"scripts": {
38-
"doc": "npx typedoc --name \"$(../../../scripts/doc-name.sh .)\" --readme none --entryPointStrategy resolve src/index.ts",
3938
"build": "rollup -c rollup.config.js && ../../../scripts/replace-version.sh .",
4039
"clean": "rimraf dist",
4140
"tsw": "yarn tsc --watch",
@@ -69,7 +68,7 @@
6968
"rollup": "^3.23.0",
7069
"rollup-plugin-generate-package-json": "^3.2.0",
7170
"ts-jest": "^29.1.0",
72-
"typedoc": "0.24.8",
71+
"typedoc": "0.25.0",
7372
"typescript": "5.1.6"
7473
},
7574
"dependencies": {
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": ["../../../typedoc.base.json"],
3+
"entryPoints": ["src/index.ts"],
4+
"out": "docs"
5+
}

packages/sdk/cloudflare/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"dist"
2727
],
2828
"scripts": {
29-
"doc": "../../../scripts/build-doc.sh .",
3029
"build": "../../../scripts/build-package.sh",
3130
"clean": "rimraf dist",
3231
"tsw": "yarn tsc --watch",
@@ -60,7 +59,7 @@
6059
"prettier": "^3.0.0",
6160
"rimraf": "^5.0.0",
6261
"ts-jest": "^29.1.0",
63-
"typedoc": "0.24.8",
62+
"typedoc": "0.25.0",
6463
"typescript": "5.1.6"
6564
}
6665
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": ["../../../typedoc.base.json"],
3+
"entryPoints": ["src/index.ts"],
4+
"out": "docs"
5+
}

packages/sdk/server-node/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"client"
3737
],
3838
"scripts": {
39-
"doc": "../../../scripts/build-doc.sh .",
4039
"clean": "npx tsc --build --clean",
4140
"//": "We run the tests in-band because the FS tests work best sequential.",
4241
"test": "npx jest --ci --runInBand",
@@ -65,7 +64,7 @@
6564
"launchdarkly-js-test-helpers": "^2.2.0",
6665
"prettier": "^3.0.0",
6766
"ts-jest": "^29.0.5",
68-
"typedoc": "0.24.8",
67+
"typedoc": "0.25.0",
6968
"typescript": "5.1.6"
7069
}
7170
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": ["../../../typedoc.base.json"],
3+
"entryPoints": ["src/index.ts"],
4+
"out": "docs"
5+
}

0 commit comments

Comments
 (0)