@@ -273,11 +273,6 @@ gulp.task('sassdoc-build', [
273
273
'sassdoc-js'
274
274
] )
275
275
276
- const TRANSLATIONS_REPO = {
277
- NAME : 'igniteui-angular-api-i18n' ,
278
- LINK : `https://github.com/IgniteUI/igniteui-angular-api-i18n`
279
- } ;
280
-
281
276
const DOCS_OUTPUT_PATH = path . join ( __dirname , 'dist' , 'igniteui-angular' , 'docs' ) ;
282
277
283
278
const TYPEDOC = {
@@ -298,28 +293,20 @@ gulp.task('typedoc-build:import', ['typedoc-build'],
298
293
shell . task ( `typedoc ${ TYPEDOC . PROJECT_PATH } --generate-from-json ${ TYPEDOC . EXPORT_JSON_PATH } ` )
299
294
) ;
300
295
301
- gulp . task ( 'clean-translations:localization:repo' , ( ) => {
302
- del . sync ( `${ DOCS_OUTPUT_PATH } /${ TRANSLATIONS_REPO . NAME } ` )
303
- } ) ;
304
-
305
296
gulp . task ( 'create:docs-output-path' , ( ) => {
306
297
! fs . existsSync ( DOCS_OUTPUT_PATH ) && fs . mkdirSync ( DOCS_OUTPUT_PATH ) ;
307
298
} ) ;
308
299
309
- gulp . task ( 'copy-translations:localization:repo' , [ 'clean-translations:localization:repo' , 'create:docs-output-path' ] ,
310
- shell . task ( `git -C ${ DOCS_OUTPUT_PATH } clone ${ TRANSLATIONS_REPO . LINK } ` )
311
- ) ;
312
-
313
300
gulp . task ( 'typedoc:clean-docs-dir' , ( ) => {
314
301
del . sync ( `${ DOCS_OUTPUT_PATH } typescript` )
315
302
} ) ;
316
303
317
- gulp . task ( 'typedoc-build:doc:ja:localization' , [ 'typedoc-build' , 'typedoc:clean- docs-dir ' , 'copy-translations:localization:repo ' ] ,
318
- shell . task ( `typedoc ${ TYPEDOC . PROJECT_PATH } --generate-from-json ${ DOCS_OUTPUT_PATH } \\ ${ TRANSLATIONS_REPO . NAME } \\ typedoc\\ja --templateStrings ${ TYPEDOC . TEMPLATE_STRINGS_PATH } --localize jp` )
304
+ gulp . task ( 'typedoc-build:doc:ja:localization' , [ 'typedoc-build' , 'create: docs-output-path ' , 'typedoc:clean-docs-dir ' ] ,
305
+ shell . task ( `typedoc ${ TYPEDOC . PROJECT_PATH } --generate-from-json ${ path . join ( __dirname , 'i18nRepo' , ' typedoc' , 'ja' ) } --templateStrings ${ TYPEDOC . TEMPLATE_STRINGS_PATH } --localize jp` )
319
306
) ;
320
307
321
- gulp . task ( 'typedoc-build:doc:en:localization' , [ 'typedoc-build' , 'typedoc:clean- docs-dir ' , 'copy-translations:localization:repo ' ] ,
322
- shell . task ( `typedoc ${ TYPEDOC . PROJECT_PATH } --generate-from-json ${ DOCS_OUTPUT_PATH } \\ ${ TRANSLATIONS_REPO . NAME } \\typedoc\\en -- localize en` )
308
+ gulp . task ( 'typedoc-build:doc:en:localization' , [ 'typedoc-build' , 'create: docs-output-path ' , 'typedoc:clean-docs-dir ' ] ,
309
+ shell . task ( `typedoc ${ TYPEDOC . PROJECT_PATH } --localize en` )
323
310
) ;
324
311
325
312
const SASSDOC = {
@@ -348,8 +335,8 @@ gulp.task('sassdoc-build:import', () => {
348
335
. pipe ( sassdoc ( options ) )
349
336
} ) ;
350
337
351
- gulp . task ( 'sassdoc-build:doc:ja:localizaiton' , [ 'sassdoc-build' , 'sassdoc:clean-docs-dir' , 'copy-translations:localization:repo' ] , ( ) => {
352
- const pathTranslations = path . join ( DOCS_OUTPUT_PATH , TRANSLATIONS_REPO . NAME , 'sassdoc' , 'ja' ) ;
338
+ gulp . task ( 'sassdoc-build:doc:ja:localizaiton' , [ 'sassdoc-build' , 'sassdoc:clean-docs-dir' ] , ( ) => {
339
+ const pathTranslations = path . join ( __dirname , 'i18nRepo' , 'sassdoc' , 'ja' ) ;
353
340
const options = JSON . parse ( fs . readFileSync ( SASSDOC . OPTIONS , 'utf8' ) ) ;
354
341
355
342
options . lang = 'jp' ;
@@ -360,13 +347,10 @@ gulp.task('sassdoc-build:doc:ja:localizaiton', ['sassdoc-build', 'sassdoc:clean-
360
347
. pipe ( sassdoc ( options ) ) ;
361
348
} ) ;
362
349
363
- gulp . task ( 'sassdoc-build:doc:en:localizaiton' , [ 'sassdoc-build' , 'sassdoc:clean-docs-dir' , 'copy-translations:localization:repo' ] , ( ) => {
364
- const pathTranslations = path . join ( DOCS_OUTPUT_PATH , TRANSLATIONS_REPO . NAME , 'sassdoc' , 'en' ) ;
350
+ gulp . task ( 'sassdoc-build:doc:en:localizaiton' , [ 'sassdoc-build' , 'sassdoc:clean-docs-dir' ] , ( ) => {
365
351
const options = JSON . parse ( fs . readFileSync ( SASSDOC . OPTIONS , 'utf8' ) ) ;
366
352
367
353
options . lang = 'en' ;
368
- options . render = argv . render ;
369
- options . json_dir = pathTranslations ;
370
354
371
355
return gulp . src ( `${ SASSDOC . PROJECT_PATH } /**/*.scss` )
372
356
. pipe ( sassdoc ( options ) ) ;
0 commit comments