fix(doc): re-enable Algolia search (#12834)

This commit is contained in:
Harshal Sheth 2025-03-10 13:23:30 -07:00 committed by GitHub
parent 2688bf39b4
commit e5486a5353
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -289,6 +289,15 @@ module.exports = {
// darkTheme: require("prism-react-renderer/themes/vsDark"),
additionalLanguages: ["ini", "java", "graphql", "shell-session"],
},
algolia: {
// This is the "Search API Key" in Algolia, which means that it is ok to be public.
apiKey: "2adf840a044a5ecbf7bdaac88cbf9ee5",
appId: "RK0UG797F3",
indexName: "datahubproject",
insights: true,
contextualSearch: true,
// debug: true,
},
},
presets: [
[

View File

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