Skip to content

Commit

Permalink
Reorganize Nav bar and Guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
M1hono committed Sep 19, 2024
1 parent 2759149 commit e98d27e
Show file tree
Hide file tree
Showing 23 changed files with 1,977 additions and 14 deletions.
10 changes: 8 additions & 2 deletions .vitepress/config/lang/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const en_US = <DefaultTheme.Config>{
description: "A site containing docs for Minecraft developing.",
themeConfig: {
nav: [
{text: "Cooperation Guide", link: "/en/doc/rules"},
{
text: "KubeJS",
items: [
Expand Down Expand Up @@ -58,7 +57,14 @@ export const en_US = <DefaultTheme.Config>{
},
],
},
{ text: "Guide", link: "/en/doc/guide" },
{text: "Cooperation Guide", link: "/en/doc/rules"},
{text: "Guide", items: [
{text: "Minecraft", link: "/en/doc/guide/minecraft"},
{text: "KubeJS", link: "/en/doc/guide/KubeJS"},
{text: "Pixelart", link: "/en/doc/guide/pixelart"},
{text: "Art Resource", link: "/en/doc/guide/resource"},
{text: "Community", link: "/en/doc/guide/community"},
]},
],
sidebar: sidebars("en"),
outline: {
Expand Down
10 changes: 8 additions & 2 deletions .vitepress/config/lang/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export const zh_CN = <DefaultTheme.Config>{
description: "一个包含 Minecraft 开发文档的网站。",
themeConfig: {
nav: [
{text: "合作须知", link: "/zh/doc/rules"},
{
text: "KubeJS",
items: [
Expand Down Expand Up @@ -59,7 +58,14 @@ export const zh_CN = <DefaultTheme.Config>{
},
]
},
{ text: "导航", link: "/zh/doc/guide" },
{text: "合作须知", link: "/zh/doc/rules"},
{text: "导航", items: [
{text: "我的世界", link: "/zh/doc/guide/minecraft"},
{text: "KubeJS", link: "/zh/doc/guide/KubeJS"},
{text: "像素艺术", link: "/zh/doc/guide/pixelart"},
{text: "美术资源", link: "/zh/doc/guide/resource"},
{text: "社区交流", link: "/zh/doc/guide/community"},
]},
],
sidebar: sidebars("zh"),
outline: {
Expand Down
1 change: 1 addition & 0 deletions docs/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
// biome-ignore lint: disable
export {}
declare global {

Expand Down
6 changes: 3 additions & 3 deletions docs/en/doc/guide.md → docs/en/doc/guide/KubeJS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: doc
title: CrychicDoc Guide
title: KubeJS
layoutClass: m-nav-layout
sidebar: false

Expand All @@ -13,11 +13,11 @@ showComment: false
metadata: false
outline: [2,2]
---
<style src="../../../.vitepress/theme/style/nav.scss"></style>
<style src="../../../../.vitepress/theme/style/nav.scss"></style>

<script setup>
import { ref } from "vue";
import { NAV_DATA } from '../Components/guide.ts'
import { NAV_DATA } from './guidets/KubeJS.ts'
const NAV_DATAS = ref(NAV_DATA)
</script>

Expand Down
26 changes: 26 additions & 0 deletions docs/en/doc/guide/community.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
layout: doc
title: Community Link
layoutClass: m-nav-layout
sidebar: false

prev: false
next: false
editLink: false
editor: false
gitChangelog: false
showComment: false
metadata: false
outline: [2,2]
---
<style src="../../../../.vitepress/theme/style/nav.scss"></style>

<script setup>
import { ref } from "vue";
import { NAV_DATA } from './guidets/community.ts'
const NAV_DATAS = ref(NAV_DATA)
</script>

# {{ $frontmatter.title }}
## This part is still pending.
<MNavLinks v-for="{title, items} in NAV_DATAS" :title="title" :items="items"/>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { NavData } from '../../../.vitepress/utils/type'
import type { NavData } from '../../../../../.vitepress/utils/type'

export const NAV_DATA: NavData[] = [
{
Expand Down
289 changes: 289 additions & 0 deletions docs/en/doc/guide/guidets/community.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { NavData } from '../../../.vitepress/utils/type'
import type { NavData } from '../../../../../.vitepress/utils/type'

export const NAV_DATA: NavData[] = [
{
title: "Minecraft Useful Links",
items: [
{
title: "Minecraft wiki",
link: "https://zh.minecraft.wiki/",
icon: "https://zh.minecraft.wiki/images/Wiki.png"
link: "https://https://minecraft.wiki/",
icon: "https://https://minecraft.wiki/images/Wiki.png"
},
{
title: "modtinth",
Expand Down
289 changes: 289 additions & 0 deletions docs/en/doc/guide/guidets/pixelart.ts

Large diffs are not rendered by default.

289 changes: 289 additions & 0 deletions docs/en/doc/guide/guidets/resource.ts

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/zh/doc/guide.md → docs/en/doc/guide/minecraft.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: doc
title: CrychicDoc导航
title: Minecraft
layoutClass: m-nav-layout
sidebar: false

Expand All @@ -13,11 +13,11 @@ showComment: false
metadata: false
outline: [2,2]
---
<style src="../../../.vitepress/theme/style/nav.scss"></style>
<style src="../../../../.vitepress/theme/style/nav.scss"></style>

<script setup>
import { ref } from "vue";
import { NAV_DATA } from '../Components/guide.ts'
import { NAV_DATA } from './guidets/minecraft.ts'
const NAV_DATAS = ref(NAV_DATA)
</script>

Expand Down
26 changes: 26 additions & 0 deletions docs/en/doc/guide/pixelart.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
layout: doc
title: Pixel Art
layoutClass: m-nav-layout
sidebar: false

prev: false
next: false
editLink: false
editor: false
gitChangelog: false
showComment: false
metadata: false
outline: [2,2]
---
<style src="../../../../.vitepress/theme/style/nav.scss"></style>

<script setup>
import { ref } from "vue";
import { NAV_DATA } from './guidets/pixelart.ts'
const NAV_DATAS = ref(NAV_DATA)
</script>

# {{ $frontmatter.title }}

<MNavLinks v-for="{title, items} in NAV_DATAS" :title="title" :items="items"/>
26 changes: 26 additions & 0 deletions docs/en/doc/guide/resource.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
layout: doc
title: Art resources
layoutClass: m-nav-layout
sidebar: false

prev: false
next: false
editLink: false
editor: false
gitChangelog: false
showComment: false
metadata: false
outline: [2,2]
---
<style src="../../../../.vitepress/theme/style/nav.scss"></style>

<script setup>
import { ref } from "vue";
import { NAV_DATA } from './guidets/resource.ts'
const NAV_DATAS = ref(NAV_DATA)
</script>

# {{ $frontmatter.title }}
## This part is still pending.
<MNavLinks v-for="{title, items} in NAV_DATAS" :title="title" :items="items"/>
26 changes: 26 additions & 0 deletions docs/zh/doc/guide/KubeJS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
layout: doc
title: KubeJS
layoutClass: m-nav-layout
sidebar: false

prev: false
next: false
editLink: false
editor: false
gitChangelog: false
showComment: false
metadata: false
outline: [2,2]
---
<style src="../../../../.vitepress/theme/style/nav.scss"></style>

<script setup>
import { ref } from "vue";
import { NAV_DATA } from './guidets/KubeJS.ts'
const NAV_DATAS = ref(NAV_DATA)
</script>

# {{ $frontmatter.title }}

<MNavLinks v-for="{title, items} in NAV_DATAS" :title="title" :items="items"/>
26 changes: 26 additions & 0 deletions docs/zh/doc/guide/community.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
layout: doc
title: 社区链接
layoutClass: m-nav-layout
sidebar: false

prev: false
next: false
editLink: false
editor: false
gitChangelog: false
showComment: false
metadata: false
outline: [2,2]
---
<style src="../../../../.vitepress/theme/style/nav.scss"></style>

<script setup>
import { ref } from "vue";
import { NAV_DATA } from './guidets/community.ts'
const NAV_DATAS = ref(NAV_DATA)
</script>

# {{ $frontmatter.title }}
## 该部分目前完全没有施工。
<MNavLinks v-for="{title, items} in NAV_DATAS" :title="title" :items="items"/>
131 changes: 131 additions & 0 deletions docs/zh/doc/guide/guidets/KubeJS.ts

Large diffs are not rendered by default.

Loading

0 comments on commit e98d27e

Please sign in to comment.