【问题标题】:Numbering table of contents for GitbookGitbook 的目录编号
【发布时间】:2018-01-14 18:16:11
【问题描述】:

我想为 gitbook 处理的一本书的目录编号,但不知道该怎么做。如果我使用 Gitbook 编辑器,在编辑时会优先查看编号,但在创建 html 版本的图书时看不到编号。

我知道可以这样做:https://gitbookio.gitbooks.io/documentation/content/format/chapters.html 的目录(侧边栏) 被编号。相比之下,https://toolchain.gitbook.com/ 不是。

【问题讨论】:

    标签: tableofcontents gitbook


    【解决方案1】:

    显然,默认情况下不再设置,使用默认主题时需要在do book.json中添加以下内容:

    "pluginsConfig": {
        "theme-default": {
            "showLevel": true
        }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-07
      • 2011-02-26
      • 1970-01-01
      • 2016-04-26
      • 2020-07-21
      相关资源
      最近更新 更多