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 (command line option: --pluginsConfig) with the following content:

  1. {
  2. "disqus": {
  3. "shortName": "XXXXXXX"
  4. }
  5. }