mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
✌️
This commit is contained in:
parent
62cd174cb3
commit
31d0aa2741
1 changed files with 4 additions and 1 deletions
|
@ -64,7 +64,10 @@ gulp.task('build:ts', () =>
|
||||||
);
|
);
|
||||||
|
|
||||||
gulp.task('build:about:docs', () => {
|
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 pugs = glob.sync('./src/web/about/pages/**/*.pug');
|
||||||
const streams = pugs.map(file => {
|
const streams = pugs.map(file => {
|
||||||
const page = file.replace('./src/web/about/pages/', '').replace('.pug', '');
|
const page = file.replace('./src/web/about/pages/', '').replace('.pug', '');
|
||||||
|
|
Loading…
Reference in a new issue