summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-theme-default/src/index.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-09-05 12:14:37 +0200
committerSamy Pessé <samypesse@gmail.com>2016-09-05 12:14:37 +0200
commit839904a70419aaef1006be820ec092d978236a20 (patch)
treed810c7880c8b26fc052ccf672bf3477e1722edae /packages/gitbook-plugin-theme-default/src/index.js
parent0e74c9bad5b184528880d499485e1154c000b1b5 (diff)
downloadgitbook-839904a70419aaef1006be820ec092d978236a20.zip
gitbook-839904a70419aaef1006be820ec092d978236a20.tar.gz
gitbook-839904a70419aaef1006be820ec092d978236a20.tar.bz2
Start architecturing new default theme
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src/index.js')
-rw-r--r--packages/gitbook-plugin-theme-default/src/index.js16
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' }));
+});