Upgrade docusaurus

This commit is contained in:
allegroai
2021-05-19 05:19:03 +03:00
parent 010b7ac372
commit c76e46ea03
4 changed files with 3515 additions and 7513 deletions

View File

@@ -215,20 +215,27 @@ module.exports = {
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
// ... Your options.
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
docsDir: ["docs"],
docsRouteBasePath: ["/docs"],
// blogDir: ["tutorials"],
// blogRouteBasePath: ["/tutorials"],
// For Docs using Chinese, The `language` is recommended to set to:
// ```
language: ["en"],
// ```
// When applying `zh` in language, please install `nodejieba` in your project.
},
],
hashed: true,
// whether to index docs pages
indexDocs: true,
// must start with "/" and correspond to the routeBasePath configured for the docs plugin
// use "/" if you use docs-only-mode
// (see https://v2.docusaurus.io/docs/2.0.0-alpha.70/docs-introduction#docs-only-mode)
docsRouteBasePath: '/docs',
searchResultLimits: 8,
searchResultContextMaxLength: 50,
// whether to index blog pages
indexBlog: false,
//blogRouteBasePath: '/blog',
// whether to index static pages
// /404.html is never indexed
indexPages: false,
// language of your documentation, see next section
language: "en",
}],
path.resolve(__dirname, 'src/zoom-plugin')
],
};