Skip to content

Commit e5486a5

Browse files
authored
fix(doc): re-enable Algolia search (#12834)
1 parent 2688bf3 commit e5486a5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs-website/docusaurus.config.js

+9
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,15 @@ module.exports = {
289289
// darkTheme: require("prism-react-renderer/themes/vsDark"),
290290
additionalLanguages: ["ini", "java", "graphql", "shell-session"],
291291
},
292+
algolia: {
293+
// This is the "Search API Key" in Algolia, which means that it is ok to be public.
294+
apiKey: "2adf840a044a5ecbf7bdaac88cbf9ee5",
295+
appId: "RK0UG797F3",
296+
indexName: "datahubproject",
297+
insights: true,
298+
contextualSearch: true,
299+
// debug: true,
300+
},
292301
},
293302
presets: [
294303
[

docs-website/src/theme/Layout/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function LayoutWrapper(props) {
99
<SecondNavbar />
1010
{props.children}
1111
</Layout>
12-
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=92db07cf-8934-4b30-857a-3fcfda4c86dd" />
12+
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=92db07cf-8934-4b30-857a-3fcfda4c86dd" style={{ display: 'none' }} />
1313
</>
1414
);
1515
}

0 commit comments

Comments
 (0)