summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-10-29 17:20:30 +0100
committerSamy Pessé <samypesse@gmail.com>2014-10-29 17:20:30 +0100
commit3c8de4a8ab8dd3ccea26baea3d14758a0032d488 (patch)
treecc7adfd70a244e390fca6f29bb10ce6acf27bd66
parent591d8fc9eef2c6727c3d66bbe50b833893731532 (diff)
downloadgitbook-3c8de4a8ab8dd3ccea26baea3d14758a0032d488.zip
gitbook-3c8de4a8ab8dd3ccea26baea3d14758a0032d488.tar.gz
gitbook-3c8de4a8ab8dd3ccea26baea3d14758a0032d488.tar.bz2
Add 'variables' to book.json doc
-rw-r--r--README.md3
-rw-r--r--lib/generate/config.js3
2 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1a8d9a9..8586fc2 100644
--- a/README.md
+++ b/README.md
@@ -74,6 +74,9 @@ Here are the options that can be stored in this file:
}
},
+ // Variables for templating
+ "variables": {},
+
// Links in template (null: default, false: remove, string: new value)
"links": {
// Custom links at top of sidebar
diff --git a/lib/generate/config.js b/lib/generate/config.js
index 4d814c8..7ec0741 100644
--- a/lib/generate/config.js
+++ b/lib/generate/config.js
@@ -38,6 +38,9 @@ var CONFIG = {
}
},
+ // 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