summaryrefslogtreecommitdiff
path: root/gulpfile.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2016-12-29 15:33:26 +0900
committersyuilo <syuilotan@yahoo.co.jp>2016-12-29 15:33:26 +0900
commitf170dec5be8f6d9f3b37c5567e3173dd4c05216a (patch)
tree11194e82f33690a37cdd323a9462e7901aa223ca /gulpfile.ts
parentDocs: Implement License page (diff)
downloadsharkey-f170dec5be8f6d9f3b37c5567e3173dd4c05216a.tar.gz
sharkey-f170dec5be8f6d9f3b37c5567e3173dd4c05216a.tar.bz2
sharkey-f170dec5be8f6d9f3b37c5567e3173dd4c05216a.zip
:v:
Diffstat (limited to 'gulpfile.ts')
-rw-r--r--gulpfile.ts5
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', '');