feat(theme-algolia): add option.replaceSearchResultPathname to process/replaceAll search result urls

#8428
This commit is contained in:
sebastienlorber 2023-01-26 16:36:26 +01:00
parent e5b0707fab
commit deb376e4a6
18 changed files with 214 additions and 51 deletions

View file

@ -401,6 +401,13 @@ const config = {
appId: 'X1Z85QJPUV',
apiKey: 'bf7211c161e8205da2f933a02534105a',
indexName: 'docusaurus-2',
replaceSearchResultPathname:
isDev || isDeployPreview
? {
from: /^\/docs\/next/g,
to: '/docs',
}
: undefined,
},
navbar: {
hideOnScroll: true,