diff options
-rw-r--r-- | book.js | 20 | ||||
-rw-r--r-- | book.json | 9 | ||||
-rw-r--r-- | packages/gitbook-core/src/models/Config.js | 4 |
3 files changed, 11 insertions, 22 deletions
diff --git a/book.js b/book.js deleted file mode 100644 index a74e4e1..0000000 --- a/book.js +++ /dev/null @@ -1,20 +0,0 @@ -const pkg = require('./package.json'); - -module.exports = { - // Documentation for GitBook is stored under "docs" - root: './docs', - title: 'GitBook Toolchain Documentation', - - // Use the "official" theme - plugins: [], - - variables: { - version: pkg.version - }, - - pluginsConfig: { - sitemap: { - hostname: 'https://toolchain.gitbook.com' - } - } -}; diff --git a/book.json b/book.json new file mode 100644 index 0000000..5cf37e6 --- /dev/null +++ b/book.json @@ -0,0 +1,9 @@ +{ + "root": "./docs", + "pluginsConfig": { + "disqus": { + "shortName": "test" + } + }, + "plugins": ["disqus"] +} diff --git a/packages/gitbook-core/src/models/Config.js b/packages/gitbook-core/src/models/Config.js index 6e28f66..3a08839 100644 --- a/packages/gitbook-core/src/models/Config.js +++ b/packages/gitbook-core/src/models/Config.js @@ -27,10 +27,10 @@ class Config extends Record(DEFAULTS) { * @param {String} pluginName * @return {Map} */ - getForPlugin(pluginName) { + getForPlugin(pluginName, defaultValue = Map()) { return this.getIn([ 'pluginsConfig', pluginName - ]); + ], defaultValue); } } |