Skip to content

Commit 5ca053a

Browse files
committed
build: update recipe for typedoc generation
1 parent 4f4692c commit 5ca053a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

etc/typedoc/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"allowUnreachableCode": false,
66
"allowUnusedLabels": false,
77
"alwaysStrict": true,
8-
"baseUrl": "lib/node_modules",
8+
"baseUrl": "./../../lib/node_modules",
99
"checkJs": true,
1010
"forceConsistentCasingInFileNames": true,
1111
"keyofStringsOnly": false,
@@ -30,7 +30,7 @@
3030
"strictNullChecks": true,
3131
"suppressExcessPropertyErrors": false,
3232
"suppressImplicitAnyIndexErrors": false,
33-
"typeRoots": [ "." ],
33+
"typeRoots": [ "./../../" ],
3434
"types": []
3535
},
3636
"include": [

tools/make/lib/docs/typedoc.mk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,22 @@ TYPEDOC_HTML ?= $(TYPEDOC_HTML_OUT)/index.html
4444

4545
# Define command-line options to be used when invoking the TypeDoc executable to generate HTML documentation:
4646
TYPEDOC_HTML_FLAGS ?= \
47+
--mode modules \
48+
--target es6 \
49+
--module commonjs \
4750
--options $(TYPEDOC_CONF) \
4851
--tsconfig $(TYPEDOC_TSCONFIG) \
52+
--ignoreCompilerErrors \
4953
--excludeExternals \
5054
--excludePrivate \
5155
--excludeProtected \
56+
--includeDeclarations \
5257
--exclude '{**/*test*,**/test*.ts,**/*.js,**/*test.ts}' \
5358
--name stdlib \
5459
--theme $(CONFIG_DIR)/typedoc/theme/ \
5560
--hideGenerator \
5661
--readme $(CONFIG_DIR)/typedoc/index.md \
62+
--gaID 'UA-105890493-1' \
5763
--out $(TYPEDOC_HTML_OUT)
5864

5965
# Define command-line options to be used when invoking the TypeDoc executable to generate TypeDoc JSON:
@@ -64,6 +70,7 @@ TYPEDOC_JSON_FLAGS ?= \
6470
--excludePrivate \
6571
--excludeProtected \
6672
--exclude '{**/*test*,**/test*.ts,**/*.js,**/*test.ts}' \
73+
--packages $(SRC_DIR) \
6774
--name stdlib \
6875
--json $(TYPEDOC_JSON)
6976

0 commit comments

Comments
 (0)