Skip to content

Commit

Permalink
fix search issue (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafernandes authored Jun 26, 2024
1 parent cbebdbf commit 521ecbf
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 30 deletions.
49 changes: 24 additions & 25 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,22 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
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
},
// 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 @@ -431,15 +431,14 @@ 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"),
{
docsRouteBasePath: "/",
hashed: true,
indexBlog: false,
},
],
],
};

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@docusaurus/plugin-google-gtag": "^3.4.0",
"@docusaurus/plugin-google-tag-manager": "^3.4.0",
"@docusaurus/preset-classic": "^3.4.0",
"@easyops-cn/docusaurus-search-local": "^0.38.1",
"@easyops-cn/docusaurus-search-local": "^0.44.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^1.2.1",
"prism-react-renderer": "^2.1.0",
Expand Down

0 comments on commit 521ecbf

Please sign in to comment.