Skip to content

Commit

Permalink
🐞 fix(route): fix contribute route
Browse files Browse the repository at this point in the history
  • Loading branch information
bingling-sama committed Aug 5, 2023
1 parent 575034e commit 8a6b0d5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
13 changes: 6 additions & 7 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default withPwa(
nav: [
{ text: "主页", link: "/" },
{ text: "崩溃分析工具", link: "/analyzer" },
{ text: "基础知识", link: "/basis" },
{
text: "客户端崩溃",
activeMatch: "/client/*",
Expand All @@ -47,7 +46,7 @@ export default withPwa(
text: "贡献",
activeMatch: "/contribute/*",
items: [
{ text: "贡献指南", link: "/contributing" },
{ text: "贡献指南", link: "/contribute/contributing" },
{ text: "崩溃提交", link: "https://github.com/GlobeMC/crashmc.com/issues/new/choose" }
]
},
Expand Down Expand Up @@ -115,17 +114,17 @@ export default withPwa(
{ text: "基础知识", link: "/basis" },
{
text: "客户端崩溃",
collapsed: true,
items: [
{ text: "客户端介绍", link: "/client/" },
{ text: "系统问题", link: "/client/system" },
{ text: "原版问题", link: "/client/vanilla" },
{ text: "Mod 问题", link: "/client/mods" },
]
},
{
text: "服务端崩溃",
collapsed: true,
items: [
{ text: "服务端介绍", link: "/server/" },
{ text: "通用问题", link: "/server/shared" },
{ text: "原版问题", link: "/server/vanilla" },
{ text: "Mod 端问题", link: "/server/mods" },
Expand All @@ -145,11 +144,11 @@ export default withPwa(
{
text: "贡献",
items: [
{ text: "贡献指南", link: "/contributing" },
{ text: "崩溃提交", link: "https://github.com/GlobeMC/crashmc.com/issues/new/choose" },
{ text: "贡献指南", link: "/contribute/contributing" },
{ text: "崩溃提交", link: "/contribute/crash-report" },
],
},
{ text: "关于我们", link: "/team" },
{ text: "关于我们", link: "/about" },
],

socialLinks: [{ icon: "github", link: "https://github.com/GlobeMC" }],
Expand Down
14 changes: 11 additions & 3 deletions docs/contributing.md → docs/contribute/contributing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup>
import LauncherBadge from '../components/LauncherBadge.vue'
import LauncherBadge from '../../components/LauncherBadge.vue'
</script>

# 贡献指南
Expand All @@ -26,33 +26,41 @@ import LauncherBadge from '../components/LauncherBadge.vue'

:::warning 警告
在使用 Component 之前,请务必在 Markdown 最顶部引入它。

```vue
<script setup>
import LauncherBadge from '../components/LauncherBadge.vue'
</script>
```

:::

:::details HMCL

### 修改渲染器 <LauncherBadge type="hmcl" text="仅 HMCL" />

```md
### 修改渲染器 <LauncherBadge type="hmcl" text="仅 HMCL" />
```

:::

:::details BakaXL

### 重置核心 <LauncherBadge type="bakaxl" text="仅 BakaXL" />

```md
### 重置核心 <LauncherBadge type="bakaxl" text="仅 BakaXL" />
```

:::

:::details PCL2
:::details

### 修改验证服务器 <LauncherBadge type="pcl" text="仅 PCL2" />

```md
### 修改验证服务器 <LauncherBadge type="pcl" text="仅 PCL2" />
```
:::

:::
3 changes: 3 additions & 0 deletions docs/contribute/crash-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 崩溃提交

https://github.com/GlobeMC/crashmc.com/issues/new/choose

0 comments on commit 8a6b0d5

Please sign in to comment.