From f170dec5be8f6d9f3b37c5567e3173dd4c05216a Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 29 Dec 2016 15:33:26 +0900 Subject: [PATCH] :v: --- gulpfile.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gulpfile.ts b/gulpfile.ts index 5a6bfc6cf..d05864a2e 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -64,7 +64,10 @@ gulp.task('build:ts', () => ); gulp.task('build:about:docs', () => { - const licenseHtml = fs.readFileSync('./LICENSE', 'utf-8').replace(/\r\n|\n/g, '
'); + const licenseHtml = fs.readFileSync('./LICENSE', 'utf-8') + .replace(/\r\n/g, '\n') + .replace(/.\n./g, '') + .replace(/(^|\n)(.*?)($|\n)/g, '

$2

'); const pugs = glob.sync('./src/web/about/pages/**/*.pug'); const streams = pugs.map(file => { const page = file.replace('./src/web/about/pages/', '').replace('.pug', '');