diff options
author | Samy Pessé <samypesse@gmail.com> | 2017-02-26 22:35:51 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2017-02-26 22:35:51 +0100 |
commit | d640636784bc86bcbe56f77c0455b19b22fe0e6f (patch) | |
tree | 6c3871d4680d4f0dca462378fb5b5d975249a890 /packages/gitbook-plugin-theme-default/src/components/Page.js | |
parent | 36b00d6cf2d521bdcfe2d954a02d6716c9de923e (diff) | |
download | gitbook-d640636784bc86bcbe56f77c0455b19b22fe0e6f.zip gitbook-d640636784bc86bcbe56f77c0455b19b22fe0e6f.tar.gz gitbook-d640636784bc86bcbe56f77c0455b19b22fe0e6f.tar.bz2 |
Start removing nunjucks
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src/components/Page.js')
-rw-r--r-- | packages/gitbook-plugin-theme-default/src/components/Page.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/components/Page.js b/packages/gitbook-plugin-theme-default/src/components/Page.js index cbce704..5ad8901 100644 --- a/packages/gitbook-plugin-theme-default/src/components/Page.js +++ b/packages/gitbook-plugin-theme-default/src/components/Page.js @@ -1,6 +1,10 @@ const GitBook = require('gitbook-core'); const { React } = GitBook; +/** + * Container for the page. + * @type {ReactClass} + */ const Page = React.createClass({ propTypes: { page: GitBook.PropTypes.Page @@ -16,7 +20,7 @@ const Page = React.createClass({ <GitBook.InjectedComponentSet matching={{ role: 'page:header' }} props={this.props} /> <GitBook.InjectedComponent matching={{ role: 'page:container' }} props={this.props}> - <GitBook.HTMLContent html={page.content} /> + <GitBook.PageContent document={page.document} /> </GitBook.InjectedComponent> <GitBook.InjectedComponentSet matching={{ role: 'page:footer' }} props={this.props} /> |