summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-06-08 20:06:50 +0200
committerSamy Pesse <samypesse@gmail.com>2016-06-08 20:06:50 +0200
commit826d47251133dd72d667cf0c754acd1ab87c23a9 (patch)
tree2e973e92ca8eef602ec1c7fab7249a140d46ad77
parenta6b1f4bd87355cafed4cf4307254357899bb45a1 (diff)
downloadgitbook-826d47251133dd72d667cf0c754acd1ab87c23a9.zip
gitbook-826d47251133dd72d667cf0c754acd1ab87c23a9.tar.gz
gitbook-826d47251133dd72d667cf0c754acd1ab87c23a9.tar.bz2
Fix documentation about themes
-rw-r--r--docs/config.md10
-rw-r--r--docs/themes/README.md17
2 files changed, 18 insertions, 9 deletions
diff --git a/docs/config.md b/docs/config.md
index 01d4d48..2629cbb 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -20,18 +20,12 @@ GitBook allows you to customize your book using a flexible configuration. These
Plugins and their configurations are specified in the `book.json`. See [the plugins section](plugins/README.md) for more details.
-| Variable | Description |
-| -------- | ----------- |
-| `plugins` | List of plugins to load |
-| `pluginsConfig` |Configuration for plugins |
-
-### Theme
-
Since version 3.0.0, GitBook can use themes. See [the theming section](themes/README.md) for more details.
| Variable | Description |
| -------- | ----------- |
-| `theme` | The theme to use for the book |
+| `plugins` | List of plugins to load |
+| `pluginsConfig` |Configuration for plugins |
### Structure
diff --git a/docs/themes/README.md b/docs/themes/README.md
index 5209d89..a0b138e 100644
--- a/docs/themes/README.md
+++ b/docs/themes/README.md
@@ -17,7 +17,22 @@ A theme is a plugin containing templates and assets. Overriding any individual t
### Extend/Customize theme in a book
-Authors can extend the templates of a theme directly from their book's source (without creating an external theme). Templates will be resolved in the `_layouts` folder of the book first, then in
+Authors can extend the templates of a theme directly from their book's source (without creating an external theme). Templates will be resolved in the `_layouts` folder of the book first, then in the installed plugins/themes.
+
+### Extend instead of Forking
+
+When you want to make your theme changes available to multiple books, instead of forking the default theme, you can extend it using the [templating syntax](../templating/README.md):
+
+```html
+{% extends template.self %}
+
+{% block body %}
+ {{ super() }}
+ ... This will be added to the "body" block
+{% endblock %}
+```
+
+Take a look at the [API](https://github.com/GitbookIO/theme-api) theme for a more complete example.
### Publish a theme