feat: add @theme/Markdown to allow user modify their own markdown react component

This commit is contained in:
endiliey 2018-09-06 21:33:50 +08:00
parent 1ff6733464
commit d00864d222
8 changed files with 41 additions and 30 deletions

View file

@ -7,7 +7,7 @@ module.exports = function loadConfig(siteDir) {
? customThemePath
: path.resolve(__dirname, '../theme');
const themeComponents = ['Docs', 'Loading', 'NotFound'];
const themeComponents = ['Docs', 'Loading', 'NotFound', 'Markdown'];
themeComponents.forEach(component => {
if (!require.resolve(path.join(themePath, component))) {
throw new Error(