@vivliostyle/cli 5.8.1 → 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.
Files changed (150) hide show
  1. package/dist/browser.d.ts +1 -1
  2. package/dist/browser.d.ts.map +1 -1
  3. package/dist/browser.js +20 -54
  4. package/dist/browser.js.map +1 -1
  5. package/dist/build.d.ts +1 -1
  6. package/dist/build.d.ts.map +1 -1
  7. package/dist/build.js +46 -47
  8. package/dist/build.js.map +1 -1
  9. package/dist/builder.d.ts +5 -6
  10. package/dist/builder.d.ts.map +1 -1
  11. package/dist/builder.js +124 -103
  12. package/dist/builder.js.map +1 -1
  13. package/dist/cli.js +5 -10
  14. package/dist/cli.js.map +1 -1
  15. package/dist/commands/build.js +10 -16
  16. package/dist/commands/build.js.map +1 -1
  17. package/dist/commands/build.parser.d.ts +3 -3
  18. package/dist/commands/build.parser.d.ts.map +1 -1
  19. package/dist/commands/build.parser.js +13 -21
  20. package/dist/commands/build.parser.js.map +1 -1
  21. package/dist/commands/init.js +7 -9
  22. package/dist/commands/init.js.map +1 -1
  23. package/dist/commands/init.parser.d.ts +2 -2
  24. package/dist/commands/init.parser.d.ts.map +1 -1
  25. package/dist/commands/init.parser.js +3 -10
  26. package/dist/commands/init.parser.js.map +1 -1
  27. package/dist/commands/preview.js +8 -11
  28. package/dist/commands/preview.js.map +1 -1
  29. package/dist/commands/preview.parser.d.ts +2 -2
  30. package/dist/commands/preview.parser.d.ts.map +1 -1
  31. package/dist/commands/preview.parser.js +5 -12
  32. package/dist/commands/preview.parser.js.map +1 -1
  33. package/dist/config.d.ts +29 -18
  34. package/dist/config.d.ts.map +1 -1
  35. package/dist/config.js +285 -251
  36. package/dist/config.js.map +1 -1
  37. package/dist/const.d.ts +2 -0
  38. package/dist/const.d.ts.map +1 -1
  39. package/dist/const.js +12 -15
  40. package/dist/const.js.map +1 -1
  41. package/dist/container.js +31 -41
  42. package/dist/container.js.map +1 -1
  43. package/dist/epub.d.ts.map +1 -1
  44. package/dist/epub.js +10 -17
  45. package/dist/epub.js.map +1 -1
  46. package/dist/html.d.ts +3 -3
  47. package/dist/html.d.ts.map +1 -1
  48. package/dist/html.js +21 -30
  49. package/dist/html.js.map +1 -1
  50. package/dist/index.d.ts +5 -5
  51. package/dist/index.d.ts.map +1 -1
  52. package/dist/index.js +3 -9
  53. package/dist/index.js.map +1 -1
  54. package/dist/init.js +12 -19
  55. package/dist/init.js.map +1 -1
  56. package/dist/input.d.ts +2 -2
  57. package/dist/input.d.ts.map +1 -1
  58. package/dist/input.js +8 -16
  59. package/dist/input.js.map +1 -1
  60. package/dist/markdown.js +9 -17
  61. package/dist/markdown.js.map +1 -1
  62. package/dist/output.d.ts +1 -1
  63. package/dist/output.d.ts.map +1 -1
  64. package/dist/output.js +6 -16
  65. package/dist/output.js.map +1 -1
  66. package/dist/pdf.d.ts +3 -3
  67. package/dist/pdf.d.ts.map +1 -1
  68. package/dist/pdf.js +66 -79
  69. package/dist/pdf.js.map +1 -1
  70. package/dist/postprocess.d.ts +5 -5
  71. package/dist/postprocess.d.ts.map +1 -1
  72. package/dist/postprocess.js +54 -81
  73. package/dist/postprocess.js.map +1 -1
  74. package/dist/preview.d.ts +1 -1
  75. package/dist/preview.d.ts.map +1 -1
  76. package/dist/preview.js +53 -58
  77. package/dist/preview.js.map +1 -1
  78. package/dist/schema/pubManifest.d.ts +2 -471
  79. package/dist/schema/pubManifest.d.ts.map +1 -1
  80. package/dist/schema/pubManifest.js +41 -42
  81. package/dist/schema/pubManifest.js.map +1 -1
  82. package/dist/schema/publication.schema.d.ts +12 -12
  83. package/dist/schema/publication.schema.d.ts.map +1 -1
  84. package/dist/schema/publication.schema.js +1 -2
  85. package/dist/schema/publication.schema.js.map +1 -1
  86. package/dist/schema/vivliostyle.d.ts +1 -1
  87. package/dist/schema/vivliostyle.d.ts.map +1 -1
  88. package/dist/schema/vivliostyle.js +7 -8
  89. package/dist/schema/vivliostyle.js.map +1 -1
  90. package/dist/schema/vivliostyleConfig.schema.d.ts +22 -9
  91. package/dist/schema/vivliostyleConfig.schema.d.ts.map +1 -1
  92. package/dist/schema/vivliostyleConfig.schema.js +1 -2
  93. package/dist/schema/vivliostyleConfig.schema.js.map +1 -1
  94. package/dist/server.d.ts +7 -6
  95. package/dist/server.d.ts.map +1 -1
  96. package/dist/server.js +26 -38
  97. package/dist/server.js.map +1 -1
  98. package/dist/theme.d.ts +6 -0
  99. package/dist/theme.d.ts.map +1 -0
  100. package/dist/theme.js +74 -0
  101. package/dist/theme.js.map +1 -0
  102. package/dist/util.d.ts +3 -3
  103. package/dist/util.d.ts.map +1 -1
  104. package/dist/util.js +80 -98
  105. package/dist/util.js.map +1 -1
  106. package/dist/webbook.d.ts +1 -1
  107. package/dist/webbook.d.ts.map +1 -1
  108. package/dist/webbook.js +40 -44
  109. package/dist/webbook.js.map +1 -1
  110. package/package.json +33 -17
  111. package/schemas/pubManifest/README.md +5 -0
  112. package/schemas/pubManifest/module/ItemList.schema.json +32 -0
  113. package/schemas/pubManifest/module/bcp.schema.json +7 -0
  114. package/schemas/pubManifest/module/context.schema.json +62 -0
  115. package/schemas/pubManifest/module/contributor-object.schema.json +42 -0
  116. package/schemas/pubManifest/module/contributor.schema.json +26 -0
  117. package/schemas/pubManifest/module/date.schema.json +7 -0
  118. package/schemas/pubManifest/module/duration.schema.json +7 -0
  119. package/schemas/pubManifest/module/item-lists.schema.json +16 -0
  120. package/schemas/pubManifest/module/language.schema.json +16 -0
  121. package/schemas/pubManifest/module/link.schema.json +60 -0
  122. package/schemas/pubManifest/module/localizable-object.schema.json +15 -0
  123. package/schemas/pubManifest/module/localizable.schema.json +26 -0
  124. package/schemas/pubManifest/module/resource.categorization.schema.json +31 -0
  125. package/schemas/pubManifest/module/strings.schema.json +9 -0
  126. package/schemas/pubManifest/module/url.schema.json +7 -0
  127. package/schemas/pubManifest/module/urls.schema.json +18 -0
  128. package/schemas/pubManifest/publication.schema.json +123 -0
  129. package/schemas/vivliostyle/vivliostyleConfig.schema.json +348 -0
  130. package/types/better-ajv-errors.d.ts +28 -0
  131. package/types/custom.d.ts +9 -0
  132. package/types/playwright.d.ts +49 -0
  133. package/dist/schema/pubManifest/module/ItemList.schema.json +0 -32
  134. package/dist/schema/pubManifest/module/bcp.schema.json +0 -7
  135. package/dist/schema/pubManifest/module/context.schema.json +0 -62
  136. package/dist/schema/pubManifest/module/contributor-object.schema.json +0 -42
  137. package/dist/schema/pubManifest/module/contributor.schema.json +0 -26
  138. package/dist/schema/pubManifest/module/date.schema.json +0 -7
  139. package/dist/schema/pubManifest/module/duration.schema.json +0 -7
  140. package/dist/schema/pubManifest/module/item-lists.schema.json +0 -16
  141. package/dist/schema/pubManifest/module/language.schema.json +0 -16
  142. package/dist/schema/pubManifest/module/link.schema.json +0 -60
  143. package/dist/schema/pubManifest/module/localizable-object.schema.json +0 -15
  144. package/dist/schema/pubManifest/module/localizable.schema.json +0 -26
  145. package/dist/schema/pubManifest/module/resource.categorization.schema.json +0 -31
  146. package/dist/schema/pubManifest/module/strings.schema.json +0 -9
  147. package/dist/schema/pubManifest/module/url.schema.json +0 -7
  148. package/dist/schema/pubManifest/module/urls.schema.json +0 -18
  149. package/dist/schema/pubManifest/publication.schema.json +0 -123
  150. 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,9 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://www.w3.org/ns/pub-schema/manifest/module/strings.schema.json",
4
- "title": "Unique strings",
5
- "type": ["string", "array"],
6
- "items": {
7
- "type": "string"
8
- }
9
- }
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://www.w3.org/ns/pub-schema/manifest/module/url.schema.json",
4
- "title": "URL",
5
- "type": "string",
6
- "format": "uri-reference"
7
- }
@@ -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
- }