Skip to content

Conversation

@leemwood
Copy link

@leemwood leemwood commented Feb 20, 2025

Deployed tested via GitHub pages, link below:
https://ning-g-mo.github.io/GeyserExtras_CN.github.io/

This is the first time I have learned to configure Docusaurus and its internationalization configuration, and it is also the first time to deploy GitHub pages, please understand if you have any questions. (Translation courtesy of Microsoft Translator)
(cn: 这是我第一次学习配置Docusaurus以及它的国际化配置,GitHub pages部署也是第一次,如果有问题请谅解。(翻译由微软翻译提供))

- 新增简体中文的国际化配置文件
- 添加中文版的文档- 在导航栏中增加语言切换选项
- 删除了 .idea 目录下的 vcs.xml 和 workspace.xml 文件
- 这些文件是 Intellij IDEA 的版本控制和工作空间配置文件,与代码本身无关
- 在 .gitignore 文件中添加了 .idea 目录,以忽略 Intellij IDEA 等 IDE 生成的项目配置文件
- 在 code.json 中更新了"编辑此页面"的翻译,明确指出在 GitHub 上编辑
- 优化了 installation.mdx 文件中的安装步骤描述,使其更加清晰
- 修正了 intro.mdx 文件中的文档描述,提高了语言的准确性
- 将 GitHub Actions 部署触发条件从 main 分支修改为 pages 分支
- 此更改确保只有在 pages 分支上进行推送时才会触发部署流程
- 将网站 URL 从 'https://geyserextras.github.io' 修改为 'https://geyserextras.github_CN.io'
- 将项目名称从 'GeyserExtras.github.io' 修改为 'GeyserExtras.github_CN.io'
- 将部署触发条件从 pages 分支更改为 main 分支
- 更新环境名称注释,明确部署目标为 github-pages
- 将 deploymentBranch从 'gh-pages' 修改为 'pages'
- 移除了 staticDirectories 配置项
- 将 GitHub Actions 部署触发条件从 'main' 分支修改为 'pages' 分支
- 将部署分支从 'pages' 修改为 'main'- 更新组织名称从 'GeyserExtras' 为 'ning-g-mo'
- 将 baseUrl 从 '/' 修改为 '/GeyserExtras_CN.github.io/'
- 这个修改确保了网站 URL 的正确性,避免了资源加载错误
- 修正网站 URL 为正确的域名
- 更新项目名称和组织名称
- 这次提交是为提交pr
- 将 baseUrl 从 '/GeyserExtras_CN.github.io/' 修改为 '/'
- 将 organizationName 从 'geyserextras' 修改为 'GeyserExtras'
- 这些修改旨在修正网站的基础 URL 和组织名称,以确保正确的页面显示
- 新增 GeyserExtras 主页特性描述的国际化支持
- 优化 ARIA 标签和按钮文本的翻译
- 修正部分语法错误和不一致的表述
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant