@vivliostyle/cli 5.9.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.d.ts +1 -1
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +20 -51
- package/dist/browser.js.map +1 -1
- package/dist/build.d.ts +1 -1
- package/dist/build.d.ts.map +1 -1
- package/dist/build.js +46 -47
- package/dist/build.js.map +1 -1
- package/dist/builder.d.ts +5 -6
- package/dist/builder.d.ts.map +1 -1
- package/dist/builder.js +124 -103
- package/dist/builder.js.map +1 -1
- package/dist/cli.js +5 -10
- package/dist/cli.js.map +1 -1
- package/dist/commands/build.js +10 -16
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/build.parser.d.ts +3 -3
- package/dist/commands/build.parser.d.ts.map +1 -1
- package/dist/commands/build.parser.js +13 -21
- package/dist/commands/build.parser.js.map +1 -1
- package/dist/commands/init.js +7 -9
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/init.parser.d.ts +2 -2
- package/dist/commands/init.parser.d.ts.map +1 -1
- package/dist/commands/init.parser.js +3 -10
- package/dist/commands/init.parser.js.map +1 -1
- package/dist/commands/preview.js +8 -11
- package/dist/commands/preview.js.map +1 -1
- package/dist/commands/preview.parser.d.ts +2 -2
- package/dist/commands/preview.parser.d.ts.map +1 -1
- package/dist/commands/preview.parser.js +5 -12
- package/dist/commands/preview.parser.js.map +1 -1
- package/dist/config.d.ts +29 -18
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +285 -251
- package/dist/config.js.map +1 -1
- package/dist/const.d.ts +2 -0
- package/dist/const.d.ts.map +1 -1
- package/dist/const.js +12 -15
- package/dist/const.js.map +1 -1
- package/dist/container.js +31 -41
- package/dist/container.js.map +1 -1
- package/dist/epub.d.ts.map +1 -1
- package/dist/epub.js +10 -17
- package/dist/epub.js.map +1 -1
- package/dist/html.d.ts +3 -3
- package/dist/html.d.ts.map +1 -1
- package/dist/html.js +21 -30
- package/dist/html.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -1
- package/dist/init.js +12 -19
- package/dist/init.js.map +1 -1
- package/dist/input.d.ts +2 -2
- package/dist/input.d.ts.map +1 -1
- package/dist/input.js +8 -16
- package/dist/input.js.map +1 -1
- package/dist/markdown.js +9 -17
- package/dist/markdown.js.map +1 -1
- package/dist/output.d.ts +1 -1
- package/dist/output.d.ts.map +1 -1
- package/dist/output.js +6 -16
- package/dist/output.js.map +1 -1
- package/dist/pdf.d.ts +3 -3
- package/dist/pdf.d.ts.map +1 -1
- package/dist/pdf.js +66 -79
- package/dist/pdf.js.map +1 -1
- package/dist/postprocess.d.ts +5 -5
- package/dist/postprocess.d.ts.map +1 -1
- package/dist/postprocess.js +54 -81
- package/dist/postprocess.js.map +1 -1
- package/dist/preview.d.ts +1 -1
- package/dist/preview.d.ts.map +1 -1
- package/dist/preview.js +53 -58
- package/dist/preview.js.map +1 -1
- package/dist/schema/pubManifest.d.ts +2 -471
- package/dist/schema/pubManifest.d.ts.map +1 -1
- package/dist/schema/pubManifest.js +41 -42
- package/dist/schema/pubManifest.js.map +1 -1
- package/dist/schema/publication.schema.d.ts +12 -12
- package/dist/schema/publication.schema.d.ts.map +1 -1
- package/dist/schema/publication.schema.js +1 -2
- package/dist/schema/publication.schema.js.map +1 -1
- package/dist/schema/vivliostyle.d.ts +1 -1
- package/dist/schema/vivliostyle.d.ts.map +1 -1
- package/dist/schema/vivliostyle.js +7 -8
- package/dist/schema/vivliostyle.js.map +1 -1
- package/dist/schema/vivliostyleConfig.schema.d.ts +22 -9
- package/dist/schema/vivliostyleConfig.schema.d.ts.map +1 -1
- package/dist/schema/vivliostyleConfig.schema.js +1 -2
- package/dist/schema/vivliostyleConfig.schema.js.map +1 -1
- package/dist/server.d.ts +7 -6
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +26 -38
- package/dist/server.js.map +1 -1
- package/dist/theme.d.ts +6 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +74 -0
- package/dist/theme.js.map +1 -0
- package/dist/util.d.ts +3 -3
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +80 -98
- package/dist/util.js.map +1 -1
- package/dist/webbook.d.ts +1 -1
- package/dist/webbook.d.ts.map +1 -1
- package/dist/webbook.js +40 -44
- package/dist/webbook.js.map +1 -1
- package/package.json +32 -16
- package/schemas/pubManifest/README.md +5 -0
- package/schemas/pubManifest/module/ItemList.schema.json +32 -0
- package/schemas/pubManifest/module/bcp.schema.json +7 -0
- package/schemas/pubManifest/module/context.schema.json +62 -0
- package/schemas/pubManifest/module/contributor-object.schema.json +42 -0
- package/schemas/pubManifest/module/contributor.schema.json +26 -0
- package/schemas/pubManifest/module/date.schema.json +7 -0
- package/schemas/pubManifest/module/duration.schema.json +7 -0
- package/schemas/pubManifest/module/item-lists.schema.json +16 -0
- package/schemas/pubManifest/module/language.schema.json +16 -0
- package/schemas/pubManifest/module/link.schema.json +60 -0
- package/schemas/pubManifest/module/localizable-object.schema.json +15 -0
- package/schemas/pubManifest/module/localizable.schema.json +26 -0
- package/schemas/pubManifest/module/resource.categorization.schema.json +31 -0
- package/schemas/pubManifest/module/strings.schema.json +9 -0
- package/schemas/pubManifest/module/url.schema.json +7 -0
- package/schemas/pubManifest/module/urls.schema.json +18 -0
- package/schemas/pubManifest/publication.schema.json +123 -0
- package/schemas/vivliostyle/vivliostyleConfig.schema.json +348 -0
- package/types/better-ajv-errors.d.ts +28 -0
- package/types/custom.d.ts +9 -0
- package/types/playwright.d.ts +49 -0
- package/dist/schema/pubManifest/module/ItemList.schema.json +0 -32
- package/dist/schema/pubManifest/module/bcp.schema.json +0 -7
- package/dist/schema/pubManifest/module/context.schema.json +0 -62
- package/dist/schema/pubManifest/module/contributor-object.schema.json +0 -42
- package/dist/schema/pubManifest/module/contributor.schema.json +0 -26
- package/dist/schema/pubManifest/module/date.schema.json +0 -7
- package/dist/schema/pubManifest/module/duration.schema.json +0 -7
- package/dist/schema/pubManifest/module/item-lists.schema.json +0 -16
- package/dist/schema/pubManifest/module/language.schema.json +0 -16
- package/dist/schema/pubManifest/module/link.schema.json +0 -60
- package/dist/schema/pubManifest/module/localizable-object.schema.json +0 -15
- package/dist/schema/pubManifest/module/localizable.schema.json +0 -26
- package/dist/schema/pubManifest/module/resource.categorization.schema.json +0 -31
- package/dist/schema/pubManifest/module/strings.schema.json +0 -9
- package/dist/schema/pubManifest/module/url.schema.json +0 -7
- package/dist/schema/pubManifest/module/urls.schema.json +0 -18
- package/dist/schema/pubManifest/publication.schema.json +0 -123
- package/dist/schema/vivliostyle/vivliostyleConfig.schema.json +0 -296
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://www.w3.org/ns/pub-schema/manifest/module/link.schema.json",
|
|
4
|
-
"title": "Publication Links",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"type": {
|
|
8
|
-
"oneOf": [
|
|
9
|
-
{
|
|
10
|
-
"type": "string",
|
|
11
|
-
"const": "LinkedResource"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"type": "array",
|
|
15
|
-
"items": {
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
"contains": {
|
|
19
|
-
"const": "LinkedResource"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"url": {
|
|
25
|
-
"$ref": "url.schema.json"
|
|
26
|
-
},
|
|
27
|
-
"encodingFormat": {
|
|
28
|
-
"type": "string"
|
|
29
|
-
},
|
|
30
|
-
"name": {
|
|
31
|
-
"$ref": "localizable.schema.json"
|
|
32
|
-
},
|
|
33
|
-
"description": {
|
|
34
|
-
"anyOf": [
|
|
35
|
-
{
|
|
36
|
-
"type": "string"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"$ref": "localizable-object.schema.json"
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
"rel": {
|
|
44
|
-
"type": ["string", "array"],
|
|
45
|
-
"items": {
|
|
46
|
-
"type": "string"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"integrity": {
|
|
50
|
-
"type": "string"
|
|
51
|
-
},
|
|
52
|
-
"duration": {
|
|
53
|
-
"$ref": "duration.schema.json"
|
|
54
|
-
},
|
|
55
|
-
"alternate": {
|
|
56
|
-
"$ref": "resource.categorization.schema.json"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"required": ["url"]
|
|
60
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://www.w3.org/ns/pub-schema/manifest/module/localizable-object.schema.json",
|
|
4
|
-
"title": "Localizable String Object",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"value": {
|
|
8
|
-
"type": "string"
|
|
9
|
-
},
|
|
10
|
-
"language": {
|
|
11
|
-
"$ref": "bcp.schema.json"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"required": ["value"]
|
|
15
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://www.w3.org/ns/pub-schema/manifest/module/localizable.schema.json",
|
|
4
|
-
"title": "Localizable String or Object",
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"type": "string"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"type": "array",
|
|
11
|
-
"items": {
|
|
12
|
-
"anyOf": [
|
|
13
|
-
{
|
|
14
|
-
"type": "string"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"$ref": "localizable-object.schema.json"
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"$ref": "localizable-object.schema.json"
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://www.w3.org/ns/pub-schema/manifest/module/resource.categorization.schema.json",
|
|
4
|
-
"title": "Resource Categorization",
|
|
5
|
-
"oneOf": [
|
|
6
|
-
{
|
|
7
|
-
"oneOf": [
|
|
8
|
-
{
|
|
9
|
-
"$ref": "url.schema.json"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"$ref": "link.schema.json"
|
|
13
|
-
}
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"type": "array",
|
|
18
|
-
"items": {
|
|
19
|
-
"anyOf": [
|
|
20
|
-
{
|
|
21
|
-
"$ref": "url.schema.json"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"$ref": "link.schema.json"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"uniqueItems": true
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://www.w3.org/ns/pub-schema/manifest/module/urls.schema.json",
|
|
4
|
-
"title": "URLs",
|
|
5
|
-
"oneOf": [
|
|
6
|
-
{
|
|
7
|
-
"type": "string",
|
|
8
|
-
"format": "uri-reference"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"type": "array",
|
|
12
|
-
"items": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"format": "uri-reference"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://www.w3.org/ns/pub-schema/manifest/publication.schema.json",
|
|
4
|
-
"title": "Publication Manifest",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"@context": {
|
|
8
|
-
"$ref": "module/context.schema.json"
|
|
9
|
-
},
|
|
10
|
-
"type": {
|
|
11
|
-
"type": ["string", "array"],
|
|
12
|
-
"items": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"conformsTo": {
|
|
17
|
-
"oneOf": [
|
|
18
|
-
{
|
|
19
|
-
"$ref": "module/url.schema.json"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"type": "array",
|
|
23
|
-
"items": {
|
|
24
|
-
"$ref": "module/url.schema.json"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"id": {
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
"abridged": {
|
|
33
|
-
"type": "boolean"
|
|
34
|
-
},
|
|
35
|
-
"accessMode": {
|
|
36
|
-
"$ref": "module/strings.schema.json"
|
|
37
|
-
},
|
|
38
|
-
"accessModeSufficient": {
|
|
39
|
-
"$ref": "module/item-lists.schema.json"
|
|
40
|
-
},
|
|
41
|
-
"accessibilityFeature": {
|
|
42
|
-
"$ref": "module/strings.schema.json"
|
|
43
|
-
},
|
|
44
|
-
"accessibilityHazard": {
|
|
45
|
-
"$ref": "module/strings.schema.json"
|
|
46
|
-
},
|
|
47
|
-
"accessibilitySummary": {
|
|
48
|
-
"$ref": "module/localizable.schema.json"
|
|
49
|
-
},
|
|
50
|
-
"artist": {
|
|
51
|
-
"$ref": "module/contributor.schema.json"
|
|
52
|
-
},
|
|
53
|
-
"author": {
|
|
54
|
-
"$ref": "module/contributor.schema.json"
|
|
55
|
-
},
|
|
56
|
-
"colorist": {
|
|
57
|
-
"$ref": "module/contributor.schema.json"
|
|
58
|
-
},
|
|
59
|
-
"contributor": {
|
|
60
|
-
"$ref": "module/contributor.schema.json"
|
|
61
|
-
},
|
|
62
|
-
"creator": {
|
|
63
|
-
"$ref": "module/contributor.schema.json"
|
|
64
|
-
},
|
|
65
|
-
"editor": {
|
|
66
|
-
"$ref": "module/contributor.schema.json"
|
|
67
|
-
},
|
|
68
|
-
"illustrator": {
|
|
69
|
-
"$ref": "module/contributor.schema.json"
|
|
70
|
-
},
|
|
71
|
-
"inker": {
|
|
72
|
-
"$ref": "module/contributor.schema.json"
|
|
73
|
-
},
|
|
74
|
-
"letterer": {
|
|
75
|
-
"$ref": "module/contributor.schema.json"
|
|
76
|
-
},
|
|
77
|
-
"penciler": {
|
|
78
|
-
"$ref": "module/contributor.schema.json"
|
|
79
|
-
},
|
|
80
|
-
"publisher": {
|
|
81
|
-
"$ref": "module/contributor.schema.json"
|
|
82
|
-
},
|
|
83
|
-
"readBy": {
|
|
84
|
-
"$ref": "module/contributor.schema.json"
|
|
85
|
-
},
|
|
86
|
-
"translator": {
|
|
87
|
-
"$ref": "module/contributor.schema.json"
|
|
88
|
-
},
|
|
89
|
-
"url": {
|
|
90
|
-
"$ref": "module/urls.schema.json"
|
|
91
|
-
},
|
|
92
|
-
"duration": {
|
|
93
|
-
"$ref": "module/duration.schema.json"
|
|
94
|
-
},
|
|
95
|
-
"inLanguage": {
|
|
96
|
-
"$ref": "module/language.schema.json"
|
|
97
|
-
},
|
|
98
|
-
"dateModified": {
|
|
99
|
-
"$ref": "module/date.schema.json"
|
|
100
|
-
},
|
|
101
|
-
"datePublished": {
|
|
102
|
-
"$ref": "module/date.schema.json"
|
|
103
|
-
},
|
|
104
|
-
"name": {
|
|
105
|
-
"$ref": "module/localizable.schema.json"
|
|
106
|
-
},
|
|
107
|
-
"readingOrder": {
|
|
108
|
-
"$ref": "module/resource.categorization.schema.json"
|
|
109
|
-
},
|
|
110
|
-
"resources": {
|
|
111
|
-
"$ref": "module/resource.categorization.schema.json"
|
|
112
|
-
},
|
|
113
|
-
"links": {
|
|
114
|
-
"$ref": "module/resource.categorization.schema.json"
|
|
115
|
-
},
|
|
116
|
-
"readingProgression": {
|
|
117
|
-
"type": "string",
|
|
118
|
-
"enum": ["ltr", "rtl"],
|
|
119
|
-
"default": "ltr"
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
"required": ["@context", "conformsTo"]
|
|
123
|
-
}
|
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"definitions": {
|
|
3
|
-
"entry": {
|
|
4
|
-
"type": "string",
|
|
5
|
-
"minLength": 1
|
|
6
|
-
},
|
|
7
|
-
"articleEntryObject": {
|
|
8
|
-
"type": "object",
|
|
9
|
-
"properties": {
|
|
10
|
-
"path": { "type": "string" },
|
|
11
|
-
"title": { "type": "string" },
|
|
12
|
-
"theme": { "type": "string" },
|
|
13
|
-
"encodingFormat": { "type": "string" },
|
|
14
|
-
"rel": {
|
|
15
|
-
"type": ["string", "array"],
|
|
16
|
-
"items": {
|
|
17
|
-
"type": "string"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"required": ["path"],
|
|
22
|
-
"additionalProperties": false
|
|
23
|
-
},
|
|
24
|
-
"browserType": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"enum": ["chromium", "firefox", "webkit"]
|
|
27
|
-
},
|
|
28
|
-
"contentsEntryObject": {
|
|
29
|
-
"type": "object",
|
|
30
|
-
"properties": {
|
|
31
|
-
"rel": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"const": "contents"
|
|
34
|
-
},
|
|
35
|
-
"title": { "type": "string" },
|
|
36
|
-
"theme": { "type": "string" }
|
|
37
|
-
},
|
|
38
|
-
"required": ["rel"],
|
|
39
|
-
"additionalProperties": false
|
|
40
|
-
},
|
|
41
|
-
"entryObject": {
|
|
42
|
-
"oneOf": [
|
|
43
|
-
{ "$ref": "#/definitions/contentsEntryObject" },
|
|
44
|
-
{ "$ref": "#/definitions/articleEntryObject" }
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
"output": {
|
|
48
|
-
"type": "string",
|
|
49
|
-
"minLength": 1
|
|
50
|
-
},
|
|
51
|
-
"outputObject": {
|
|
52
|
-
"type": "object",
|
|
53
|
-
"properties": {
|
|
54
|
-
"path": {
|
|
55
|
-
"description": "Specify output file name or directory [<title>.pdf].",
|
|
56
|
-
"type": "string"
|
|
57
|
-
},
|
|
58
|
-
"format": {
|
|
59
|
-
"description": "Specify output format.",
|
|
60
|
-
"type": "string"
|
|
61
|
-
},
|
|
62
|
-
"renderMode": {
|
|
63
|
-
"description": "if docker is set, Vivliostyle try to render PDF on Docker container [local].",
|
|
64
|
-
"type": "string",
|
|
65
|
-
"enum": ["local", "docker"]
|
|
66
|
-
},
|
|
67
|
-
"preflight": {
|
|
68
|
-
"description": "Apply the process to generate PDF for printing.",
|
|
69
|
-
"type": "string",
|
|
70
|
-
"enum": ["press-ready", "press-ready-local"]
|
|
71
|
-
},
|
|
72
|
-
"preflightOption": {
|
|
73
|
-
"description": "Options for preflight process (ex: gray-scale, enforce-outline). Please refer the document of press-ready for further information. https://github.com/vibranthq/press-ready",
|
|
74
|
-
"type": "array",
|
|
75
|
-
"items": { "type": "string" }
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"required": ["path"],
|
|
79
|
-
"additionalProperties": false
|
|
80
|
-
},
|
|
81
|
-
"vfmReplaceRule": {
|
|
82
|
-
"type": "object",
|
|
83
|
-
"properties": {
|
|
84
|
-
"test": {
|
|
85
|
-
"type": "object",
|
|
86
|
-
"tsType": "RegExp"
|
|
87
|
-
},
|
|
88
|
-
"match": {
|
|
89
|
-
"instanceOf": "Function",
|
|
90
|
-
"tsType": "(result: RegExpMatchArray, h: any) => Object | string"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"required": ["test", "match"],
|
|
94
|
-
"additionalProperties": false
|
|
95
|
-
},
|
|
96
|
-
"vivliostyleConfigEntry": {
|
|
97
|
-
"type": "object",
|
|
98
|
-
"properties": {
|
|
99
|
-
"title": {
|
|
100
|
-
"type": "string",
|
|
101
|
-
"description": "Title",
|
|
102
|
-
"minLength": 1
|
|
103
|
-
},
|
|
104
|
-
"author": {
|
|
105
|
-
"type": "string",
|
|
106
|
-
"description": "Author",
|
|
107
|
-
"minLength": 1
|
|
108
|
-
},
|
|
109
|
-
"theme": {
|
|
110
|
-
"description": "Theme package path or URL of css file.",
|
|
111
|
-
"anyOf": [
|
|
112
|
-
{
|
|
113
|
-
"type": "string",
|
|
114
|
-
"maxLength": 214,
|
|
115
|
-
"minLength": 1,
|
|
116
|
-
"pattern": "^(?:@[a-z0-9-*~][a-z0-9-*._~]*/)?[a-z0-9-~][a-z0-9-._~]*$"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"type": "string",
|
|
120
|
-
"pattern": "^.+/[^/]+(.css|\\w)$"
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
|
-
"entry": {
|
|
125
|
-
"description": "Entry file(s) of document.",
|
|
126
|
-
"oneOf": [
|
|
127
|
-
{ "$ref": "#/definitions/entry" },
|
|
128
|
-
{ "$ref": "#/definitions/articleEntryObject" },
|
|
129
|
-
{
|
|
130
|
-
"type": "array",
|
|
131
|
-
"items": {
|
|
132
|
-
"oneOf": [
|
|
133
|
-
{ "$ref": "#/definitions/entry" },
|
|
134
|
-
{ "$ref": "#/definitions/entryObject" }
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
|
-
"uniqueItems": true
|
|
138
|
-
}
|
|
139
|
-
]
|
|
140
|
-
},
|
|
141
|
-
"entryContext": {
|
|
142
|
-
"description": "Directory of referencing entry file(s).",
|
|
143
|
-
"type": "string",
|
|
144
|
-
"minLength": 1
|
|
145
|
-
},
|
|
146
|
-
"output": {
|
|
147
|
-
"description": "Options about outputs.",
|
|
148
|
-
"oneOf": [
|
|
149
|
-
{
|
|
150
|
-
"type": "array",
|
|
151
|
-
"items": {
|
|
152
|
-
"oneOf": [
|
|
153
|
-
{ "$ref": "#/definitions/output" },
|
|
154
|
-
{ "$ref": "#/definitions/outputObject" }
|
|
155
|
-
]
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
{ "$ref": "#/definitions/output" },
|
|
159
|
-
{ "$ref": "#/definitions/outputObject" }
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
"workspaceDir": {
|
|
163
|
-
"type": "string",
|
|
164
|
-
"description": "",
|
|
165
|
-
"minLength": 1
|
|
166
|
-
},
|
|
167
|
-
"includeAssets": {
|
|
168
|
-
"oneOf": [
|
|
169
|
-
{
|
|
170
|
-
"type": "array",
|
|
171
|
-
"items": { "$ref": "#/definitions/entry" }
|
|
172
|
-
},
|
|
173
|
-
{ "$ref": "#/definitions/entry" }
|
|
174
|
-
]
|
|
175
|
-
},
|
|
176
|
-
"size": {
|
|
177
|
-
"description": "Output pdf size [Letter]. preset: A5, A4, A3, B5, B4, JIS-B5, JIS-B4, letter, legal, ledger. custom(comma separated): 182mm,257mm or 8.5in,11in.",
|
|
178
|
-
"type": "string",
|
|
179
|
-
"minLength": 1
|
|
180
|
-
},
|
|
181
|
-
"pressReady": {
|
|
182
|
-
"description": "Make generated PDF compatible with press ready PDF/X-1a [false]. This option is equivalent with \"preflight\": \"press-ready\"",
|
|
183
|
-
"type": "boolean"
|
|
184
|
-
},
|
|
185
|
-
"language": {
|
|
186
|
-
"description": "Language",
|
|
187
|
-
"type": "string",
|
|
188
|
-
"minLength": 1
|
|
189
|
-
},
|
|
190
|
-
"readingProgression": {
|
|
191
|
-
"type": "string",
|
|
192
|
-
"enum": ["ltr", "rtl"],
|
|
193
|
-
"default": "ltr"
|
|
194
|
-
},
|
|
195
|
-
"toc": {
|
|
196
|
-
"oneOf": [
|
|
197
|
-
{ "type": "boolean" },
|
|
198
|
-
{
|
|
199
|
-
"type": "string",
|
|
200
|
-
"minLength": 1
|
|
201
|
-
}
|
|
202
|
-
]
|
|
203
|
-
},
|
|
204
|
-
"tocTitle": {
|
|
205
|
-
"type": "string",
|
|
206
|
-
"minLength": 1
|
|
207
|
-
},
|
|
208
|
-
"cover": {
|
|
209
|
-
"type": "string",
|
|
210
|
-
"minLength": 1
|
|
211
|
-
},
|
|
212
|
-
"timeout": {
|
|
213
|
-
"description": "Timeout limit for waiting Vivliostyle process [120000]",
|
|
214
|
-
"type": "number",
|
|
215
|
-
"minimum": 0
|
|
216
|
-
},
|
|
217
|
-
"vfm": {
|
|
218
|
-
"description": "Option for convert Markdown to a stringify (HTML).",
|
|
219
|
-
"type": "object",
|
|
220
|
-
"properties": {
|
|
221
|
-
"style": {
|
|
222
|
-
"description": "Custom stylesheet path/URL.",
|
|
223
|
-
"type": ["string", "array"],
|
|
224
|
-
"items": {
|
|
225
|
-
"type": "string"
|
|
226
|
-
}
|
|
227
|
-
},
|
|
228
|
-
"partial": {
|
|
229
|
-
"description": "Output markdown fragments.",
|
|
230
|
-
"type": "boolean"
|
|
231
|
-
},
|
|
232
|
-
"title": {
|
|
233
|
-
"description": "Document title (ignored in partial mode).",
|
|
234
|
-
"type": "string"
|
|
235
|
-
},
|
|
236
|
-
"language": {
|
|
237
|
-
"description": "Document language (ignored in partial mode).",
|
|
238
|
-
"type": "string"
|
|
239
|
-
},
|
|
240
|
-
"replace": {
|
|
241
|
-
"description": "Replacement handler for HTML string.",
|
|
242
|
-
"type": "array",
|
|
243
|
-
"items": {
|
|
244
|
-
"$ref": "#/definitions/vfmReplaceRule"
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
"hardLineBreaks": {
|
|
248
|
-
"description": "Add `<br>` at the position of hard line breaks, without needing spaces.",
|
|
249
|
-
"type": "boolean"
|
|
250
|
-
},
|
|
251
|
-
"disableFormatHtml": {
|
|
252
|
-
"description": "Disable automatic HTML format.",
|
|
253
|
-
"type": "boolean"
|
|
254
|
-
},
|
|
255
|
-
"math": {
|
|
256
|
-
"description": "Enable math syntax.",
|
|
257
|
-
"type": "boolean"
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
"image": {
|
|
262
|
-
"description": "Specify a docker image to render.",
|
|
263
|
-
"type": "string",
|
|
264
|
-
"minLength": 1
|
|
265
|
-
},
|
|
266
|
-
"http": {
|
|
267
|
-
"description": "Launch an HTTP server hosting contents instead of file protocol. It is useful that requires CORS such as external web fonts.",
|
|
268
|
-
"type": "boolean"
|
|
269
|
-
},
|
|
270
|
-
"viewer": {
|
|
271
|
-
"description": "Specify a URL of displaying viewer instead of vivliostyle-cli's one. It is useful that using own viewer that has staging features. (ex: https://vivliostyle.vercel.app/)",
|
|
272
|
-
"type": "string",
|
|
273
|
-
"minLength": 1
|
|
274
|
-
},
|
|
275
|
-
"browser": {
|
|
276
|
-
"description": "EXPERIMENTAL SUPPORT: Specify a browser type to launch Vivliostyle viewer. Currently, Firefox and Webkit support preview command only!",
|
|
277
|
-
"oneOf": [{ "$ref": "#/definitions/browserType" }],
|
|
278
|
-
"default": "chromium"
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
"required": ["entry"]
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
"oneOf": [
|
|
285
|
-
{
|
|
286
|
-
"$ref": "#/definitions/vivliostyleConfigEntry"
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"type": "array",
|
|
290
|
-
"items": {
|
|
291
|
-
"$ref": "#/definitions/vivliostyleConfigEntry"
|
|
292
|
-
},
|
|
293
|
-
"minItems": 1
|
|
294
|
-
}
|
|
295
|
-
]
|
|
296
|
-
}
|