refactor: clean up dependencies (#6470)

This commit is contained in:
Joshua Chen 2022-01-26 13:12:03 +08:00 committed by GitHub
parent f0b08f493d
commit 83fb3a825f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 29 additions and 220 deletions

View file

@ -110,22 +110,12 @@ export default function docusaurusThemeClassic(
return {
name: 'docusaurus-theme-classic',
/*
Does not seem needed: webpack can already hot reload theme files
getPathsToWatch() {
return [
path.join(__dirname, '..', 'lib'),
path.join(__dirname, '..', 'lib-next'),
];
},
*/
getThemePath() {
return path.join(__dirname, '..', 'lib-next', 'theme');
return path.join(__dirname, '../lib-next/theme');
},
getTypeScriptThemePath() {
return path.resolve(__dirname, '..', 'src', 'theme');
return path.resolve(__dirname, '../src/theme');
},
getTranslationFiles: async () => getTranslationFiles({themeConfig}),