Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
267 changes: 134 additions & 133 deletions astro.config.ts

Large diffs are not rendered by default.

34 changes: 0 additions & 34 deletions src/components/LastUpdated.astro
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
---
/*
* Copyright (c) PaperMC
*
* This file includes code derived from the PaperMC project,
* licensed under the BSD 2-Clause License.
*
* Modified by wling
*/

import { Image } from "astro:assets";
import { REPO, getCommitInfo } from "../utils/git";

const { lang, lastUpdated } = Astro.locals.starlightRoute;
const filePath = Astro.locals.starlightRoute.entry.filePath;

const info = await getCommitInfo(filePath);
---

{
Expand All @@ -29,25 +14,6 @@ const info = await getCommitInfo(filePath);
})}
</time>
</span>
{info && (
<span class="flex items-center gap-1">
由{" "}
<a href={info.committer.href} class="flex items-center gap-1 text-accent-high hover:underline">
{info.committer.avatar && (
<Image
src={info.committer.avatar}
alt={info.committer.name}
class="size-4.5 rounded-full"
width="18"
height="18"
loading="lazy"
/>
)}
{info.committer.name}
</a>{" "}
在 <a href={`https://github.com/${REPO}/commit/${info.hash}`} class="text-accent-high hover:underline">{info.hash.substring(0, 7)}</a> 提交
</span>
)}
</p>
)
}
Expand Down
5 changes: 2 additions & 3 deletions src/content.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ export const collections = {
docs: defineCollection({
loader: docsLoader(),
schema: docsSchema({
extend: z.object({
giscus: z.boolean().optional().default(true),
topicSchema: topicSchema.optional()
extend: topicSchema.extend({
giscus: z.boolean().optional().default(true)
})
})
})
Expand Down
8 changes: 8 additions & 0 deletions src/content/docs/bedrock/advance/management/intro.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 经营管理
topic: bedrock
---

import Doc from "../../../general/advance/management/intro.md";

<Doc />
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 投资心理学
topic: bedrock
---

import Doc from "../../../../general/advance/management/money-management/investment-psychology.md";

<Doc />
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 资金管理
topic: bedrock
---

import Doc from "../../../../general/advance/management/money-management/money-management.md";

<Doc />
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 可持续性发展
topic: bedrock
---

import Doc from "../../../../general/advance/management/money-management/sustainable-development.md";

<Doc />
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 服务器公告
topic: bedrock
---

import Doc from "../../../../general/advance/management/player-management/announcement.md";

<Doc />
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 进服审核
topic: bedrock
---

import Doc from "../../../../general/advance/management/player-management/auditing.md";

<Doc />
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Chunkbase
topic: bedrock
---

import Doc from "../../../../general/advance/management/player-management/chunkbase.md";

<Doc />
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 分发客户端
topic: bedrock
---

import Doc from "../../../../general/advance/management/player-management/client-distribution.mdx";

<Doc />
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 玩家反馈
topic: bedrock
---

import Doc from "../../../../general/advance/management/player-management/feedback.md";

<Doc />
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 玩家交流平台
topic: bedrock
---

import Doc from "../../../../general/advance/management/player-management/platform.md";

<Doc />
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 玩家管理
topic: bedrock
---

import Doc from "../../../../general/advance/management/player-management/player-management.md";

<Doc />
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 服务器规则
topic: bedrock
---

import Doc from "../../../../general/advance/management/player-management/rules.md";

<Doc />
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 白名单制度
topic: bedrock
---

import Doc from "../../../../general/advance/management/player-management/whitelist.md";

<Doc />
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Minecraft Wiki
topic: bedrock
---

import Doc from "../../../../general/advance/management/player-management/wiki.md";

<Doc />
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 选择、下载和安装 Java
topic: bedrock
---

import Doc from "../../../general/java/choose-and-download-and-install-java.md";

<Doc />
8 changes: 8 additions & 0 deletions src/content/docs/bedrock/preparation/java/environment.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 环境变量
topic: bedrock
---

import Doc from "../../../general/java/environment.mdx";

<Doc />
8 changes: 8 additions & 0 deletions src/content/docs/bedrock/preparation/java/faq.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: FAQ
topic: bedrock
---

import Doc from "../../../general/java/faq.md";

<Doc />
8 changes: 8 additions & 0 deletions src/content/docs/bedrock/preparation/java/intro.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 概述
topic: bedrock
---

import Doc from "../../../general/java/intro.md";

<Doc />
8 changes: 8 additions & 0 deletions src/content/docs/bedrock/preparation/java/sdkman.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: SDKMAN!
topic: bedrock
---

import Doc from "../../../general/java/sdkman.md";

<Doc />
9 changes: 9 additions & 0 deletions src/content/docs/bedrock/preparation/text-editor/intro.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: 概述
topic: bedrock
sidebar:
order: 1
---
import Doc from "../../../general/preparation/text-editor/intro.md";

<Doc />
9 changes: 9 additions & 0 deletions src/content/docs/bedrock/preparation/text-editor/nano.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Nano
topic: bedrock
sidebar:
order: 6
---
import Doc from "../../../general/preparation/text-editor/nano.md";

<Doc />
9 changes: 9 additions & 0 deletions src/content/docs/bedrock/preparation/text-editor/notepad.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Notepad 系列
topic: bedrock
sidebar:
order: 3
---
import Doc from "../../../general/preparation/text-editor/notepad.md";

<Doc />
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Sublime Text
topic: bedrock
sidebar:
order: 4
---
import Doc from "../../../general/preparation/text-editor/sublime-text.md";

<Doc />
9 changes: 9 additions & 0 deletions src/content/docs/bedrock/preparation/text-editor/vim.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Vim
topic: bedrock
sidebar:
order: 5
---
import Doc from "../../../general/preparation/text-editor/vim.md";

<Doc />
8 changes: 8 additions & 0 deletions src/content/docs/bedrock/preparation/text-editor/vscode.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Visual Studio Code
topic: bedrock
---

import Doc from "../../../general/preparation/text-editor/vscode.md";

<Doc />
24 changes: 14 additions & 10 deletions src/content/docs/general/advance/linux/keep-running.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,24 @@ import { TabItem, Tabs } from "@astrojs/starlight/components";

<Tabs>
<TabItem label="Debian/Ubuntu">
```bash
apt-get install screen
```
```bash
apt-get install screen
```

</TabItem>
<TabItem label="CentOS/RHEL">
```bash
yum install screen
```
</TabItem>
```bash
yum install screen
```

</TabItem>
<TabItem label="Arch Linux">
```bash
pacman -Sy screen
```
```bash
pacman -Sy screen
```

</TabItem>

</Tabs>

screen 的基础指令:
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/general/intro.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 笨蛋开服教程
title: 概述
---

![](../../../assets/nitwikit-banner.png)
Expand Down
7 changes: 0 additions & 7 deletions src/content/docs/general/preparation/text-editor/geany.md

This file was deleted.

19 changes: 0 additions & 19 deletions src/content/docs/general/preparation/text-editor/hbuilderx.md

This file was deleted.

16 changes: 7 additions & 9 deletions src/content/docs/general/preparation/text-editor/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,17 @@ sidebar:

一个好用的文本编辑器是 **相当** 重要的。

它能够有效提高编辑插件、核心配置时的效率,降低错误使用语法的可能性。本文将介绍几个开服常用的文本编辑器
它能够有效提高编辑插件、核心配置时的效率,降低错误使用语法的可能性。下面的目录按推荐程度排序,越靠前的越推荐

:::caution[注意]

请不要再使用 Windows 自带的记事本和写字板了。这些文本编辑器通常有以下问题:

1. 可能造成文件编码发生改变。小白操作时尤其容易出现,部分情况下用记事本和写字板保存文件后文件因编码改变等问题而无法服务器读取。
2. 无法察觉到格式错误。有时编辑文件时会因为不小心删除或添加了些符号,导致配置文件语法错误,服务器无法识别。本文介绍的文本编辑器均能识别出这些格式错误并做出提示和警告,然而记事本和写字板却不具备这些功能。
3. 无法准确地辨认缩进等格式。这些文本编辑器由于默认不使用 [等宽字体](https://baike.baidu.com/item/%E7%AD%89%E5%AE%BD%E5%AD%97%E4%BD%93/8434037) 显示文字,导致其显示效果与原格式存在差异。
4. 没有语法高亮功能。在编辑配置文件时,语法高亮功能可以让你高效快速地找到指定配置项和值。它让配置文件更易于阅读,整体上提高了在服务器上进行操作的效率。本文介绍的文本编辑器均能识别出这些格式错误并做出提示和警告,然而记事本和写字板却不具备这些功能。
1. 可能造成文件编码发生改变。
2. 无法察觉到格式错误。
3. 无法准确地辨认缩进等格式。
4. 没有语法高亮功能。

:::

出于多方面原因,不推荐使用 GitHub 官方出品的 Atom,它已在 2022 年 12 月由于安全原因宣布停止维护。
本文介绍的文本编辑器均能解决以上问题。

接下来介绍几个常用的文本编辑器,供大家选择。
:::
9 changes: 0 additions & 9 deletions src/content/docs/general/preparation/text-editor/kate.md

This file was deleted.

Loading
Loading