Skip to content

Commit

Permalink
修改主页部分错误
Browse files Browse the repository at this point in the history
  • Loading branch information
NIANIANKNIA committed Jun 20, 2024
1 parent 317225c commit 2befa47
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 38 deletions.
41 changes: 36 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"devDependencies": {
"@vuepress/bundler-vite": "2.0.0-rc.13",
"@vuepress/plugin-docsearch": "^2.0.0-rc.34",
"@vuepress/plugin-watermark": "^2.0.0-rc.36",
"vue": "^3.4.27",
"vuepress": "2.0.0-rc.13",
"vuepress-theme-hope": "2.0.0-rc.48"
Expand Down
1 change: 1 addition & 0 deletions src/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineUserConfig } from "vuepress";
import { docsearchPlugin } from "@vuepress/plugin-docsearch";
import { watermarkPlugin } from '@vuepress/plugin-watermark'
import theme from "./theme.js";

export default defineUserConfig({
Expand Down
13 changes: 3 additions & 10 deletions src/.vuepress/navbar/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,17 @@ export const zhNavbar = navbar([
{
text: "游玩指南",
icon: "lightbulb",
prefix: "/play-guide/",
children: ['index','regulation','Illustrated'],
link: "/play-guide/index"
},
{
text: "服务器相关",
icon: "server",
prefix: "/server/",
children: ['index','changelog','history','developers','specialThanks','map']
link: "/server/index"
},
{
text: "开发者文档",
icon: "code",
prefix: "/dev/",
children: ['index','Http-Bot','Shop','Ntrade','KillItem'],
link: "/dev/index"
},
{
text: "其他链接",
Expand All @@ -32,10 +29,6 @@ export const zhNavbar = navbar([
{
text: '如何编辑本文档站',
link: 'https://www.mcnia.top/howtoedit'
},
{
text: "获取授权ID",
link: "https://getid.mcnia.top",
}
],
}
Expand Down
4 changes: 4 additions & 0 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { hopeTheme } from "vuepress-theme-hope";
import { docsearchPlugin } from "@vuepress/plugin-docsearch";
import { watermarkPlugin } from '@vuepress/plugin-watermark'
import { enNavbar, zhNavbar } from "./navbar/index.js";
import { enSidebar, zhSidebar } from "./sidebar/index.js";

Expand Down Expand Up @@ -208,3 +209,6 @@ export default hopeTheme({
// },
},
});



32 changes: 15 additions & 17 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ highlights:
link: /server

- header: 原版生存内容扩展
description: 我们基于原版生存进行了大量内容扩展,让你的生存体验更加丰富!
description: 我们基于原版生存使用官方Add-ons对玩法进行一定的修改,让你的生存体验更加丰富!
image: /mc_icons/Scaffolding.png
bgImageStyle:
background-repeat: repeat
background-size: initial
features:
- title: 地形生成修改
- title: 全新挑战
icon: mound
details: 全新的地形生成,让整个游戏世界更加丰富多彩
details: 在水里可以呼吸,而在空气中会窒息!对于这样的挑战你准备好了吗?
- title: 生物修改
icon: fish
details: 为了匹配扩展之后的游戏内容,我们修改了部分生物的行为
Expand All @@ -49,29 +49,27 @@ highlights:
details: 为了方便玩家之间的交易,我们提供了交易市场,让你可以更加方便的交易


- header: 开放的开发环境
description: 我们提供了开放的开发环境,让你可以自由的开发属于你自己的服务器
- header: Add-ons&&相关组件全部开源
description: 服务器所开发的Add-ons和相关组件全部开源,你可以根据自己的需求开设一个属于你自己的服务器
image: /mc_icons/promo_creeper.png
features:
- title: Http-BOT
icon: server
details: 基于Http实现对文件进行读写操作,赋予了原版script-api更多的能力
link: /dev/Http-BOT

- title: 服务器源代码全部开源
- title: 同步服务器新特性
icon: file-code
details: 服务器源代码全部开源,你可以在Github上找到我们的项目
details: 开源的Add-ons和相关组件会同步服务器的新特性,同时跟随官方版本更新,为你提供最新的游戏体验
link: /server

- title: NIAHttpBOT
icon: server
details: 基于http实现对文件进行读写操作等操作,赋予了原版script-api更多的能力
link: /dev/Http-BOT

- title: 完善的开发文档
icon: file
details: 这里有完善的开发文档,可以帮助你快速上手开发
details: 这里有较为完善的开发文档,可以帮助你快速上手了解我们的开源项目如何使用

- title: 基于script-api开发
- title: Add-ons功能分离
icon: file-lines
details: 基于官方的script-api开发,随官方更新而更新,不用担心版本问题


details: Add-ons分为NiaServer-Core和NiaServer-ExtraFeatures两部分,你可以根据自己的需求选择性的使用


---
11 changes: 8 additions & 3 deletions src/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,23 @@ title: 关于本网站

## 📇网站构建状态

![status](https://img.shields.io/github/actions/workflow/status/NIANIANKNIA/NiaServer-Docs/deploy-docs.yml?style=for-the-badge)
![GitHub last commit](https://img.shields.io/github/last-commit/NIANIANKNIA/NiaServer-Docs?style=for-the-badge)
### 主站(docs.mcnia.com)

![status](https://img.shields.io/github/actions/workflow/status/Nia-Server/NiaServer-Docs/deploy-docs.yml?style=for-the-badge)
![GitHub last commit](https://img.shields.io/github/last-commit/Nia-Server/NiaServer-Docs?style=for-the-badge)


## 🧵网站基本信息

国内用户请访问镜像网站 [docs.mcnia.top](http://docs.mcnia.top)

网站基于github-page部署,使用[VuePress](https://v2.vuepress.vuejs.org/)构建

使用[VuePress-theme-hope](https://theme-hope.vuejs.press/)主题

文档站主要用于NIA服务器部分文档的展示!

文档站项目地址:[NiaServer-Docs](https://github.com/NIANIANKNIA/NiaServer-Docs)
文档站项目地址:[NiaServer-Docs](https://github.com/Nia-Server/NiaServer-Docs)

欢迎各位积极编写&&更正本文档!

Expand Down
4 changes: 2 additions & 2 deletions src/en-US/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ heroImageDark: /logoDark.png
tagline: Coming soon...
actions:
- text: Github
link: https://github.com/NIANIANKNIA/NiaServer-Docs
link: https://github.com/Nia-Server/NiaServer-Docs
type: primary
- text: Start
link: /en-US/server
link: /en-US/server/
type: secondary
features:
- title: 📝Rules and regulations
Expand Down
2 changes: 1 addition & 1 deletion src/server/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
lang: zh-CN
title: 关于本服务器
title: 服务器相关
---

# ⛳关于本服务器
Expand Down

0 comments on commit 2befa47

Please sign in to comment.