Skip to content
Chu-Siang Lai edited this page Mar 17, 2017 · 5 revisions

Welcome to the how-to-build-the-gitbook-with-gitbook-cli wiki!

book.json

  • Enable the plugins of disqus, ga and github.

    {
      "title": "BOOK_TITLE",
      "description": "BOOK_DESC", 
      "language": "zh-tw",
      "plugins": [
        "disqus",
        "ga",
        "github"
      ],
      "pluginsConfig": {
        "disqus": {
          "shortName": "DISQUS_NAME"
        },
        "ga": {
          "token": "GA_TOKEN"
        },
        "github": {
          "url": "https://github.com/chusiang/how-to-build-the-gitbook-with-gitbook-cli/"
        }
      }
    }
    
  • Enable the plugins of atoc.

    {
      "plugins": ["atoc"],
      "pluginsConfig": {
         "atoc": {
           "addClass": true,
           "className": "atoc"
          }
      }
    }
    
  • Disable the plugin of sharing link.

    {
      "title": "BOOK_TITLE",
      "description": "BOOK_DESC", 
      "language": "zh-tw",
      "plugins": [
        "-sharing"
      ]
    }
    
Clone this wiki locally