|
|
|
@ -163,22 +163,22 @@ module.exports = {
|
|
|
|
|
],
|
|
|
|
|
themes: [
|
|
|
|
|
// ... Your other themes.
|
|
|
|
|
[
|
|
|
|
|
require.resolve("@easyops-cn/docusaurus-search-local"),
|
|
|
|
|
{
|
|
|
|
|
// ... Your options.
|
|
|
|
|
// `hashed` is recommended as long-term-cache of index file is possible.
|
|
|
|
|
hashed: true,
|
|
|
|
|
language: ["en", "zh"],
|
|
|
|
|
highlightSearchTermsOnTargetPage: true,
|
|
|
|
|
blogRouteBasePath: "/",
|
|
|
|
|
explicitSearchResultPath: true,
|
|
|
|
|
// For Docs using Chinese, The `language` is recommended to set to:
|
|
|
|
|
// ```
|
|
|
|
|
// language: ["en", "zh"],
|
|
|
|
|
// ```
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
// [
|
|
|
|
|
// require.resolve("@easyops-cn/docusaurus-search-local"),
|
|
|
|
|
// {
|
|
|
|
|
// // ... Your options.
|
|
|
|
|
// // `hashed` is recommended as long-term-cache of index file is possible.
|
|
|
|
|
// hashed: true,
|
|
|
|
|
// language: ["en", "zh"],
|
|
|
|
|
// highlightSearchTermsOnTargetPage: true,
|
|
|
|
|
// blogRouteBasePath: "/",
|
|
|
|
|
// explicitSearchResultPath: true,
|
|
|
|
|
// // For Docs using Chinese, The `language` is recommended to set to:
|
|
|
|
|
// // ```
|
|
|
|
|
// // language: ["en", "zh"],
|
|
|
|
|
// // ```
|
|
|
|
|
// },
|
|
|
|
|
// ],
|
|
|
|
|
],
|
|
|
|
|
i18n: {
|
|
|
|
|
defaultLocale: 'zh-cn',
|
|
|
|
|