gitbook中book.json配置

{
"title":"xxx",
"description": "xxx中文版", 
 "pluginsConfig": {
    "fontSettings": {
      "theme": "white",
      "family": "msyh",
      "size": 2
    },
    "plugins": [
      "yahei",
      "katex",
      "-search"
    ]
  },
  "pdf": {
    "pageNumbers": true,
    "fontSize": 13,
    "margin": {
      "right": 10,
      "left": 10,
      "top": 10,
      "bottom": 15
    }
}

// Generator to use for building
// Caution: it overrides the value from the command line
// It's not advised this option in the book.json
"generator": "site",

// Book metadats (somes are extracted from the README by default)
"title": null,
"description": null,
"isbn": null,

// For ebook format, the extension to use for generation (default is detected from output extension)
// "epub", "pdf", "mobi"
// Caution: it overrides the value from the command line
// It's not advised this option in the book.json
"extension": null,

// Plugins list, can contain "-name" for removing default plugins
"plugins": [],

// Global configuration for plugins
"pluginsConfig": {
    "fontSettings": {
        "theme": "sepia", "night" or "white",
        "family": "serif" or "sans",
        "size": 1 to 4
    }
},

// Variables for templating
"variables": {},

// Links in template (null: default, false: remove, string: new value)
"links": {
    // Custom links at top of sidebar
    "sidebar": {
        "Custom link name": "https://customlink.com"
    },

    // Sharing links
    "sharing": {
        "google": null,
        "facebook": null,
        "twitter": null,
        "weibo": null,
        "all": null
    }
},


// Options for PDF generation
"pdf": {
    // Add page numbers to the bottom of every page
    "pageNumbers": false,

    // Font size for the fiel content
    "fontSize": 12,

    // Paper size for the pdf
    // Choices are [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’]
    "paperSize": "a4",

    // Margin (in pts)
    // Note: 72 pts equals 1 inch
    "margin": {
        "right": 62,
        "left": 62,
        "top": 36,
        "bottom": 36
    },

    //Header HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_.
    "headerTemplate": null,

    //Footer HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_.
    "footerTemplate": null
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值