Skip to content

Commit

Permalink
fix: Website Home Page and V2 Document Start Page
Browse files Browse the repository at this point in the history
  • Loading branch information
NiuBoss123 committed Jul 23, 2024
1 parent de0316a commit fac7298
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 17 deletions.
27 changes: 27 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: 文档首页
---

McPatch 是一个给 Minecraft 客户端做文件更新的独立应用程序,目前分为 V1 版本和 V2 版本

各版本的支持情况如下:

| 版本分支 | 维护状态 | 客户端最新版本 | 服务端最新版本 | Windows | Mac OS | Linux | Android |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [V1](/docs/v1/start.md) | 稳定版本 | 1.1.13 | 1.1.5 |||||
| [V2](/docs/v2/start.md) | 开发版本 | 0.0.13 | 0.0.5 ||| ✅(仅管理端) ||

- [V1 版本文档](/docs/v1/start.md)
- [V2 版本文档](/docs/v2/start.md)

:::warning

V2 版本仍旧处于测试期,可能出现更多不稳定因素,因而不建议在生产环境内大规模使用 V2 版本

:::

如果出现以下情况,请使用 V1 版本:

- 需要对 Mac OS / Linux / Android 玩家提供支持

V2 版本与 V1 版本无法共存或互通,如需升级到 V2 版本,请依照 V2 版本文档重新部署
6 changes: 5 additions & 1 deletion docs/v2/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ McPatch 是一个给 Minecraft 客户端做文件更新的独立应用程序。

只要你想,你可以通过这个程序向你服务器的玩家提供一切内容,包括模组、资源包、以及~~不可言说的视频~~

这里是McPatch v2版本的文档,如果你是v1版本的老用户,请看下面的升级说明
:::danger

这里是 McPatch V2 版本的文档,V2 版本与 V1 版本无法共存或互通,如需升级到 V2 版本,请依照下方说明操作

<details>
<summary>从v1升级说明</summary>
Expand Down Expand Up @@ -40,6 +42,8 @@ McPatch 是一个给 Minecraft 客户端做文件更新的独立应用程序。

</details>

:::

## 为什么需要这样一款软件

你在游戏中出现的每一个 Bug,开发者都在修复,自然,模组也是如此,对于替换掉玩家手里旧的 Mod 这件事,相信你和我们一样被困扰着
Expand Down
22 changes: 22 additions & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,28 @@ const sidebars = {
//tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],

// But you can create a sidebar manually
Sidebar: [
{
type: 'doc',
id: 'index',
label: '文档首页',
},
{
type: 'doc',
id: 'v1-old/start',
label: 'V1 旧版文档',
},
{
type: 'doc',
id: 'v1/start',
label: 'V1 新版文档',
},
{
type: 'doc',
id: 'v2/start',
label: 'V2 文档',
},
],
v1oldSidebar: [
{
type: 'doc',
Expand Down
24 changes: 9 additions & 15 deletions src/components/HomepageFeatures/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,29 @@ import styles from './styles.module.css';

const FeatureList = [
{
title: 'Easy to Use',
Svg: require('/static/img/undraw_docusaurus_mountain.svg').default,
title: '对 Minecraft 的兼容性强',
//Svg: require('/static/img/undraw_docusaurus_mountain.svg').default,
description: (
<>
Docusaurus was designed from the ground up to be easily installed and
used to get your website up and running quickly.
McPatch 作为独立项目,不基于 Minecraft,意味着可以基于任意一个 Minecraft 版本部署,稳定性有保障
</>
),
},
{
title: 'Focus on What Matters',
Svg: require('/static/img/undraw_docusaurus_tree.svg').default,
title: '拥有多种更新协议',
//Svg: require('/static/img/undraw_docusaurus_tree.svg').default,
description: (
<>
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
ahead and move your docs into the <code>docs</code> directory.
支持免备案开箱即用的私有协议,也支持更加通用的http,还支持web协议访问
</>
),
},
{
title: 'Powered by React',
Svg: require('/static/img/undraw_docusaurus_react.svg').default,
title: '对 Minecraft 服主友好',
//Svg: require('/static/img/undraw_docusaurus_react.svg').default,
description: (
<>
Extend or customize your website layout by reusing React. Docusaurus can
be extended while reusing the same header and footer.
McPatch 是一个提供给 Minecraft 服主的工具,只需要在服务器上打包好各类资源,就可分发给每一位玩家
</>
),
},
Expand All @@ -38,9 +35,6 @@ const FeatureList = [
function Feature({Svg, title, description}) {
return (
<div className={clsx('col col--4')}>
<div className="text--center">
<Svg className={styles.featureSvg} role="img" />
</div>
<div className="text--center padding-horiz--md">
<Heading as="h3">{title}</Heading>
<p>{description}</p>
Expand Down
64 changes: 64 additions & 0 deletions src/components/HomepageFeatures/index.js.back
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import clsx from 'clsx';
import Heading from '@theme/Heading';
import styles from './styles.module.css';

const FeatureList = [
{
title: '',
Svg: require('/static/img/undraw_docusaurus_mountain.svg').default,
description: (
<>
Docusaurus was designed from the ground up to be easily installed and
used to get your website up and running quickly.
</>
),
},
{
title: 'Focus on What Matters',
Svg: require('/static/img/undraw_docusaurus_tree.svg').default,
description: (
<>
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
ahead and move your docs into the <code>docs</code> directory.
</>
),
},
{
title: 'Powered by React',
Svg: require('/static/img/undraw_docusaurus_react.svg').default,
description: (
<>
Extend or customize your website layout by reusing React. Docusaurus can
be extended while reusing the same header and footer.
</>
),
},
];

function Feature({Svg, title, description}) {
return (
<div className={clsx('col col--4')}>
<div className="text--center">
<Svg className={styles.featureSvg} role="img" />
</div>
<div className="text--center padding-horiz--md">
<Heading as="h3">{title}</Heading>
<p>{description}</p>
</div>
</div>
);
}

export default function HomepageFeatures() {
return (
<section className={styles.features}>
<div className="container">
<div className="row">
{FeatureList.map((props, idx) => (
<Feature key={idx} {...props} />
))}
</div>
</div>
</section>
);
}
2 changes: 1 addition & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function HomepageHeader() {
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/v2/start">
to="/docs">
花 10 分钟搭建一个
</Link>
</div>
Expand Down

0 comments on commit fac7298

Please sign in to comment.