Skip to content

Commit 28fc87a

Browse files
committed
build(sassdoc): merge theming and local sass
1 parent 02ee5c1 commit 28fc87a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

gulpfile.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,10 @@ function typedocBuildDocsEN(cb) {
248248
}
249249

250250
const SASSDOC = {
251-
PROJECT_PATH: path.join(__dirname, 'projects', 'igniteui-angular', 'src', 'lib', 'core', 'styles'),
251+
PROJECT_PATHS: [
252+
`${path.join(__dirname, 'projects', 'igniteui-angular', 'src', 'lib', 'core', 'styles')}/**/*.scss`,
253+
`${path.join(__dirname, 'node_modules', 'igniteui-theming', 'sass')}/**/*.scss`
254+
],
252255
DEST: path.join(DOCS_OUTPUT_PATH, 'sass'),
253256
OPTIONS: path.join(__dirname, '.sassdocrc'),
254257
};
@@ -266,7 +269,7 @@ function sassdocBuildJson(cb) {
266269
options.convert = convert;
267270
options.exportDir = exportDir;
268271

269-
gulp.src(`${SASSDOC.PROJECT_PATH}/**/*.scss`)
272+
gulp.src(SASSDOC.PROJECT_PATHS)
270273
.pipe(sassdoc(options));
271274

272275
cb();
@@ -282,7 +285,7 @@ function sassdocImportJson(cb) {
282285
options.json_dir = importDir;
283286
options.shellStringsPath = path.join(__dirname, 'extras', 'template', 'strings', 'shell-strings.json');
284287

285-
gulp.src(`${SASSDOC.PROJECT_PATH}/**/*.scss`)
288+
gulp.src(SASSDOC.PROJECT_PATHS)
286289
.pipe(sassdoc(options));
287290

288291
cb();
@@ -297,7 +300,7 @@ function sassdocBuildJA(cb) {
297300
options.json_dir = pathTranslations;
298301
options.shellStringsPath = path.join(__dirname, 'extras', 'template', 'strings', 'shell-strings.json');
299302

300-
gulp.src(`${SASSDOC.PROJECT_PATH}/**/*.scss`)
303+
gulp.src(SASSDOC.PROJECT_PATHS)
301304
.pipe(sassdoc(options));
302305

303306
cb();
@@ -309,7 +312,7 @@ function sassdocBuildEN(cb) {
309312
options.lang = 'en';
310313
options.shellStringsPath = path.join(__dirname, 'extras', 'template', 'strings', 'shell-strings.json');
311314

312-
gulp.src(`${SASSDOC.PROJECT_PATH}/**/*.scss`)
315+
gulp.src(SASSDOC.PROJECT_PATHS)
313316
.pipe(sassdoc(options));
314317

315318
cb();

0 commit comments

Comments
 (0)