fix(v2): allow search page swizzle (#3280)

* feat: search page moved to theme folder

* feat: docusaurus-theme-search-algolia/src/pages/search removed

* SearchPage added to SwizzleAllowed array

* feat: SearchPage route updated in index of it's package directory

* Update packages/docusaurus-theme-classic/src/index.js

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
This commit is contained in:
Ali Hosseini 2020-08-14 14:27:34 +04:30 committed by GitHub
parent cb39560a89
commit 0cc78fdd41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 1 deletions

View file

@ -19,7 +19,7 @@ function theme(context) {
baseUrl,
siteConfig: {title, url, favicon},
} = context;
const pagePath = path.resolve(__dirname, './pages/search/index.js');
const pagePath = path.resolve(__dirname, './theme/SearchPage/index.js');
return {
name: 'docusaurus-theme-search-algolia',