mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 10:22:30 +02:00
feat(v2): implement theme component overriding (#1435)
* feat(v2): implement component overriding * siteDir theme overriding should work for > 1 level directory * fallback for essential component like Loading * rename default -> classic
This commit is contained in:
parent
1697f9cebb
commit
eedd4c481c
38 changed files with 529 additions and 202 deletions
|
@ -158,6 +158,22 @@ class DocusaurusPluginContentBlog {
|
|||
|
||||
configureWebpack(config, isServer, {getBabelLoader, getCacheLoader}) {
|
||||
return {
|
||||
resolve: {
|
||||
alias: {
|
||||
'@theme/BlogListPage': path.resolve(
|
||||
__dirname,
|
||||
'./theme/BlogListPage',
|
||||
),
|
||||
'@theme/BlogPostItem': path.resolve(
|
||||
__dirname,
|
||||
'./theme/BlogPostItem',
|
||||
),
|
||||
'@theme/BlogPostPage': path.resolve(
|
||||
__dirname,
|
||||
'./theme/BlogPostPage',
|
||||
),
|
||||
},
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue