diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-25 10:24:32 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-25 10:24:32 +0100 |
commit | 585ed46034ee3629ba4d1c74681bca7c525047fb (patch) | |
tree | ce3d26b31f14500d958e76aac3ca4966a4afe52c /lib | |
parent | 82a4f80cd23ecb0a734c21668bc8561734d96e36 (diff) | |
download | gitbook-585ed46034ee3629ba4d1c74681bca7c525047fb.zip gitbook-585ed46034ee3629ba4d1c74681bca7c525047fb.tar.gz gitbook-585ed46034ee3629ba4d1c74681bca7c525047fb.tar.bz2 |
Change "description" to "title" in config schema
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config/schema.js | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/lib/config/schema.js b/lib/config/schema.js index 10d99fc..ac7d05e 100644 --- a/lib/config/schema.js +++ b/lib/config/schema.js @@ -6,38 +6,38 @@ module.exports = { 'properties': { 'title': { 'type': 'string', - 'description': 'Title of the book, default is extracted from README' + 'title': 'Title of the book, default is extracted from README' }, - 'description': { + 'title': { 'type': 'string', - 'description': 'Description of the book, default is extracted from README' + 'title': 'Description of the book, default is extracted from README' }, 'isbn': { 'type': 'string', - 'description': 'ISBN for published book' + 'title': 'ISBN for published book' }, 'author': { 'type': 'string', - 'description': 'Name of the author' + 'title': 'Name of the author' }, 'gitbook': { 'type': 'string', 'default': '*', - 'description': 'GitBook version to match' + 'title': 'GitBook version to match' }, 'direction': { 'type': 'string', 'enum': ['ltr', 'rtl'], - 'description': 'Direction of texts, default is detected in the pages' + 'title': 'Direction of texts, default is detected in the pages' }, 'theme': { 'type': 'string', 'default': 'default', - 'description': 'Name of the theme plugin to use' + 'title': 'Name of the theme plugin to use' }, 'variables': { 'type': 'object', - 'description': 'Templating context variables' + 'title': 'Templating context variables' }, 'plugins': { 'oneOf': [ @@ -48,7 +48,7 @@ module.exports = { }, 'pluginsConfig': { 'type': 'object', - 'description': 'Configuration for plugins' + 'title': 'Configuration for plugins' }, 'structure': { 'type': 'object', @@ -56,25 +56,25 @@ module.exports = { 'langs': { 'default': 'LANGS.md', 'type': 'string', - 'description': 'File to use as languages index', + 'title': 'File to use as languages index', 'pattern': '^[0-9a-zA-Z ... ]+$' }, 'readme': { 'default': 'README.md', 'type': 'string', - 'description': 'File to use as preface', + 'title': 'File to use as preface', 'pattern': '^[0-9a-zA-Z ... ]+$' }, 'glossary': { 'default': 'GLOSSARY.md', 'type': 'string', - 'description': 'File to use as glossary index', + 'title': 'File to use as glossary index', 'pattern': '^[0-9a-zA-Z ... ]+$' }, 'summary': { 'default': 'SUMMARY.md', 'type': 'string', - 'description': 'File to use as table of contents', + 'title': 'File to use as table of contents', 'pattern': '^[0-9a-zA-Z ... ]+$' } }, @@ -82,69 +82,69 @@ module.exports = { }, 'pdf': { 'type': 'object', - 'description': 'PDF specific configurations', + 'title': 'PDF specific configurations', 'properties': { 'pageNumbers': { 'type': 'boolean', 'default': true, - 'description': 'Add page numbers to the bottom of every page' + 'title': 'Add page numbers to the bottom of every page' }, 'fontSize': { 'type': 'integer', 'minimum': 8, 'maximum': 30, 'default': 12, - 'description': 'Font size for the PDF output' + 'title': 'Font size for the PDF output' }, 'fontFamily': { 'type': 'string', 'default': 'Arial', - 'description': 'Font family for the PDF output' + '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', - 'description': 'Paper size for the PDF' + 'title': 'Paper size for the PDF' }, 'chapterMark': { 'type': 'string', 'enum': ['pagebreak', 'rule', 'both', 'none'], 'default': 'pagebreak', - 'description': 'How to mark detected chapters' + 'title': 'How to mark detected chapters' }, 'pageBreaksBefore': { 'type': 'string', 'default': '/', - 'description': 'An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: "/"' + 'title': 'An XPath expression. Page breaks are inserted before the specified elements. To disable use the expression: "/"' }, 'margin': { 'type': 'object', 'properties': { 'right': { 'type': 'integer', - 'description': 'Right Margin', + 'title': 'Right Margin', 'minimum': 0, 'maximum': 100, 'default': 62 }, 'left': { 'type': 'integer', - 'description': 'Left Margin', + 'title': 'Left Margin', 'minimum': 0, 'maximum': 100, 'default': 62 }, 'top': { 'type': 'integer', - 'description': 'Top Margin', + 'title': 'Top Margin', 'minimum': 0, 'maximum': 100, 'default': 56 }, 'bottom': { 'type': 'integer', - 'description': 'Bottom Margin', + 'title': 'Bottom Margin', 'minimum': 0, 'maximum': 100, 'default': 56 |