diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-17 16:20:45 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-17 16:20:45 +0100 |
commit | 4e7cb9b23f9234fcbcdc1d151501c1a7a7ea0028 (patch) | |
tree | 6717ebb00890852ce4aeb68a056dc949405b29ea /lib/config | |
parent | 5fdee2cb5e846303b5bd4f10552b1d60201c3cb7 (diff) | |
download | gitbook-4e7cb9b23f9234fcbcdc1d151501c1a7a7ea0028.zip gitbook-4e7cb9b23f9234fcbcdc1d151501c1a7a7ea0028.tar.gz gitbook-4e7cb9b23f9234fcbcdc1d151501c1a7a7ea0028.tar.bz2 |
Load template engine for website output using theme configuration
Diffstat (limited to 'lib/config')
-rw-r--r-- | lib/config/default.js | 8 | ||||
-rw-r--r-- | lib/config/plugins.js | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/config/default.js b/lib/config/default.js index a35f1a5..1695e11 100644 --- a/lib/config/default.js +++ b/lib/config/default.js @@ -20,6 +20,9 @@ module.exports = { 'summary': 'SUMMARY.md' }, + // Theme for output + 'theme': 'default', + // CSS Styles 'styles': { 'website': 'styles/website.css', @@ -39,11 +42,6 @@ module.exports = { // Variables for templating 'variables': {}, - // Set another theme with your own layout - // It's recommended to use plugins or add more options for default theme, though - // See https://github.com/GitbookIO/gitbook/issues/209 - 'theme': path.resolve(__dirname, '../theme'), - // Links in template (null: default, false: remove, string: new value) 'links': { // Custom links at top of sidebar diff --git a/lib/config/plugins.js b/lib/config/plugins.js index 43eafdf..c75cd55 100644 --- a/lib/config/plugins.js +++ b/lib/config/plugins.js @@ -1,7 +1,7 @@ var _ = require('lodash'); // Default plugins added to each books -var DEFAULT_PLUGINS = ['highlight', 'search', 'sharing', 'fontsettings']; +var DEFAULT_PLUGINS = ['highlight', 'search', 'sharing', 'fontsettings', 'theme-default']; // Return true if a plugin is a default plugin function isDefaultPlugin(name, version) { |