Skip to content

Commit

Permalink
Merge pull request #144 from lastmile-ai/pr144
Browse files Browse the repository at this point in the history
[Docs] Simplify algolia search config
  • Loading branch information
saqadri authored Nov 10, 2023
2 parents 2d51d32 + dd16003 commit 360cdf8
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions aiconfig-docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,28 +169,9 @@ const config = {
},
algolia: {
appId: "MXLMDZIH1G",
apiKey: "ed56ae054b0f8ac02ef281e34584cc3c",
apiKey: "63a53b045dfcdc2b7b4319d4d67a1edb",
indexName: "aiconfig",

// 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",

//... other Algolia params
},
}),
};
Expand Down

0 comments on commit 360cdf8

Please sign in to comment.