blob: a07901c174cc02e0a1b42878aee24eb67cd492e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
const GitBook = require('gitbook-core');
const Theme = require('./components/Theme');
const reduceState = require('./reducers');
const locales = require('./i18n');
module.exports = GitBook.createPlugin({
init: (dispatch, state, { Components, I18n }) => {
dispatch(Components.registerComponent(Theme, { role: 'Body' }));
dispatch(I18n.registerLocales(locales));
},
reduce: reduceState
});
|