summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-theme-default/src/index.js
blob: 3630bbe1e879b4877e8133742f7605241de42b71 (plain)
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' }));
});