book.json配置文件

{
    "gitbook": "3.x", // gitbook版本
    "language": "zh-hans", // 语言

    // 警告:它会覆盖命令行中的值
    // 在book.json中没有建议这个选项
    "output": null,         // 用于输出的文件夹
    "generator": "site",    // Generator to use for building
    "extension": null,      // 从输出扩展名中检测: "epub", "pdf", "mobi"
    "root": ".",
    "author": "user",

    // 有些是默认从README中提取的
    "title": null,
    "description": null, // 描述
    "isbn": null, // 书号

    "plugins": [], // 插件列表

    "structure": {
        "readme": "preface.md"
    },

    // 插件的全局配置
    "pluginsConfig": {
        "fontSettings": {
            "theme": "white", // "sepia", "night" or "white",
            "family": "sans", // "serif" or "sans",
            "size": 2, // 1 to 4
        }
    },

    // 模板的变量
    "variables": {},

    // 模板中的链接 (null: default, false: remove, string: new value)
    "links": {
        // 侧边栏顶部的自定义链接
        "sidebar": {
            "Custom link name": "https://customlink.com"
        },

        // 共享链接
        "sharing": {
            "google": null,
            "facebook": null,
            "twitter": null,
            "weibo": null,
            "all": null
        }
    },


    // PDF 生成的选项
    "pdf": {
        "pageNumbers": false,        // 将页码添加到每个页面的底部
        "fontSize": 12,              // 字段内容的字体大小
        "paperSize": "a4",           // PDF的纸张大小 [u’a0’, u’a1’, u’a2’, u’a3’, u’a4’, u’a5’, u’a6’, u’b0’, u’b1’, u’b2’, u’b3’, u’b4’, u’b5’, u’b6’, u’legal’, u’letter’]

        // 边框
        "margin": {
            "right": 62,
            "left": 62,
            "top": 36,
            "bottom": 36
        },

        "headerTemplate": null,        // 模板
        "footerTemplate": null         //模板
    }
}

results matching ""

    No results matching ""