blob: ad961757dbc60c49896635b08d1ad60083ca9ffa (
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({
activate: (dispatch, state, { Components, I18n }) => {
dispatch(Components.registerComponent(Theme, { role: 'website:body' }));
dispatch(I18n.registerLocales(locales));
},
reduce: reduceState
});
|