diff --git a/.vitepress/config/en.mts b/.vitepress/config/en.mts new file mode 100644 index 0000000..2e6a89e --- /dev/null +++ b/.vitepress/config/en.mts @@ -0,0 +1,83 @@ +import { defineConfig } from 'vitepress' + +export const en = defineConfig({ + lang: 'en', + description: "Official website for GBT series packages and mod", + + themeConfig: { + nav: [ + { text: 'Homepage', link: '/en/' }, + { text: 'Introduction', link: '/en/intro/' }, + { text: 'Download', link: '/en/download/' }, + { text: 'Authentication', link: '/en/auth/' }, + { text: 'Update', link: '/en/update' }, + { text: 'Thanks', link: '/en/thanks' } + ], + + sidebar: { + '/en/intro/': [ + { + text: 'Introduction', + items: [ + { text: 'Main Package', link: '/en/intro/' }, + { text: 'Traffic Signs Package (Suspend Publication)', link: '/en/intro/road' }, + { text: 'Mod (Suspend Publication)', link: '/en/intro/mod' } + ] + } + ], + '/en/auth/': [ + { + text: 'Authentication', + items: [ + { text: 'Application', link: '/en/auth/' }, + { text: 'Application Feedback / Blacklist', link: '/en/auth/subscribe' } + ] + } + ], + '/en/download/': [ + { + text: 'Main Package', + collapsed: true, + items: [ + { text: 'v1.2-hotfix-1 (Latest)', link: '/en/download/main/v1.2-hotfix-1' }, + { text: 'v1.1-hotfix-1', link: '/en/download/main/v1.1-hotfix-1' } + ] + }, + { + text: 'Traffic Signs Package (Suspend Publication)', + collapsed: true, + items: [ + { text: 'v1.0', link: '/en/download/traffic-signs/v1.0' } + ] + }, + { + text: 'Mod (Suspend Publication)', + collapsed: true, + items: [ + { text: 'v0.1', link: '/en/download/mod/v0.1' } + ] + } + ] + }, + + search: { + provider: 'local' + }, + + footer: { + message: 'GBT Series Pack, Focused on Signage', + copyright: 'The English version is translated by Baidu Translate and Microsoft Copilot.
Unless otherwise noted, the content on this site follows the CC-BY-NC 4.0 International License.
This is not an official Minecraft service. Not affiliated with Mojang or Microsoft.' + }, + + editLink: { + pattern: '//github.com/Minecraft-GBT/docs/edit/main/:path', + text: 'Edit this page on GitHub' + }, + lastUpdated: { + formatOptions: { + dateStyle: 'short', + timeStyle: 'medium' + } + } + } +}) \ No newline at end of file diff --git a/.vitepress/config/index.mts b/.vitepress/config/index.mts new file mode 100644 index 0000000..c0eb2cb --- /dev/null +++ b/.vitepress/config/index.mts @@ -0,0 +1,12 @@ +import { defineConfig } from 'vitepress' +import { shared } from './shared.mts' +import { en } from './en.mts' +import { zh } from './zh.mts' + +export default defineConfig({ + ...shared, + locales: { + root: { label: '简体中文', ...zh }, + en: { label: 'English', ...en } + } +}) diff --git a/.vitepress/config.mts b/.vitepress/config/shared.mts similarity index 74% rename from .vitepress/config.mts rename to .vitepress/config/shared.mts index 5f88eca..25769d4 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config/shared.mts @@ -1,75 +1,12 @@ import { defineConfig } from 'vitepress' // https://vitepress.dev/reference/site-config -export default defineConfig({ +export const shared = defineConfig({ lang: 'zh-CN', title: "GBT", - description: "GBT 系列包及其配套模组官方网站", themeConfig: { logo: "/logo.svg", // https://vitepress.dev/reference/default-theme-config - nav: [ - { text: '首页', link: '/' }, - { text: '介绍', link: '/intro/' }, - { text: '下载', link: '/download/' }, - { text: '授权', link: '/auth/' }, - { text: '更新', link: '/update' }, - { text: '鸣谢', link: '/thanks' } - ], - - sidebar: { - '/intro/': [ - { - text: '介绍', - items: [ - { text: '主包', link: '/intro/' }, - { text: '道路交通标志包 (暂缓发布)', link: '/intro/road' }, - { text: '模组 (主模组) (暂缓发布)', link: '/intro/mod' }, - { text: '模组 (MTR 附属) (暂缓发布)', link: '/intro/mod-mtr' } - ] - } - ], - '/auth/': [ - { - text: '授权', - items: [ - { text: '申请', link: '/auth/' }, - { text: '申请反馈 / 黑名单', link: '/auth/subscribe' } - ] - } - ], - '/download/': [ - { - text: '主包', - collapsed: true, - items: [ - { text: 'v1.2-hotfix-1 (最新)', link: '/download/main/v1.2-hotfix-1' }, - { text: 'v1.1-hotfix-1', link: '/download/main/v1.1-hotfix-1' } - ] - }, - { - text: '道路交通标志包 (暂缓发布)', - collapsed: true, - items: [ - { text: 'v1.0', link: '/download/traffic-signs/v1.0' } - ] - }, - { - text: '模组 (主模组) (暂缓发布)', - collapsed: true, - items: [ - { text: 'v0.1', link: '/download/mod/v0.1' } - ] - }, - { - text: '模组 (MTR 附属) (暂缓发布)', - collapsed: true, - items: [ - { text: 'v0.1', link: '/download/mod-mtr/v0.1' } - ] - } - ] - }, head: [ [ @@ -86,28 +23,6 @@ export default defineConfig({ ] ], - search: { - provider: 'local', - options: { - translations: { - button: { - buttonText: '搜索文档', - buttonAriaLabel: '搜索文档' - }, - modal: { - displayDetails: '显示详情', - noResultsText: '无法找到相关结果', - resetButtonTitle: '清除查询条件', - footer: { - selectText: '选择', - navigateText: '切换', - closeText: '关闭' - } - } - } - } - }, - socialLinks: [ { icon: { svg: '' }, link: 'mailto:gbt@gteh.top' }, { icon: 'github', link: '//github.com/Minecraft-GBT' }, @@ -116,47 +31,8 @@ export default defineConfig({ // { icon: { svg: '' }, link: '//curseforge.com' } ], - footer: { - message: 'GBT 系列包,专注指示牌', - copyright: '如无特别提示,本站内容均遵循知识共享-署名-非商业性使用 4.0 国际协议
非 Minecraft 官方服务。与 Mojang 或 Microsoft 无隶属关系。' - }, - cleanUrls: true, ignoreDeadLinks: true, - - editLink: { - pattern: '//github.com/Minecraft-GBT/docs/edit/main/:path', - text: '在 GitHub 上编辑本页' - }, - - docFooter: { - prev: '上一页', - next: '下一页' - }, - - outline: { - label: '页面导航' - }, - notFound: { - title: '页面已丢失', - quote: '谁把你带到这来了?', - linkLabel: '返回主页', - linkText: '返回主页' - }, - lastUpdated: { - text: '最后更新于', - formatOptions: { - dateStyle: 'short', - timeStyle: 'medium' - } - }, - - langMenuLabel: '多语言', - returnToTopLabel: '回到顶部', - sidebarMenuLabel: '菜单', - darkModeSwitchLabel: '主题', - lightModeSwitchTitle: '切换到浅色模式', - darkModeSwitchTitle: '切换到深色模式', externalLinkIcon: true } }) \ No newline at end of file diff --git a/.vitepress/config/zh.mts b/.vitepress/config/zh.mts new file mode 100644 index 0000000..3c098fd --- /dev/null +++ b/.vitepress/config/zh.mts @@ -0,0 +1,124 @@ +import { defineConfig } from 'vitepress' + +export const zh = defineConfig({ + lang: 'zh', + description: "GBT 系列包及其配套模组官方网站", + + themeConfig: { + nav: [ + { text: '首页', link: '/' }, + { text: '介绍', link: '/intro/' }, + { text: '下载', link: '/download/' }, + { text: '授权', link: '/auth/' }, + { text: '更新', link: '/update' }, + { text: '鸣谢', link: '/thanks' } + ], + + sidebar: { + '/intro/': [ + { + text: '介绍', + items: [ + { text: '主包', link: '/intro/' }, + { text: '道路交通标志包 (暂缓发布)', link: '/intro/road' }, + { text: '模组 (暂缓发布)', link: '/intro/mod' } + ] + } + ], + '/auth/': [ + { + text: '授权', + items: [ + { text: '申请', link: '/auth/' }, + { text: '申请反馈 / 黑名单', link: '/auth/subscribe' } + ] + } + ], + '/download/': [ + { + text: '主包', + collapsed: true, + items: [ + { text: 'v1.2-hotfix-1 (最新)', link: '/download/main/v1.2-hotfix-1' }, + { text: 'v1.1-hotfix-1', link: '/download/main/v1.1-hotfix-1' } + ] + }, + { + text: '道路交通标志包 (暂缓发布)', + collapsed: true, + items: [ + { text: 'v1.0', link: '/download/traffic-signs/v1.0' } + ] + }, + { + text: '模组 (暂缓发布)', + collapsed: true, + items: [ + { text: 'v0.1', link: '/download/mod/v0.1' } + ] + } + ] + }, + + search: { + provider: 'local', + options: { + translations: { + button: { + buttonText: '搜索文档', + buttonAriaLabel: '搜索文档' + }, + modal: { + displayDetails: '显示详情', + noResultsText: '无法找到相关结果', + resetButtonTitle: '清除查询条件', + footer: { + selectText: '选择', + navigateText: '切换', + closeText: '关闭' + } + } + } + } + }, + + footer: { + message: 'GBT 系列包,专注指示牌', + copyright: '如无特别提示,本站内容均遵循知识共享-署名-非商业性使用 4.0 国际协议
非 Minecraft 官方服务。与 Mojang 或 Microsoft 无隶属关系。' + }, + + editLink: { + pattern: '//github.com/Minecraft-GBT/docs/edit/main/:path', + text: '在 GitHub 上编辑本页' + }, + + docFooter: { + prev: '上一页', + next: '下一页' + }, + + outline: { + label: '页面导航' + }, + notFound: { + title: '页面已丢失', + quote: '谁把你带到这来了?', + linkLabel: '返回主页', + linkText: '返回主页' + }, + lastUpdated: { + text: '最后更新于', + formatOptions: { + dateStyle: 'short', + timeStyle: 'medium' + } + }, + + langMenuLabel: '多语言', + returnToTopLabel: '回到顶部', + sidebarMenuLabel: '菜单', + darkModeSwitchLabel: '主题', + lightModeSwitchTitle: '切换到浅色模式', + darkModeSwitchTitle: '切换到深色模式', + } +}) \ No newline at end of file diff --git a/.vitepress/theme/CustomLayout.vue b/.vitepress/theme/CustomLayout.vue index fdcbab1..258988c 100644 --- a/.vitepress/theme/CustomLayout.vue +++ b/.vitepress/theme/CustomLayout.vue @@ -3,8 +3,53 @@ import DefaultTheme from 'vitepress/theme' import { useData } from 'vitepress'; import Twikoo from './Twikoo.vue'; -const { frontmatter } = useData() +const { frontmatter, lang } = useData() const { Layout } = DefaultTheme +const dl_text = { + 'en': { + 'latest_version': 'Latest Version', + 'not_latest': 'This is not the latest version content.', + 'download_onedrive': 'Download (OneDrive)', + 'download_lanzou_cloud': 'Lanzou Cloud Download (Password: ', + 'modification_1': 'If there are errors in version information or files, please contact', + 'modification_2': 'for modification.', + 'version_info': 'Version Information', + 'version_info_code': 'version-information', + 'release_channel': 'Release channel', + 'publication_date': 'Publication date', + 'loaders': 'Loaders', + 'dependencies': 'Dependencies', + 'changelog': 'Changelog', + 'changelog_code': 'changelog', + 'files': 'Files', + 'files_code': 'files', + 'click_to_download': 'Click on the file name to download. (OneDrive download channel)', + 'primary_file': 'Primary' + }, + 'zh': { + 'latest_version': '最新版本', + 'not_latest': '这不是最新版本内容。', + 'download_onedrive': '下载 (OneDrive)', + 'download_lanzou_cloud': '蓝奏云下载 (密码: ', + 'modification_1': '版本信息或文件如有错误,请联系', + 'modification_2': '修改。', + 'version_info': '版本信息', + 'version_info_code': '版本信息', + 'release_channel': '更新类型', + 'publication_date': '发布日期', + 'loaders': '加载方式', + 'dependencies': '前置模组', + 'changelog': '更新日志', + 'changelog_code': '更新日志', + 'files': '文件列表', + 'files_code': '文件列表', + 'click_to_download': '点击文件名以下载。(OneDrive 下载渠道)', + 'primary_file': '主要文件' + } +} +function getDlTrans(key) { + return dl_text[lang.value][key] +} @@ -13,19 +58,19 @@ const { Layout } = DefaultTheme - diff --git a/.vitepress/theme/Twikoo.vue b/.vitepress/theme/Twikoo.vue index d553e39..9e03873 100644 --- a/.vitepress/theme/Twikoo.vue +++ b/.vitepress/theme/Twikoo.vue @@ -1,18 +1,20 @@ + +# Thanks + +## Special Thanks + +> [!NOTE] +> Special thanks to the following individuals for their indelible contributions to the birth and improvement of the GBT series of packages. + + + +## Sponsorship Acknowledgment + +The following individuals are acknowledged for their sponsorship of GBT. + + + +--- + +Note: The use of default avatars indicates that xingteh was unable to find a suitable avatar for placement. The order above does not indicate ranking. + +If any avatar infringes on rights, I apologize. Please contact us for removal. Avatars may be trademarks of their owners. This site/project has no affiliation with any projects/personnel/enterprises/units/teams other than xingteh. Some icons are from Font Awesome. The images used may have been slightly adjusted to fit the page. \ No newline at end of file diff --git a/en/update.md b/en/update.md new file mode 100644 index 0000000..6c33e9d --- /dev/null +++ b/en/update.md @@ -0,0 +1,153 @@ +--- +sidebar: false +prev: false +next: false +--- + +# Changelog + +## Main Package + +### March 7, 2024 + +- Project initiated + +### March 8, 2024 + +- v0.4 completed + +### March 9, 2024 + +- v0.8 completed, and the GBT series package was released on MTRBBS +- Released v0.8-hotfix-1, fixing the issue where “certification” did not display + +### March 16, 2024 + +- Released v0.9-beta-1, added GB/T 10001.1-2012 +- Released v0.9, added MH/T 5059-2022 and DB11/T 657.3-2016 +- Released v1.0, added GB 13495.1-2015 +- Released v1.1-beta-1, added GB/T 5845.4-2008 + +### April 4, 2024 + +- Released v1.1-beta-2, major update + +### April 5, 2024 + +- Released v1.1, added DB11/T 657 (manually creating 269 textures nearly exhausted me) + +### April 11, 2024 + +- Released v1.2, added GB/T 10001.4-2021 & GB/T 10001.6-2021 & GB/T 10001.7-2021 + +### April 12, 2024 + +- Released v1.2-hotfix-1, fixed the translation issue with the Beijing style package + +### May 5, 2024 + +- Both MTRBBS and Lanzou Cloud had missing files (2 each platform), checked for omissions and re-uploaded + +## Traffic Signs Package + +### April 13, 2024 + +- Project initiated + +## Mod (Main) + +### May 4, 2024 + +- Project initiated + +## Mod (MTR) + +### April 2024 + +- Project initiated + +### May 4, 2024 + +- Decided to split some features (main mod) to release functionalities that can support Quilt / NeoForge + +### June 6, 2024 + +- The project separated from the GBT series +- EOL + +## Website + +### April 18, 2024 + +- Project initiated +- Went live + +### April 23, 2024 + +- Moved files to the `docs` folder under the `main` branch of the mod repository, instead of the original `gh-pages` branch + +### April 28, 2024 + +- Changed the style of the thanks page +- Planned to add a download page + +### April 30, 2024 + +- Approved the main package integration application for 广厦MTR (via MTRCMU) +- Added a download navigation page (other pages not yet updated) + +### May 4, 2024 + +- Moved files back to the `main` branch of a separate repository, but the repository owner changed to the newly created GitHub organization ([Minecraft-GBT](//github.com/Minecraft-GBT)) +- Updated page changes due to mod split matters +- Changed the contact email from [gteh@gteh.top](mailto:gteh@gteh.top) to [gbt@gteh.top](mailto:gbt@gteh.top) +- Fixed the issue with the incorrect link to the Minecraft Forge official website on the thanks page +- Fixed the issue with the incorrect GitHub page link on the thanks page +- Removed the `links` attribute for thanks individuals without contact links on the thanks page (originally `[]`) +- Changed the description of Zbx1425 on the thanks page to “Author of Nemo’s Transit Expansion,” the same as Jonathan Ho’s description, using the full English name of the mod for a more unified style +- The first line of the introduction to the Road Traffic Signage Pack no longer points to MTRBBS + +### May 5, 2024 + +- Added supported Minecraft versions for each package/mod +- Added a search function (based on MiniSearch) +- Approved the main package application for 川流 (via MTRBBS) +- Changed the table style on the application results public announcement page +- Added download page style +- Added Modrinth and CurseForge icons to the top right corner (not yet activated) +- Added download pages for main package v1.2-hotfix-1 and v1.1-hotfix-1 + +### May 6, 2024 + +- Added QuiltMC and NeoForged to the acknowledgment page, changed the original Forge & Fabric +- Updated the download page style +- Removed the WIP (Work In Progress) mark from the download page +- Added a download button to the homepage (between the introduction and authorization) + +### May 19, 2024 + +- Added a [Twikoo](//twikoo.js.org) comment section +- Added the official website to the authorization method + +### May 21, 2024 + +- Approved the main package application for MTRxiaosong6666 (林溪市) (via MTRBBS) + +### May 23, 2024 + +- Modified the footer copyright information + +### June 3, 2024 + +- Approved the main package application for ZFK SERVER (via MTRBBS) + +### June 5, 2024 + +- Added Emerald_Rail to the sponsorship acknowledgment page +- The comment display on the homepage is now more aesthetically pleasing and reasonable (the code may look uncomfortable as I’m not very familiar with VitePress and Vue) + +### June 8, 2024 + +- Due to the homepage comments causing lag, considering aesthetics and practicality, the homepage comment section was removed (causing 1 comment not to display) +- Added English translation +- Approved the main package application for 原始轨道交通 (via QQ) \ No newline at end of file diff --git a/index.md b/index.md index accf7fc..8e27e1e 100644 --- a/index.md +++ b/index.md @@ -38,25 +38,17 @@ features: details: 完全遵循标准,确保还原现实 - icon: 🚀 title: 配套模组 (开发中) - details: 配套模组让您的使用体验更上一层楼,Fabric / Forge 双端支持,1.16.5~1.19.4 版本支持 + details: 配套模组让您的使用体验更上一层楼,Fabric / Forge / Quilt / NeoForge / Rift 五端支持,1.7.10~1.20.6 版本支持 - icon: ⛜ title: 道路交通标志 (开发中) details: 完全遵循 GB 5768.2-2022 的道路交通标志牌,还原现实就是最终目的 --- - - -| 名称 | 最新版本 | 依赖 | 支持 Minecraft 版本 | -| :------------------------: | :-----------: | :-------------------------------: | :------------------: | -| 主包 | v1.2-hotfix-1 | MTR 3.0.0+ | 1.16.5~1.20.1 | -| 道路交通标志包 (暂缓发布) | v1.0 | NTE 0.2.0+ | 1.17.1~1.20.1 | -| 模组 (主模组) (暂缓发布) | v0.1 | Fabric / Forge / Quilt / NeoForge | 1.7.10~1.20.6 (预计) | -| 模组 (MTR 附属) (暂缓发布) | v0.1 | Fabric / Forge | 1.16.5~1.19.4 (预计) | +| 名称 | 最新版本 | 依赖 | 支持 Minecraft 版本 | +| :-----------------------: | :-----------: | :--------------------------------------: | :------------------: | +| 主包 | v1.2-hotfix-1 | MTR 3.0.0+ | 1.16.5~1.20.1 | +| 道路交通标志包 (暂缓发布) | v1.0 | NTE 0.2.0+ | 1.17.1~1.20.1 | +| 模组 (暂缓发布) | v0.1 | Fabric / Forge / Quilt / NeoForge / Rift | 1.7.10~1.20.6 (预计) | 模组支持多版本需要时间,请以实际情况为准。 diff --git a/intro/mod-mtr.md b/intro/mod-mtr.md deleted file mode 100644 index 3572ae5..0000000 --- a/intro/mod-mtr.md +++ /dev/null @@ -1,10 +0,0 @@ -# \[原创\]\[自制\]\[开源\] GBT 模组 (MTR 附属) - -> [!NOTE] -> 此模组遵循 MIT 协议。 - -此模组是装饰类模组 GBT 模组的子模组,旨在为 MTR 添加更多功能。虽然有点偏离 GBT 的主旨:专注指示牌,但由于是原规划拆解得来,仍旧划分至 GBT 系列中。 - -![logo](//drive.gteh.top/api/raw/?path=/GBT%20%E7%B3%BB%E5%88%97%E8%BF%BD%E5%8A%A0%E5%8C%85/img/banner.png) - -更多信息请等待正式发布。 \ No newline at end of file diff --git a/update.md b/update.md index 5abb6ab..6a2bc43 100644 --- a/update.md +++ b/update.md @@ -72,6 +72,11 @@ next: false - 决定将部分功能拆解 (主模组) 以将可以支持 Quilt / NeoForge 的功能发布 +### 2024.6.6 + +- 项目脱离 GBT 系列 +- EOL + ## 官网 ### 2024.4.18 @@ -141,4 +146,10 @@ next: false ### 2024.6.5 - 将 Emerald_Rail 添加至赞助鸣谢页面 -- 首页的评论显示现在更加美观、合理 (对于 VitePress 和 Vue 不是很熟悉,代码可能看着很难受) \ No newline at end of file +- 首页的评论显示现在更加美观、合理 (对于 VitePress 和 Vue 不是很熟悉,代码可能看着很难受) + +### 2024.6.8 + +- 由于首页评论现在会导致卡顿,综合考虑美观性和实用性,移除了首页评论区 (造成 1 条评论不显示) +- 添加了英文翻译 +- 通过了原始轨道交通的主包使用申请 (经 QQ) \ No newline at end of file