Skip to content

Commit 8941b7a

Browse files
turskytshemsedinov
authored andcommitted
Add new fn & refactor
1 parent 042885c commit 8941b7a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ content.push({
3939
text: 'Kiev, 2015-2022',
4040
fontSize: 14,
4141
margin: [40, 40, 40, 0],
42-
pageBreak: 'after',
4342
});
4443

44+
const pageBreak = (s) => content.push({ text: '', pageBreak: `${s}` });
45+
4546
const caption = (s) => {
4647
content.push({
4748
text: s,
@@ -91,11 +92,15 @@ const code = (src) => {
9192
});
9293
};
9394

95+
pageBreak('before');
96+
9497
const abstract = fs.readFileSync('content/Abstract.en.md', 'utf8');
9598
const text = abstract.replace('#', '').split('\n');
9699
caption(text.shift());
97100
para(text.join(' '));
98101

102+
pageBreak('before');
103+
99104
const src = fs.readFileSync('content/Index.en.md', 'utf8');
100105
const data = src.split('\n');
101106

0 commit comments

Comments
 (0)