Skip to content

Commit

Permalink
[non-related] i18n: Initial support for i18n (#11)
Browse files Browse the repository at this point in the history
[non-related] fix: Fix the issue causing modules unloadable
[non-related] feat: Initialize i18n supportt
[non-related] chore: Clean up messy parts of the configurations
[non-related] chore: Move member list into the index
[non-related] chore(i18n): Initialize i18n directory structure
  • Loading branch information
crrashh1542 authored Jun 21, 2024
2 parents b4f83ee + 72be50c commit bc07020
Show file tree
Hide file tree
Showing 222 changed files with 1,120 additions and 2,089 deletions.
67 changes: 0 additions & 67 deletions docs/.vitepress/config.mts

This file was deleted.

67 changes: 0 additions & 67 deletions docs/.vitepress/config.pages.mts

This file was deleted.

26 changes: 26 additions & 0 deletions docs/.vitepress/config.pages.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { defineConfig } from 'vitepress'

import zhCn from './locales/zh-cn'
import en from './locales/en'

export default defineConfig({
base: '/mspcm-docs/',
srcDir: '.',
outDir: '../dist',
appearance: true,
lastUpdated: true,
cleanUrls: false,
locales: {
root: { label: 'English', dir: 'en', ...en },
"zh-cn": { label: '简体中文', dir: 'zh-cn', ...zhCn },
},

themeConfig: {
search: {
provider: 'local'
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/mspcmanager/mspcm-docs' }
]
}
})
26 changes: 26 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { defineConfig } from 'vitepress'

import zhCn from './locales/zh-cn'
import en from './locales/en'

export default defineConfig({
base: '/',
srcDir: '.',
outDir: '../dist',
appearance: true,
lastUpdated: true,
cleanUrls: false,
locales: {
root: { label: 'English', lang: 'en-us', ...en },
'zh-cn': { label: '简体中文', lang: 'zh-cn', ...zhCn },
},

themeConfig: {
search: {
provider: 'local'
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/mspcmanager/mspcm-docs' }
]
}
})
69 changes: 69 additions & 0 deletions docs/.vitepress/locales/en.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
import { defineConfig, type DefaultTheme } from 'vitepress'

export default defineConfig({
lang: 'en-US',
title: 'Microsoft PC Manager Docs',
description: 'An unoffical usage and problem-solving documentation for Microsoft PC Manager',

themeConfig: {
nav: nav(),
sidebar: sidebar(),
editLink: {
pattern: 'https://github.com/mspcmanager/mspcm-docs/edit/main/docs/:path',
text: 'Edit this page on GitHub'
},
footer: {
message: 'This documentation is released under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> License',
copyright: 'Copyright © 2023-2024 Microsoft PC Manager Administrators'
}
}
})

function nav(): DefaultTheme.NavItem[] {
return [{
text: 'Official website',
link: 'https://pcmanager.microsoft.com'
},
{
text: 'Follow us',
items: [
{ text: 'Weibo', link: 'https://weibo.com/mspcmanager' },
{ text: 'Discord', link: 'https://discord.com/invite/FTDTddsPgd' }
]
}]
}

function sidebar(): DefaultTheme.SidebarItem[] {
return [
{
text: 'Get Started',
items: [
{ text: 'Agreements and Declarations', link: '/get-started/agreements-and-declarations.html' },
{ text: 'About Software', link: '/get-started/about.html' }
]
},
{
text: 'Common Problems',
items: [
{ text: 'Before Installing', link: '/problem-solving/before-installing.html' },
{ text: 'While Installing', link: '/problem-solving/while-installing.html' },
{ text: 'While Using', link: '/problem-solving/while-using.html' },
{ text: 'About Microsoft Defender', link: '/problem-solving/MDA.html' },
{ text: 'Other Unsolved Problems', link: '/problem-solving/unresolved-issues.html' }
]
},
{
text: 'Appendix',
items: [
{ text: 'Check Version', link: '/appendix/check-version.html' },
{ text: 'Submit Logs', link: '/appendix/submit-logs.html' },
{ text: 'Tips', link: '/appendix/OUCH.html' },
{ text: 'Submit Advice & Feedback', link: '/appendix/submit-advice-n-feedback.html' },
{ text: 'Repair System Image', link: '/appendix/repair-system-image.html' },
{ text: 'Change DNS', link: '/appendix/change-DNS.html' },
{ text: 'Our Social Accounts', link: '/appendix/social-accounts.html' },
{ text: 'Postscript', link: '/appendix/postscript.html' }
]
}
]
}
85 changes: 85 additions & 0 deletions docs/.vitepress/locales/zh-cn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
import { defineConfig, type DefaultTheme } from 'vitepress'

export default defineConfig({
lang: 'zh-CN',
title: '微软电脑管家文档',
description: '微软电脑管家的使用及问题帮助的非官方文档',

themeConfig: {
darkModeSwitchLabel: '主题',
sidebarMenuLabel: '菜单',
returnToTopLabel: '回到顶部',
langMenuLabel: '语言',
outlineTitle: '当前页',
lastUpdatedText: '最近更新时间',
siteTitle: '微软电脑管家文档',
docFooter: {
prev: '上一篇',
next: '下一篇',
},

// STEP 4 ---- 链接配置
nav: nav(),
sidebar: sidebar(),
editLink: {
pattern: 'https://github.com/mspcmanager/mspcm-docs/edit/main/docs/zh-cn/:path',
text: '在 GitHub 上编辑此页'
},
footer: {
message: '本文档基于 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0 协议</a> 发布',
copyright: 'Copyright © 2023-2024 Microsoft PC Manager Administrators'
}
}
})

function nav(): DefaultTheme.NavItem[] {
return [{
text: '官方网站',
link: 'https://pcmanager.microsoft.com'
},
{
text: '关注我们',
items: [
{ text: '官方微博', link: 'https://weibo.com/mspcmanager' },
{ text: '官方公众号', link: 'http://weixin.qq.com/r/VyhzazfExmq5rXMI931F' },
{ text: '官方 QQ 群', link: 'https://forms.office.com/pages/responsepage.aspx?id=v4j5cvGGr0GRqy180BHbR7Jc7yMooGtIh8-T51_PVotUNkZSWVJSQVo4SFZVUUtDSDVHRjA4MTFMWi4u' },
{ text: '官方 QQ 频道', link: 'https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&appChannel=share&inviteCode=2bVm80&from=246610&biz=ka#/pc' },
{ text: '官方 Discord', link: 'https://discord.com/invite/FTDTddsPgd' }
]
}]
}

function sidebar(): DefaultTheme.SidebarItem[] {
return [
{
text: '起步',
items: [
{ text: '协议与声明', link: '/zh-cn/get-started/agreements-and-declarations.html' },
{ text: '关于软件', link: '/zh-cn/get-started/about.html' }
]
},
{
text: '下载与安装问题',
items: [
{ text: '安装前', link: '/zh-cn/problem-solving/before-installing.html' },
{ text: '安装过程中的问题', link: '/zh-cn/problem-solving/while-installing.html' },
{ text: '使用过程中的问题', link: '/zh-cn/problem-solving/while-using.html' },
{ text: 'Microsoft Defender 防病毒问题', link: '/zh-cn/problem-solving/MDA.html' },
{ text: '其它尚未解决的问题', link: '/zh-cn/problem-solving/unresolved-issues.html' }
]
},
{
text: '附录',
items: [
{ text: '公开最新版本号及查询方式', link: '/zh-cn/appendix/check-version.html' },
{ text: '提交日志', link: '/zh-cn/appendix/submit-lohs.html' },
{ text: '友情提示', link: '/zh-cn/appendix/OUCH.html' },
{ text: '提交建议与反馈及信息采集', link: '/zh-cn/appendix/submit-advice-n-feedback.html' },
{ text: '修复损坏的系统映像', link: '/zh-cn/appendix/repair-system-image.html' },
{ text: '如何更换 DNS', link: '/zh-cn/appendix/change-DNS.html' },
{ text: '社交媒体账号', link: '/zh-cn/appendix/social-accounts.html' },
{ text: '后记', link: '/zh-cn/appendix/postscript.html' }
]
}
]
}
2 changes: 1 addition & 1 deletion docs/appendix/OUCH.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

![](../assets/appendix/OUCH.png)

<font size=1>震惊!你居然发现了隐藏的帮助文档,<a href="./../appendix/hidden-useage.html">点击这里立马进入</a></font>
<font size=1>震惊!你居然发现了隐藏的帮助文档,<a href="./hidden-page.html">点击这里立马进入</a></font>
1 change: 1 addition & 0 deletions docs/appendix/hidden-page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
HTTP 418 I'M A TEAPOT!
1 change: 0 additions & 1 deletion docs/appendix/hidden-useage.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/appendix/repair-system-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Windows 11 的 Media Creation Tool 仅能创建 ISO 镜像,而 Windows 10 可

4. ![](../assets/appendix/repair-system-image/mct/waiting.png)

## 镜像修复
<!-- ## 镜像修复 -->
双击 .ISO 镜像文件使文件资源管理器自动挂载虚拟镜像,然后使用镜像根目录下的 Setup 应用程序对系统进行修复。(升级,所需时间≥30min)
1. ![](../assets/appendix/repair-system-image/iso/setup.png)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit bc07020

Please sign in to comment.