mirror of
https://github.com/halo-dev/docs.git
synced 2025-10-19 08:43:55 +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",
|
label: "GitHub",
|
||||||
position: "right",
|
position: "right",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
href: "https://gitee.com/halo-dev/halo",
|
||||||
|
label: "Gitee",
|
||||||
|
position: "right",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
@@ -81,6 +86,21 @@ const darkCodeTheme = require("prism-react-renderer/themes/dracula");
|
|||||||
googleAnalytics: {
|
googleAnalytics: {
|
||||||
trackingID: "UA-110780416-7",
|
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"],
|
plugins: ["@docusaurus/plugin-ideal-image"],
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user