-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[non-related] i18n: Initial support for i18n (#11)
[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
Showing
222 changed files
with
1,120 additions
and
2,089 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' } | ||
] | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' } | ||
] | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' } | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' } | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
HTTP 418 I'M A TEAPOT! |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.