diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-09-05 12:14:37 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-09-05 12:14:37 +0200 |
commit | 839904a70419aaef1006be820ec092d978236a20 (patch) | |
tree | d810c7880c8b26fc052ccf672bf3477e1722edae /packages/gitbook-plugin-theme-default/src | |
parent | 0e74c9bad5b184528880d499485e1154c000b1b5 (diff) | |
download | gitbook-839904a70419aaef1006be820ec092d978236a20.zip gitbook-839904a70419aaef1006be820ec092d978236a20.tar.gz gitbook-839904a70419aaef1006be820ec092d978236a20.tar.bz2 |
Start architecturing new default theme
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src')
-rw-r--r-- | packages/gitbook-plugin-theme-default/src/index.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/index.js b/packages/gitbook-plugin-theme-default/src/index.js new file mode 100644 index 0000000..8c47b38 --- /dev/null +++ b/packages/gitbook-plugin-theme-default/src/index.js @@ -0,0 +1,16 @@ +const React = require('react'); +const GitBook = require('gitbook-core'); + +const ThemeBody = React.createClass({ + render() { + return ( + <div> + My Base theme for gitbook + </div> + ); + } +}); + +module.exports = GitBook.createPlugin((dispatch, state) => { + dispatch(GitBook.registerComponent(ThemeBody, { role: 'Body' })); +}); |