2
0
mirror of https://github.com/postyizhan/NitWikit.git synced 2025-03-01 16:46:59 +08:00

删除文档右上角语言选项 ()

This commit is contained in:
梦涵LOVE 2024-08-05 22:56:28 +08:00 committed by GitHub
parent 2b2e00bc97
commit 37f7fd3172
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,10 +42,10 @@ const config = {
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
// i18n: {
// defaultLocale: 'zh-Hans',
// locales: ['zh-Hans'],
// },
i18n: {
defaultLocale: 'zh-Hans',
locales: ['zh-Hans'],
},
presets: [
[
@ -154,10 +154,11 @@ const config = {
className: "header-github-link",
position: "right",
},
{
type: 'localeDropdown',
position: 'right',
},
// 顶部导航栏显示切换语言按钮
// {
// type: 'localeDropdown',
// position: 'right',
// },
],
},
// 底部链接
@ -219,7 +220,7 @@ const config = {
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
// language: ["zh"],
language: ["zh"],
highlightSearchTermsOnTargetPage: true,
explicitSearchResultPath: true,
indexBlog: false,