diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2016-12-29 15:33:26 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2016-12-29 15:33:26 +0900 |
| commit | f170dec5be8f6d9f3b37c5567e3173dd4c05216a (patch) | |
| tree | 11194e82f33690a37cdd323a9462e7901aa223ca /gulpfile.ts | |
| parent | Docs: Implement License page (diff) | |
| download | sharkey-f170dec5be8f6d9f3b37c5567e3173dd4c05216a.tar.gz sharkey-f170dec5be8f6d9f3b37c5567e3173dd4c05216a.tar.bz2 sharkey-f170dec5be8f6d9f3b37c5567e3173dd4c05216a.zip | |
:v:
Diffstat (limited to 'gulpfile.ts')
| -rw-r--r-- | gulpfile.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gulpfile.ts b/gulpfile.ts index 5a6bfc6cfe..d05864a2e4 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, '<br>'); + const licenseHtml = fs.readFileSync('./LICENSE', 'utf-8') + .replace(/\r\n/g, '\n') + .replace(/.\n./g, '<wbr>') + .replace(/(^|\n)(.*?)($|\n)/g, '<p>$2</p>'); const pugs = glob.sync('./src/web/about/pages/**/*.pug'); const streams = pugs.map(file => { const page = file.replace('./src/web/about/pages/', '').replace('.pug', ''); |