美文网首页非JAVA开发者 - JAVA
4.文档 - gitbook - 配置

4.文档 - gitbook - 配置

作者: 风云雄霸天下123456 | 来源:发表于2018-02-27 23:18 被阅读3次

参考


book.json的一些配置信息

  • title:标题
  • author:作者信息
  • description:书本描述
  • language:使用的语言
  • gitbook:指定gitbook版本
  • root:指定存放gitbook文件的根目录
  • links:在侧边栏添加链接
  • styles:自定义样式
  • plugins:插件
  • pluginsConfig:插件配置
  • structure:设置Readme, Summary, Glossary等对应的文件

示例

  • 基础的
    {
        "title": "Gitbook Example",
        "author": "mingwang",
        "description": "Gitbook 项目示例",
        "language": "zh-hans",
        "gitbook": ">=3.0.0",
        "root": ".",
        "links": {
            "sidebar": {
                "Home": "http://www.baidu.com"
            }
        },
        "styles": {
            "website": "",
            "ebook": "",
            "pdf": "",
            "mobi": "",
            "epub": ""
        },
        "plugins": [
            "-search"
        ]
    }
    
  • 完善的
    {
        "title": "GitBook 使用教程",
        "description": "记录 GitBook 的配置和一些插件的使用",
        "author": "zhangjikai",
        "output.name": "site",
        "language": "zh-hans",
        "gitbook": "3.2.3",
        "root": ".",
        "structure": {
            "readme": "introduction.md"
        },
        "links": {
            "sidebar": {
                "Home": "http://www.zhangjikai.com"
            }
        },
        "plugins": [
            "-lunr",
            "-search",
            "-highlight",
            "-livereload",
            "search-plus@^0.0.11",
            "simple-page-toc@^0.1.1",
            "github@^2.0.0",
            "github-buttons@2.1.0",
            "edit-link@^2.0.2",
            "disqus@^0.1.0",
            "prism@^2.1.0",
            "prism-themes@^0.0.2",
            "advanced-emoji@^0.2.1",
            "anchors@^0.7.1",
            "include-codeblock@^3.0.2",
            "ace@^0.3.2",
            "emphasize@^1.1.0",
            "katex@^1.1.3",
            "splitter@^0.0.8",
            "mermaid-gb3@2.1.0",
            "tbfed-pagefooter@^0.0.1",
            "expandable-chapters-small@^0.1.7",
            "sectionx@^3.1.0",
            "donate@^1.0.2",
            "local-video@^1.0.1",
            "sitemap-general@^0.1.1",
            "anchor-navigation-ex@0.1.8",
            "favicon@^0.0.2",
            "todo@^0.1.3",
            "3-ba@^0.9.0",
            "terminal@^0.3.2",
            "alerts@^0.2.0",
            "include-csv@^0.1.0",
            "puml@^1.0.1",
            "musicxml@^1.0.2",
            "klipse@^1.2.0",
            "versions-select@^0.1.1",
            "rss@^3.0.2",
            "-sharing",
            "sharing-plus@^0.0.2",
            "graph@^0.1.0",
            "chart@^0.2.0"
        ],
    
        "pluginsConfig": {
            "theme-default": {
                "showLevel": true
            },
            "disqus": {
                "shortName": "gitbookuse"
            },
            "prism": {
                "css": [
                    "prism-themes/themes/prism-base16-ateliersulphurpool.light.css"
                ]
            },
            "github": {
                "url": "https://github.com/zhangjikai/gitbook-use"
            },
            "github-buttons": {
                "repo": "zhangjikai/gitbook-use",
                "types": [
                    "star"
                ],
                "size": "small"
            },
            "include-codeblock": {
                "template": "ace",
                "unindent": true,
                "edit": true
            },
            "sharing": {
               "douban": false,
               "facebook": false,
               "google": true,
               "hatenaBookmark": false,
               "instapaper": false,
               "line": false,
               "linkedin": true,
               "messenger": false,
               "pocket": false,
               "qq": false,
               "qzone": false,
               "stumbleupon": false,
               "twitter": false,
               "viber": false,
               "vk": false,
               "weibo": true,
               "whatsapp": false,
               "all": [
                   "facebook", "google", "twitter",
                   "weibo", "instapaper", "linkedin",
                   "pocket", "stumbleupon", "qq", "qzone"
               ]
           },
            "tbfed-pagefooter": {
                "copyright": "Copyright © zhangjikai.com 2017",
                "modify_label": "该文件修订时间:",
                "modify_format": "YYYY-MM-DD HH:mm:ss"
            },
            "3-ba": {
                "token": "ff100361cdce95dd4c8fb96b4009f7bc"
            },
            "donate": {
                "wechat": "https://zhangjikai.com/resource/weixin.png",
                "alipay": "https://zhangjikai.com/resource/alipay.png",
                "title": "",
                "button": "赏",
                "alipayText": "支付宝打赏",
                "wechatText": "微信打赏"
            },
            "simple-page-toc": {
                "maxDepth": 3,
                "skipFirstH1": true
            },
            "edit-link": {
                "base": "https://github.com/zhangjikai/gitbook-use/edit/master",
                "label": "Edit This Page"
            },
            "sitemap-general": {
                "prefix": "http://gitbook.zhangjikai.com"
            },
            "anchor-navigation-ex": {
                "isRewritePageTitle": false,
                "tocLevel1Icon": "fa fa-hand-o-right",
                "tocLevel2Icon": "fa fa-hand-o-right",
                "tocLevel3Icon": "fa fa-hand-o-right"
            },
            "sectionx": {
                "tag": "b"
            },
            "favicon": {
                "shortcut": "favicon.ico",
                "bookmark": "favicon.ico"
            },
            "terminal": {
                "copyButtons": true,
                "fade": false,
                "style": "flat"
            },
    
            "versions": {
                "options": [
                    {
                        "value": "http://gitbook.zhangjikai.com",
                        "text": "v3.2.3"
                    },
                    {
                        "value": "http://gitbook.zhangjikai.com/v2/",
                        "text": "v2.6.4"
                    }
                ]
            },
    
            "rss": {
                "title": "GitBook 使用教程",
                "description": "记录 GitBook 的配置和一些插件的使用",
                "author": "Jikai Zhang",
                "feed_url": "http://gitbook.zhangjikai.com/rss",
                "site_url": "http://gitbook.zhangjikai.com/",
                "managingEditor": "me@zhangjikai.com",
                "webMaster": "me@zhangjikai.com",
                "categories": [
                    "gitbook"
                ]
            }
        }
    }
    

相关文章

  • 4.文档 - gitbook - 配置

    参考 GitBook配置 book.json的一些配置信息 title:标题 author:作者信息 descri...

  • GitBook 使用教程

    GitBook 使用教程 背景 生成接口文档 GitBook 简介 GitBook 官网 GitBook 文档 G...

  • 005 GitBook 搭建使用教程

    GitBook 简介 GitBook 官网 GitBook 文档 GitBook 准备工作 安装 Node.js ...

  • gitbook

    目前 gitbook 提供三类文档: Book 文档,API 文档和 FAQ 文档。 gitbook 生成电子书主...

  • gitbook to hugo迁移改动点

    gitbook to hugo迁移改动点 src/config.toml配置文件title 修改为文档的标题 所有...

  • gitbook

    gitbook使用文档

  • 类似GitBook的在线文档创作平台

    1 Gitbook 对于在线文档创作平台,当然还是首推GitBook GitBook为免费用户提供 10个空间(可...

  • Gitbook 本地搭建

    中文文档:http://gitbook.hushuang.me/setup.html 由于Gitbook的Edit...

  • GitBook

    gitbook官网文档gitbook编辑器 安装gitbook很简单,前提是需要先安装 NodeJS(V4.0及以...

  • 使用 Gitbook 打造你的电子书

    本文详细讲解了 Gitbook 生成电子书的完整过程,内容包括:安装、命令、配置、文档结构、生成电子书、部署。限于...

网友评论

    本文标题:4.文档 - gitbook - 配置

    本文链接:https://www.haomeiwen.com/subject/rcnmxftx.html