docusaurus/packages/docusaurus-theme-live-codeb.../src/index.js

34 lines
704 B
JavaScript
Raw Normal View History

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const path = require('path');
const {validateThemeConfig} = require('./validateThemeConfig');
function theme() {
return {
name: 'docusaurus-theme-live-codeblock',
getThemePath() {
return path.resolve(__dirname, './theme');
},
configureWebpack() {
return {
resolve: {
alias: {
buble: path.resolve(__dirname, './custom-buble.js'),
},
},
};
},
};
}
module.exports = theme;
theme.validateThemeConfig = validateThemeConfig;