Disqus integration for GitBook

You can use install it via NPM:

  1. $ npm install gitbook-plugin-disqus

And use it for your book with:

  1. $ gitbook build ./ --plugins=disqus

You can set the Disqus shortname using the plugins configuration in the book.json:

  1. {
  2. plugins: ["disqus"],
  3. pluginsConfig: {
  4. "disqus": {
  5. "shortName": "XXXXXXX"
  6. }
  7. }
  8. }