generated from o2project/techbook-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vivliostyle.config.js
48 lines (46 loc) · 1.17 KB
/
vivliostyle.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
const TITLE = 'trapezium.css';
const pdfOutputDir = process.env.PRESS_ONLY === 'true' ? './dist/press' : './dist/pdf';
const pdfConfig = {
path: `${pdfOutputDir}/${TITLE}.pdf`,
format: 'pdf',
};
const webpubConfig = {
path: './dist/webpub/',
format: 'webpub',
};
module.exports = {
title: TITLE,
author: 'kubosho',
language: 'ja',
size: 'JIS-B5',
theme: './node_modules/@o2project/vivliostyle-theme-o2project/lib/print_jis_b5.css',
entry: [
{
path: './entries/book_title.md',
theme: './node_modules/@o2project/vivliostyle-theme-o2project/lib/book_title.css',
},
{
path: './entries/toc.md',
rel: 'contents',
theme: './node_modules/@o2project/vivliostyle-theme-o2project/lib/toc.css',
},
'./entries/prologue.md',
'./entries/south.md',
'./entries/west.md',
'./entries/east.md',
'./entries/north.md',
{
path: './entries/colophon.md',
title: '奥付',
theme: './node_modules/@o2project/vivliostyle-theme-o2project/lib/book_information.css',
},
],
output: [pdfConfig, webpubConfig],
workspaceDir: '.temp',
toc: {
title: '目次',
},
vfm: {
hardLineBreaks: true,
},
};