2019-06-06 04:49:11 -04:00
|
|
|
/**
|
2020-02-25 10:12:28 -05:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2019-06-06 04:49:11 -04:00
|
|
|
*
|
|
|
|
|
* 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');
|
2021-03-05 08:49:17 -05:00
|
|
|
const {validateThemeConfig} = require('./validateThemeConfig');
|
2019-06-06 04:49:11 -04:00
|
|
|
|
2021-03-05 08:49:17 -05:00
|
|
|
function theme() {
|
2019-06-06 04:49:11 -04:00
|
|
|
return {
|
|
|
|
|
name: 'docusaurus-theme-live-codeblock',
|
|
|
|
|
|
|
|
|
|
getThemePath() {
|
|
|
|
|
return path.resolve(__dirname, './theme');
|
|
|
|
|
},
|
2019-07-20 05:55:24 -04:00
|
|
|
|
|
|
|
|
configureWebpack() {
|
|
|
|
|
return {
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
2020-12-28 04:47:55 -05:00
|
|
|
buble: path.resolve(__dirname, './custom-buble.js'),
|
2019-07-20 05:55:24 -04:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
2019-06-06 04:49:11 -04:00
|
|
|
};
|
2021-03-05 08:49:17 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
module.exports = theme;
|
|
|
|
|
|
|
|
|
|
theme.validateThemeConfig = validateThemeConfig;
|