diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-17 13:39:20 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-17 13:39:20 +0100 |
commit | 96105d6ba0ac1bc86bd34088ae4763bf09b3c3ea (patch) | |
tree | babef2d655f326e71be04ce2420373ba5e390fd4 /docs | |
parent | 853ba6079c37aa747721c8ee5d014479e69f3ad9 (diff) | |
download | gitbook-96105d6ba0ac1bc86bd34088ae4763bf09b3c3ea.zip gitbook-96105d6ba0ac1bc86bd34088ae4763bf09b3c3ea.tar.gz gitbook-96105d6ba0ac1bc86bd34088ae4763bf09b3c3ea.tar.bz2 |
Extend templating context (and json output)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/variables.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/variables.md b/docs/variables.md index 35c7dd7..a0fc64e 100644 --- a/docs/variables.md +++ b/docs/variables.md @@ -15,12 +15,15 @@ The following is a reference of the available data during book's parsing and the | Variable | Description | | -------- | ----------- | +| `book.title` | Title specified in the `book.json` (or detected from the README) | +| `book.description` | Description specified in the `book.json` (or detected from the README) | | `book.[CONFIGURATION_DATA]` | All the `variables` set via the `book.json` are available through the book variable. | ### GitBook Variables | Variable | Description | | -------- | ----------- | +| `gitbook.time` | The current time (when you run the `gitbook` command). | | `gitbook.version` | Version of GitBook used to generate the book | ### File Variables |