mirror of
https://github.com/halo-dev/docs.git
synced 2025-10-18 08:14:42 +00:00
feat: add search bar.
This commit is contained in:
@@ -68,6 +68,11 @@ const darkCodeTheme = require("prism-react-renderer/themes/dracula");
|
||||
label: "GitHub",
|
||||
position: "right",
|
||||
},
|
||||
{
|
||||
href: "https://gitee.com/halo-dev/halo",
|
||||
label: "Gitee",
|
||||
position: "right",
|
||||
},
|
||||
],
|
||||
},
|
||||
footer: {
|
||||
@@ -81,6 +86,21 @@ const darkCodeTheme = require("prism-react-renderer/themes/dracula");
|
||||
googleAnalytics: {
|
||||
trackingID: "UA-110780416-7",
|
||||
},
|
||||
algolia: {
|
||||
apiKey: "YOUR_API_KEY",
|
||||
indexName: "YOUR_INDEX_NAME",
|
||||
|
||||
// Optional: see doc section below
|
||||
contextualSearch: true,
|
||||
|
||||
// Optional: see doc section below
|
||||
appId: "YOUR_APP_ID",
|
||||
|
||||
// Optional: Algolia search parameters
|
||||
searchParameters: {},
|
||||
|
||||
//... other Algolia params
|
||||
},
|
||||
}),
|
||||
plugins: ["@docusaurus/plugin-ideal-image"],
|
||||
}
|
||||
|
Reference in New Issue
Block a user