1
0

项目:新增 algolia 搜索

This commit is contained in:
周中平 2022-06-27 16:45:18 +08:00
parent 179ec57939
commit 14e11e1b31
No known key found for this signature in database
GPG Key ID: B1DF9DD42D8E00DC

View File

@ -51,7 +51,7 @@ const config = {
customCss: require.resolve("./src/css/custom.css"), customCss: require.resolve("./src/css/custom.css"),
}, },
sitemap: { sitemap: {
changefreq: 'weekly', changefreq: "weekly",
priority: 0.5, priority: 0.5,
}, },
}), }),
@ -181,24 +181,21 @@ const config = {
trackingID: "G-MHMEL0F832", trackingID: "G-MHMEL0F832",
}, },
], ],
// "plugin-image-zoom",
],
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
// ... Your options.
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
// For Docs using Chinese, The `language` is recommended to set to:
// ```
language: ["en", "zh"],
// ```
},
],
], ],
// themes: [
// [
// require.resolve("@easyops-cn/docusaurus-search-local"),
// {
// // ... Your options.
// // `hashed` is recommended as long-term-cache of index file is possible.
// hashed: true,
// // For Docs using Chinese, The `language` is recommended to set to:
// // ```
// language: ["en", "zh"],
// // ```
// },
// ],
// ],
themeConfig: themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */ /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({ ({
@ -255,17 +252,19 @@ const config = {
label: "其他", label: "其他",
to: "/docs", to: "/docs",
}, },
], ],
}, },
{ to: "/org", label: "🤶 社区", position: "right" }, { to: "/org", label: "🤶 社区", position: "right" },
{ to: "/work", label: "👨‍💻 职业", position: "right" }, { to: "/work", label: "👨‍💻 职业", position: "right" },
{ to: "/life", label: "🚴🏻‍♀️ 生活", position: "right" }, { to: "/life", label: "🚴🏻‍♀️ 生活", position: "right" },
{ to: "/art", label: "👨‍🎨 艺术", position: "right" }, { to: "/art", label: "👨‍🎨 艺术", position: "right" },
], ],
}, },
algolia: {
apiKey: "5d5a02bdf02df700355c8ccd84b78d13",
appId: "8W3YJXJGF2",
indexName: "wiki",
},
footer: { footer: {
style: "dark", style: "dark",
copyright: `Copyright © ${new Date().getFullYear()} 7Wate, Inc. Built with <a href="https://www.docusaurus.cn/" target="_blank" rel="noopener noreferrer">Docusaurus</a>.<br>Powered by <a href="https://webify.cloudbase.net/" target="_blank" rel="noopener noreferrer">CloudBase Webify</a>`, copyright: `Copyright © ${new Date().getFullYear()} 7Wate, Inc. Built with <a href="https://www.docusaurus.cn/" target="_blank" rel="noopener noreferrer">Docusaurus</a>.<br>Powered by <a href="https://webify.cloudbase.net/" target="_blank" rel="noopener noreferrer">CloudBase Webify</a>`,