1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-27 22:38:39 +09:00
This commit is contained in:
syuilo 2016-12-29 15:33:26 +09:00
parent 8579bc45f2
commit f170dec5be

View File

@ -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', '');