diff --git a/README.md b/README.md index 505f063..a7533d6 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,12 @@ 支持常规markdown图片,在**static/img/gitlink_logo.png**中添加一个图像.png并在Markdown中显示它: ```bash ![gitlink logo](/img/gitlink_logo.png) + ``` + ## 前端build成中文 + npm run build -- --locale zh-Hans + 启动 npm run serve + + diff --git a/docusaurus.config.js b/docusaurus.config.js index ac7846f..6494374 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -14,8 +14,8 @@ module.exports = { projectName: 'docusaurus-luffyzh-website', // Usually your repo name. themeConfig: { algolia: { - apiKey: '25626fae796133dc1e734c6bcaaeac3c', - indexName: 'docsearch', + apiKey: '0f9f28b9ab9efae89810921a351753b5', + indexName: 'github', }, navbar: { title: '', @@ -29,21 +29,7 @@ module.exports = { docId: 'intro', position: 'left', label: '帮助中心', - }, - // { - // position: 'left', - // to: '/blog', - // label: '博客', - // }, - // { - // href: 'https://github.com/luffyZh/docusaurus-luffyzh-website', - // label: 'GitHub', - // position: 'right', - // }, - // { - // type: 'localeDropdown', - // position: 'right', - // }, + } ], }, footer: { @@ -81,7 +67,7 @@ module.exports = { ], }, ], - copyright: `©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号`, + copyright: `

©Copyright 2023 CCF 开源发展委员会

Powered by Trustie& IntelliDE 京ICP备13000930号

`, }, prism: { theme: lightCodeTheme, @@ -90,20 +76,16 @@ module.exports = { }, presets: [ [ + //此为docusaurus的默认界面风格 '@docusaurus/preset-classic', { + //此为docs的侧边栏修饰 docs: { sidebarPath: require.resolve('./sidebars.js'), - // Please change this to your repo. - editUrl: - 'https://github.com/facebook/docusaurus/edit/master/website/', - }, - blog: { - showReadingTime: true, - // Please change this to your repo. - editUrl: - 'https://github.com/facebook/docusaurus/edit/master/website/blog/', + //此为网页左下的Edit this page 链接地址 + editUrl:'https://www.gitlink.org.cn/Gitlink/gitlink_help_center/tree/master/', }, + //修饰的css文件格式 theme: { customCss: require.resolve('./src/css/custom.css'), }, @@ -112,6 +94,6 @@ module.exports = { ], i18n: { defaultLocale: 'zh-cn', - locales: ['en', 'zh-cn'], + locales: ['zh-cn'], }, };