diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-10-17 23:56:41 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-10-17 23:56:41 +0200 |
commit | 66c2a6c0764f106e312bcc8c04ba00c9e5044ea1 (patch) | |
tree | 94fcc7b06962fc382999d4ed8f349924ccd67533 | |
parent | 182bb9eb8678a79edb63e9899f14d0c19b2c48d0 (diff) | |
download | gitbook-66c2a6c0764f106e312bcc8c04ba00c9e5044ea1.zip gitbook-66c2a6c0764f106e312bcc8c04ba00c9e5044ea1.tar.gz gitbook-66c2a6c0764f106e312bcc8c04ba00c9e5044ea1.tar.bz2 |
Add roles "body:wrapper", "toolbar:wrapper", "page:wrapper"
-rw-r--r-- | packages/gitbook-plugin-theme-default/src/components/Body.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/components/Body.js b/packages/gitbook-plugin-theme-default/src/components/Body.js index 2eba09a..993b20d 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Body.js +++ b/packages/gitbook-plugin-theme-default/src/components/Body.js @@ -14,10 +14,16 @@ const Body = React.createClass({ const { page, readme } = this.props; return ( - <div className="Body page-wrapper"> - <Toolbar title={page.title} readme={readme} /> - <Page page={page} /> - </div> + <GitBook.InjectedComponent matching={{ role: 'body:wrapper' }}> + <div className="Body page-wrapper"> + <GitBook.InjectedComponent matching={{ role: 'toolbar:wrapper' }}> + <Toolbar title={page.title} readme={readme} /> + </GitBook.InjectedComponent> + <GitBook.InjectedComponent matching={{ role: 'page:wrapper' }}> + <Page page={page} /> + </GitBook.InjectedComponent> + </div> + </GitBook.InjectedComponent> ); } }); |