为 gitbook 配置 DISQUS 插件
- 在 Disqus 官网 注册账号,并设置好 Site Shortname,URL 等等;
- 在 Trusted Domains 中添加 gitbook.com 和 gitbools.io(一行一条网址,不用加 www);
- 新建 book.json 文件,写入以下代码:
{ "plugins": ["disqus"], "pluginsConfig": { "disqus": { "shortName": "你设置的 shortname" } } }
- 讲此文件放到 github 仓库根目录,push