Skip to content

Commit ae149ed

Browse files
authored
Merge pull request #7694 from IgniteUI/typedoc-build-docs
fix(typedoc): pass typedoc options properly
2 parents df73766 + b12e1f7 commit ae149ed

File tree

3 files changed

+107
-41
lines changed

3 files changed

+107
-41
lines changed

gulpfile.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ module.exports.copySchematics = (cb) => {
135135
};
136136

137137
const typedocBuildTheme = (cb) => {
138-
spawnSync(`typedoc`, [TYPEDOC.PROJECT_PATH], { stdio: 'inherit', shell: true });
138+
spawnSync(`typedoc`, [TYPEDOC.PROJECT_PATH,
139+
"--tsconfig",
140+
"tsconfig.base.json"], { stdio: 'inherit', shell: true });
139141
cb();
140142
};
141143
typedocBuildTheme.displayName = 'typedoc-build:theme';
@@ -208,7 +210,9 @@ function typedocBuildDocsJA (cb) {
208210
TYPEDOC.TEMPLATE_STRINGS_PATH,
209211
'--warns',
210212
'--localize',
211-
'jp'], { stdio: 'inherit', shell: true });
213+
'jp',
214+
"--tsconfig",
215+
"tsconfig.base.json"], { stdio: 'inherit', shell: true });
212216

213217
cb();
214218
}
@@ -217,7 +221,9 @@ function typedocBuildDocsEN (cb) {
217221
spawnSync('typedoc', [
218222
TYPEDOC.PROJECT_PATH,
219223
'--localize',
220-
'en'], { stdio: 'inherit', shell: true});
224+
'en',
225+
"--tsconfig",
226+
"tsconfig.base.json"], { stdio: 'inherit', shell: true});
221227

222228
cb();
223229
}

package-lock.json

+95-35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"build:style": "gulp buildStyle",
2626
"build:migration": "gulp copyMigrations && tsc --listEmittedFiles --project ./projects/igniteui-angular/migrations/tsconfig.json",
2727
"build:schematics": "gulp copySchematics && tsc --listEmittedFiles --project ./projects/igniteui-angular/schematics/tsconfig.json",
28-
"build:docs": "sassdoc projects/igniteui-angular/src/lib/core/styles && gulp typedocBuildTheme",
28+
"build:docs": "sassdoc projects/igniteui-angular/src/lib/core/styles && gulp typedoc-build:theme",
2929
"lint:lib": "ng lint && stylelint \"projects/igniteui-angular/src/lib/core/styles\"",
3030
"typedoc:dev": "gulp typedocServe",
3131
"typedoc-build:export": "gulp exportTypedocJson ",
@@ -93,7 +93,7 @@
9393
"gulp-util": "^3.0.8",
9494
"hammer-simulator": "0.0.1",
9595
"igniteui-sassdoc-theme": "^1.1.2",
96-
"igniteui-typedoc-theme": "^1.3.5",
96+
"igniteui-typedoc-theme": "^1.3.6",
9797
"jasmine": "~3.5.0",
9898
"jasmine-core": "~3.5.0",
9999
"jasmine-spec-reporter": "~5.0.2",
@@ -116,7 +116,7 @@
116116
"themeleon": "^3.0.2",
117117
"ts-node": "~7.0.1",
118118
"tslint": "~6.1.0",
119-
"typedoc": "^0.16.9",
119+
"typedoc": "^0.17.7",
120120
"typedoc-plugin-localization": "^2.2.1",
121121
"typescript": "~3.9.3",
122122
"webpack-sources": "1.3.0"

0 commit comments

Comments
 (0)