added search
This commit is contained in:
parent
07a3f36532
commit
67e2db305a
@ -57,6 +57,38 @@ const config = {
|
|||||||
themeConfig:
|
themeConfig:
|
||||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||||
({
|
({
|
||||||
|
algolia: {
|
||||||
|
// The application ID provided by Algolia
|
||||||
|
appId: '54SN3WDSZ2',
|
||||||
|
|
||||||
|
// Public API key: it is safe to commit it
|
||||||
|
apiKey: 'ea64f7234545abe12373c633bc9ffc33',
|
||||||
|
|
||||||
|
indexName: 'survival-pi',
|
||||||
|
|
||||||
|
// Optional: see doc section below
|
||||||
|
contextualSearch: true,
|
||||||
|
|
||||||
|
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
|
||||||
|
//externalUrlRegex: 'external\\.com|domain\\.com',
|
||||||
|
|
||||||
|
// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
|
||||||
|
replaceSearchResultPathname: {
|
||||||
|
from: '/docs/', // or as RegExp: /\/docs\//
|
||||||
|
to: '/',
|
||||||
|
},
|
||||||
|
|
||||||
|
// Optional: Algolia search parameters
|
||||||
|
searchParameters: {},
|
||||||
|
|
||||||
|
// Optional: path for search page that enabled by default (`false` to disable it)
|
||||||
|
searchPagePath: 'search',
|
||||||
|
|
||||||
|
// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
|
||||||
|
insights: false,
|
||||||
|
|
||||||
|
//... other Algolia params
|
||||||
|
},
|
||||||
colorMode: {
|
colorMode: {
|
||||||
defaultMode: 'light',
|
defaultMode: 'light',
|
||||||
disableSwitch: true,
|
disableSwitch: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user