diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-24 13:52:15 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-24 13:52:15 +0100 |
commit | 1ed63ce4f52aacac7134d6f6cff9773bec73fb18 (patch) | |
tree | e838249f6719685e70da34f917b0158fa1cbbe42 /docs | |
parent | e85ad95bcf3627a223b3a2eacaa29835142249eb (diff) | |
download | gitbook-1ed63ce4f52aacac7134d6f6cff9773bec73fb18.zip gitbook-1ed63ce4f52aacac7134d6f6cff9773bec73fb18.tar.gz gitbook-1ed63ce4f52aacac7134d6f6cff9773bec73fb18.tar.bz2 |
Add context for multi-lingual books
Diffstat (limited to 'docs')
-rw-r--r-- | docs/variables.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/variables.md b/docs/variables.md index aaa9601..879c646 100644 --- a/docs/variables.md +++ b/docs/variables.md @@ -11,6 +11,7 @@ The following is a reference of the available data during book's parsing and the | `page` | Current page specific information | | `file` | File associated with the current page specific information | | `summary` | Information about the table of contents | +| `languages` | List of languages for multi-lingual books | | `config` | Dump of the `book.json` | ### Book Variables @@ -53,3 +54,10 @@ Thw whole table of contents (`SUMMARY.md`) can be accessed: `summary.parts[0].articles[0].title` will return the title of the first article. +#### Multi-lingual book Variable + +| Variable | Description | +| -------- | ----------- | +| `languages.list` | List of languages for this book | + +Languages are defined by `{ id: 'en', title: 'English' }`. |