1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
const React = require('react'); const GitBook = require('gitbook-core'); const ThemeBody = React.createClass({ render() { return ( <div> <GitBook.Head title={'Homepage'} titleTemplate="%s - GitBook" /> My Base theme for gitbook </div> ); } }); module.exports = GitBook.createPlugin((dispatch, state) => { dispatch(GitBook.registerComponent(ThemeBody, { role: 'Body' })); });