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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
102 changes: 51 additions & 51 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
name: Test

on:
push:
branches:
- 'main'
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- "main"
pull_request:
types: [opened, reopened, synchronize]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
# 拉取代码
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
deploy:
runs-on: ubuntu-latest
steps:
# 拉取代码
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: "Install"
run: "pnpm install --frozen-lockfile"
- name: "Install"
run: "pnpm install --frozen-lockfile"

# 压缩图片
- name: "图片压缩"
uses: calibreapp/image-actions@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jpegQuality: '80'
pngQuality: '80'
webpQuality: '80'
ignorePaths: 'node_modules/**'
compressOnly: true
# 压缩图片
- name: "图片压缩"
uses: calibreapp/image-actions@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jpegQuality: "80"
pngQuality: "80"
webpQuality: "80"
ignorePaths: "node_modules/**"
compressOnly: true

- name: "MarkdownLint Check"
uses: DavidAnson/markdownlint-cli2-action@v17
with:
fix: true
globs: 'docs*/**/*.md'
- name: "MarkdownLint Check"
uses: DavidAnson/markdownlint-cli2-action@v17
with:
fix: true
globs: "docs*/**/*.md"

- name: "Build"
run: "pnpm run build"
- name: "Build"
run: "pnpm run build"
8 changes: 3 additions & 5 deletions .imgbotconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"aggressiveCompression": true,
"ignoredFiles": [
"*.svg",
],
"schedule": "weekly",
}
"ignoredFiles": ["*.svg"],
"schedule": "weekly"
}
4 changes: 2 additions & 2 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"default": true,
"line-length": {"line_length": 1000},
"line-length": { "line_length": 1000 },
"single-h1": false,
"no-bare-urls": false,
"no-inline-html": false,
"no-alt-text": false
}
}
20 changes: 20 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"experimentalTernaries": false,
"printWidth": 120,
"tabWidth": 4,
"useTabs": false,
"semi": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "none",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "always",
"rangeStart": 0,
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "ignore",
"vueIndentScriptAndStyle": false,
"endOfLine": "lf",
"embeddedLanguageFormatting": "auto",
"singleAttributePerLine": false
}
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

- [这篇文档有问题](#这篇文档有问题)
- [我想要为文档做出贡献](#我想要为文档做出贡献)
- [格式要求](#格式要求)
- [尽量使用个人分叉而不是组织分叉](#尽量使用个人分叉而不是组织分叉)
- [格式要求](#格式要求)
- [尽量使用个人分叉而不是组织分叉](#尽量使用个人分叉而不是组织分叉)
- [感谢](#感谢)

## 这篇文档有问题
Expand Down
19 changes: 9 additions & 10 deletions docs-about/ad.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@

# 广告

**在组织恢复前,广告不会更新和恢复**

Check failure on line 8 in docs-about/ad.md

View workflow job for this annotation

GitHub Actions / deploy

Emphasis used instead of a heading

docs-about/ad.md:8 MD036/no-emphasis-as-heading Emphasis used instead of a heading [Context: "在组织恢复前,广告不会更新和恢复"] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md036.md

## 存档

在投放前,请确保你的内容满足以下要求:

* 与 Minecraft 有关
* 合法合规 (不要求有备案)
* **申请时**在信用方面没有问题
- 与 Minecraft 有关
- 合法合规 (不要求有备案)
- **申请时**在信用方面没有问题

价格 (单位:人民币/月)

### Q 群

- 群名称广告

29.9/月(仅限一个Q号)
29.9/月(仅限一个Q号)

- 群聊天消息广告

39.9/月
39.9/月

仅限一个 Q 号,每天三次,每次只允许一条消息

Expand All @@ -35,7 +35,7 @@

### Tier 1

根据你的付费内容,我们会在对应页面写宣传语或开 教程*,并且在赞助商那里加上你的网站链接或联系方式,以下是对应的内容:
根据你的付费内容,我们会在对应页面写宣传语或开 教程\*,并且在赞助商那里加上你的网站链接或联系方式,以下是对应的内容:

- VPS -> [购买服务器](/process/deploy/purchase-server)
- 模型定制 -> [创建美术资源](/process/create-art-assets)
Expand All @@ -44,7 +44,7 @@

更多的就不链接了,只要和 MC 有关,都有地方挂广告,没有就立刻开新的天坑

教程*:需要你提供教程内容
教程\*:需要你提供教程内容

以及允许群名称广告(仅限一个 Q 号),可以将群名称改为 A.xxx 在群成员列表中得到靠前的位置

Expand All @@ -60,11 +60,11 @@

### Tier 2

对你提供的服务 所有* 内容在适当位置 (请查看 Tier 1) 编写教程,在赞助商那里加上你的网站链接或联系方式
对你提供的服务 所有\* 内容在适当位置 (请查看 Tier 1) 编写教程,在赞助商那里加上你的网站链接或联系方式

允许每天在群里发一次广告 (不超过 50 字)

所有*:
所有\*:

- 只能宣传自己的服务,不能以任何理由为自己以外的其他人宣传
- 服务数量适可而止,你一个人是怎么提供几十种服务的?
Expand Down Expand Up @@ -93,4 +93,3 @@
2. 对于 跑路/诈骗/较久联系不上 或发生一些恶劣影响事件,撤销广告(不退费)
3. 禁止在广告中出现不文明词汇或攻击其他广告
4. 特殊情况和本页之外的情况,完全由站长驿站忆行决定

2 changes: 1 addition & 1 deletion docs-about/arch.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Cubic-Project 所有文档采用静态页面,主要为 Docusaurus,VitePress,mk

其中 `8aka.org` 所有的文档托管在 Cloudflare Page/Worker,`8aka.cn` 托管在 EdgeOne Page,并且进行了备案

`pvp.kim` 是 Cubic-Project 提供的免费的域名,你可以在 `domain.8aka.org` 上面注册
`pvp.kim` 是 Cubic-Project 提供的免费的域名,你可以在 `domain.8aka.org` 上面注册
34 changes: 17 additions & 17 deletions docs-about/contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,24 @@ import ContributorCard from '@site/src/components/ContributorCard';

1. Fork 本仓库到你的 GitHub 账户
2. 克隆你 Fork 的仓库到本地
```bash
git clone https://github.com/你的用户名/NitWikit.git
```
如果你对历史记录没有需求,建议这么克隆
```bash
git clone https://github.com/你的用户名/NitWikit.git --depth 1
```
```bash
git clone https://github.com/你的用户名/NitWikit.git
```
如果你对历史记录没有需求,建议这么克隆
```bash
git clone https://github.com/你的用户名/NitWikit.git --depth 1
```
3. 创建新的分支
```bash
git checkout -b feature/your-feature-name
```
```bash
git checkout -b feature/your-feature-name
```
4. 进行修改并提交
```bash
git add .
git commit -m "描述你的修改"
```
```bash
git add .
git commit -m "描述你的修改"
```
5. 推送到你的仓库
```bash
git push origin feature/your-feature-name
```
```bash
git push origin feature/your-feature-name
```
6. 创建 Pull Request
1 change: 0 additions & 1 deletion docs-about/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,3 @@ MC 里傻子村民的英文就是 nitwit,后缀又和 wiki 相近,所以组
画群头像,banner 图,MineBBS 宣传图,小涵想写 Bedrock 内容给文档拆成三块,突然冒出个糯米团子搞出个 VitePress 版文档,
有那么几个我不认识的人和我认识的三七为笨蛋文档录制视频,千屈帮助编写了好多好多内容,修了好多 bug,甚至重写文档整个界面等等。
不知不觉就有了六十多个贡献者,如果算上 GitHub 之外提供建议和帮助的人,远比这个数字要多。

24 changes: 12 additions & 12 deletions docs-about/sponsor.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ import SponsorCard from '@site/src/components/SponsorCard';

## 赞助者

<SponsorCard
sponsors={[
{ name: '碳酸锂片', amount: 200, qq: '3631901756' },
{ name: '千屈', amount: 100, qq: '3824670178' },
{ name: 'shi', amount: 100, qq: '1978606020' },
{ name: '忘记名字了', amount: 50, qq: 'default' },
{ name: '哓迅', amount: 30, qq: '2720819243' },
{ name: '未雨屏', amount: 110, qq: '207622954' },
{ name: 'awa', amount: 10,qq: 'default' },
{ name: 'Pepper', amount: 10,qq: '2747789919' },
{ name: 'PuddingKC', amount: 30, qq: '3116078709' }
]}
<SponsorCard
sponsors={[
{ name: '碳酸锂片', amount: 200, qq: '3631901756' },
{ name: '千屈', amount: 100, qq: '3824670178' },
{ name: 'shi', amount: 100, qq: '1978606020' },
{ name: '忘记名字了', amount: 50, qq: 'default' },
{ name: '哓迅', amount: 30, qq: '2720819243' },
{ name: '未雨屏', amount: 110, qq: '207622954' },
{ name: 'awa', amount: 10,qq: 'default' },
{ name: 'Pepper', amount: 10,qq: '2747789919' },
{ name: 'PuddingKC', amount: 30, qq: '3116078709' }
]}
/>
Loading
Loading