mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-12 05:48:57 +00:00
committed by
Samy Pessé
parent
4b3ac4e827
commit
a96ef569bd
@@ -21,8 +21,20 @@ The following is a reference of the available data during book's parsing and the
|
||||
|
||||
| Variable | Description |
|
||||
| -------- | ----------- |
|
||||
| `book.[CONFIGURATION_DATA]` | All the `variables` set via the `book.json` are available through the book variable. |
|
||||
| `book.language` | Current language for a multilingual book |
|
||||
| `book.[value]` | All other values under `variables` in the `book.json` are accessible here |
|
||||
|
||||
For example, with this `book.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
variables: {
|
||||
hello: "everyone"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
... the following text `{{ book.hello }}` will expand to `everyone`.
|
||||
|
||||
### GitBook Variables
|
||||
|
||||
|
||||
Reference in New Issue
Block a user