Skip to content

Commit af6f473

Browse files
committed
refactor: further improving and cleaning up typedocs config
1 parent 8fc8295 commit af6f473

File tree

2 files changed

+45
-19
lines changed

2 files changed

+45
-19
lines changed

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"clean": "rimraf dist",
3939
"build": "npm run clean && NODE_ENV=production rollup -c",
4040
"build:types": "rimraf dist/typings && tsc --declaration --noEmit false --emitDeclarationOnly true --allowJs false",
41-
"docs:build": "typedoc --options typedoc.json",
41+
"docs:build": "typedoc",
4242
"docs:dev": "npm run docs:build -- --watch",
4343
"docs:publish": "npm run build:docs && ./node_modules/contentful-sdk-jsdoc/bin/publish-docs.sh contentful-management.js contentful-management",
4444
"lint": "eslint lib test",
@@ -74,10 +74,7 @@
7474
"axios": "^1.12.2",
7575
"contentful-sdk-core": "^9.2.1",
7676
"fast-copy": "^3.0.0",
77-
"globals": "^15.15.0",
78-
"typedoc-github-theme": "^0.2.1",
79-
"typedoc-plugin-markdown": "^4.4.2",
80-
"typedoc-plugin-missing-exports": "^3.1.0"
77+
"globals": "^15.15.0"
8178
},
8279
"devDependencies": {
8380
"@contentful/integration-test-utils": "^2.0.1",
@@ -116,7 +113,9 @@
116113
"semantic-release": "^25.0.2",
117114
"size-limit": "^11.1.6",
118115
"type-fest": "^4.18.3",
119-
"typedoc": "^0.27.9",
116+
"typedoc": "^0.28.1",
117+
"typedoc-github-theme": "^0.2.1",
118+
"typedoc-plugin-missing-exports": "^3.1.0",
120119
"typescript": "^5.6.3",
121120
"typescript-eslint": "^8.16.0",
122121
"vitest": "^2.1.5"

typedoc.json

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,55 @@
22
"name": "contentful-management.js",
33
"entryPoints": [
44
"lib/contentful-management.ts",
5-
"lib/plain/plain-client.ts",
6-
"lib/plain/wrappers/wrap.ts",
7-
"lib/contentful-management.ts",
8-
"lib/create-adapter.ts",
9-
"lib/create-contentful-api.ts",
10-
"lib/entities/app-action.ts",
11-
"lib/entities/environment-template-installation.ts"
5+
// "lib/plain/plain-client.ts",
6+
// "lib/plain/wrappers/wrap.ts",
7+
// "lib/contentful-management.ts",
8+
// "lib/create-adapter.ts",
9+
// "lib/create-contentful-api.ts",
10+
// "lib/entities/app-action.ts",
11+
// "lib/entities/environment-template-installation.ts"
1212
],
1313
"out": "out",
1414
"includeVersion": true,
15-
"categorizeByGroup": true,
16-
"categoryOrder": ["Core", "Clients", "Entities", "Utilities", "*"],
15+
// "categorizeByGroup": true,
16+
// "categoryOrder": ["Core", "Clients", "Entities", "Utilities", "*"],
17+
"categoryOrder": ["createClient", "ClientParams", "ContentType", "Entry", "*"],
18+
// "groupOrder": ["Variables", "Functions", "*"],
19+
"kindSortOrder": [
20+
"Reference",
21+
"Project",
22+
"Module",
23+
"Namespace",
24+
"Constructor",
25+
"Property",
26+
"Function",
27+
"Enum",
28+
"EnumMember",
29+
"Class",
30+
"Interface",
31+
"TypeAlias",
32+
"Variable",
33+
"Accessor",
34+
"Method",
35+
"Parameter",
36+
"TypeParameter",
37+
"TypeLiteral",
38+
"CallSignature",
39+
"ConstructorSignature",
40+
"IndexSignature",
41+
"GetSignature",
42+
"SetSignature"
43+
],
44+
"sortEntryPoints": false,
1745
"readme": "README.md",
1846
"excludePrivate": false,
1947
"excludeInternal": false,
2048
"excludeProtected": false,
21-
"treatWarningsAsErrors": true,
49+
"treatWarningsAsErrors": false,
2250
"sort": ["source-order"],
2351
"plugin": [
2452
"typedoc-plugin-missing-exports",
2553
"typedoc-github-theme"
26-
//"typedoc-plugin-markdown"
2754
],
28-
"theme": "typedoc-github-theme"
29-
}
55+
"hideGenerator": true,
56+
}

0 commit comments

Comments
 (0)