diff options
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src/components/Body.js')
-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> ); } }); |