Skip to content

Commit

Permalink
replace local search with algolia (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafernandes authored Jun 26, 2024
1 parent 10a3803 commit cbebdbf
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,22 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// revisit this in v3 of docusaurus that is due to go GA
// algolia: {
// // The application ID provided by Algolia
// appId: "NSRFPEJ4NC",
// // Public API key: it is safe to commit it
// apiKey: "cea41b975ad6c9a01408dfda6e0061d3",
// indexName: "teku",
// // 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: Algolia search parameters
// searchParameters: {},
// // Optional: path for search page that enabled by default (`false` to disable it)
// searchPagePath: "search",
// // ... other Algolia params
// },
algolia: {
// The application ID provided by Algolia
appId: "NSRFPEJ4NC",
// Public API key: it is safe to commit it
apiKey: "cea41b975ad6c9a01408dfda6e0061d3",
indexName: "teku",
// ensures that search results are relevant to the current language and version.
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: Algolia search parameters
searchParameters: {},
// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: "search",
// ... other Algolia params
},
// announcementBar: {
// id: "announcement_bar",
// content: "⛔️ This documentation site is still under construction! 🚧",
Expand Down Expand Up @@ -432,15 +431,15 @@ const config = {
],
],
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
({
hashed: true,
docsRouteBasePath: "/",
indexBlog: false,
}),
],
// [
// require.resolve("@easyops-cn/docusaurus-search-local"),
// /** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
// ({
// hashed: true,
// docsRouteBasePath: "/",
// indexBlog: false,
// }),
// ],
],
};

Expand Down

0 comments on commit cbebdbf

Please sign in to comment.