diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-04-22 11:00:21 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-04-22 11:00:21 +0200 |
commit | 4336fdb2414d460ffee68a0cc87c0cb0c85cf56e (patch) | |
tree | 279f711ab98666c892c19a7b9e4073a094f03f98 /lib/config/schema.js | |
parent | 87db7cf1d412fa6fbd18e9a7e4f4755f2c0c5547 (diff) | |
download | gitbook-4336fdb2414d460ffee68a0cc87c0cb0c85cf56e.zip gitbook-4336fdb2414d460ffee68a0cc87c0cb0c85cf56e.tar.gz gitbook-4336fdb2414d460ffee68a0cc87c0cb0c85cf56e.tar.bz2 |
Base
Diffstat (limited to 'lib/config/schema.js')
-rw-r--r-- | lib/config/schema.js | 188 |
1 files changed, 0 insertions, 188 deletions
diff --git a/lib/config/schema.js b/lib/config/schema.js deleted file mode 100644 index 3fb2050..0000000 --- a/lib/config/schema.js +++ /dev/null @@ -1,188 +0,0 @@ -module.exports = { - '$schema': 'http://json-schema.org/schema#', - 'id': 'https://gitbook.com/schemas/book.json', - 'title': 'GitBook Configuration', - 'type': 'object', - 'properties': { - 'root': { - 'type': 'string', - 'title': 'Path fro the root folder containing the book\'s content' - }, - 'title': { - 'type': 'string', - 'title': 'Title of the book, default is extracted from README' - }, - 'isbn': { - 'type': 'string', - 'title': 'ISBN for published book' - }, - 'author': { - 'type': 'string', - 'title': 'Name of the author' - }, - 'gitbook': { - 'type': 'string', - 'default': '*', - 'title': 'GitBook version to match' - }, - 'direction': { - 'type': 'string', - 'enum': ['ltr', 'rtl'], - 'title': 'Direction of texts, default is detected in the pages' - }, - 'theme': { - 'type': 'string', - 'default': 'default', - 'title': 'Name of the theme plugin to use' - }, - 'variables': { - 'type': 'object', - 'title': 'Templating context variables' - }, - 'plugins': { - 'oneOf': [ - { '$ref': '#/definitions/pluginsArray' }, - { '$ref': '#/definitions/pluginsString' } - ], - 'default': [] - }, - 'pluginsConfig': { - 'type': 'object', - 'title': 'Configuration for plugins' - }, - 'structure': { - 'type': 'object', - 'properties': { - 'langs': { - 'default': 'LANGS.md', - 'type': 'string', - 'title': 'File to use as languages index', - 'pattern': '^[0-9a-zA-Z ... ]+$' - }, - 'readme': { - 'default': 'README.md', - 'type': 'string', - 'title': 'File to use as preface', - 'pattern': '^[0-9a-zA-Z ... ]+$' - }, - 'glossary': { - 'default': 'GLOSSARY.md', - 'type': 'string', - 'title': 'File to use as glossary index', - 'pattern': '^[0-9a-zA-Z ... ]+$' - }, - 'summary': { - 'default': 'SUMMARY.md', - 'type': 'string', - 'title': 'File to use as table of contents', - 'pattern': '^[0-9a-zA-Z ... ]+$' - } - }, - 'additionalProperties': false - }, - 'pdf': { - 'type': 'object', - 'title': 'PDF specific configurations', - 'properties': { - 'pageNumbers': { - 'type': 'boolean', - 'default': true, - 'title': 'Add page numbers to the bottom of every page' - }, - 'fontSize': { - 'type': 'integer', - 'minimum': 8, - 'maximum': 30, - 'default': 12, - 'title': 'Font size for the PDF output' - }, - 'fontFamily': { - 'type': 'string', - 'default': 'Arial', - 'title': 'Font family for the PDF output' - }, - 'paperSize': { - 'type': 'string', - 'enum': ['a0', 'a1', 'a2', 'a3', 'a4', 'a5', 'a6', 'b0', 'b1', 'b2', 'b3', 'b4', 'b5', 'b6', 'legal', 'letter'], - 'default': 'a4', - 'title': 'Paper size for the PDF' - }, - 'chapterMark': { - 'type': 'string', - 'enum': ['pagebreak', 'rule', 'both', 'none'], - 'default': 'pagebreak', - 'title': 'How to mark detected chapters' - }, - 'pageBreaksBefore': { - 'type': 'string', - 'default': '/', - 'title': 'An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: "/"' - }, - 'margin': { - 'type': 'object', - 'properties': { - 'right': { - 'type': 'integer', - 'title': 'Right Margin', - 'minimum': 0, - 'maximum': 100, - 'default': 62 - }, - 'left': { - 'type': 'integer', - 'title': 'Left Margin', - 'minimum': 0, - 'maximum': 100, - 'default': 62 - }, - 'top': { - 'type': 'integer', - 'title': 'Top Margin', - 'minimum': 0, - 'maximum': 100, - 'default': 56 - }, - 'bottom': { - 'type': 'integer', - 'title': 'Bottom Margin', - 'minimum': 0, - 'maximum': 100, - 'default': 56 - } - } - } - } - } - }, - 'required': [], - 'definitions': { - 'pluginsArray': { - 'type': 'array', - 'items': { - 'oneOf': [ - { '$ref': '#/definitions/pluginObject' }, - { '$ref': '#/definitions/pluginString' } - ] - } - }, - 'pluginsString': { - 'type': 'string' - }, - 'pluginString': { - 'type': 'string' - }, - 'pluginObject': { - 'type': 'object', - 'properties': { - 'name': { - 'type': 'string' - }, - 'version': { - 'type': 'string' - } - }, - 'additionalProperties': false, - 'required': ['name'] - } - } -}; |