-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
90 changed files
with
3,784 additions
and
4,242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,49 @@ | ||
|
||
name: 部署文档 | ||
name: Build and Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
# 确保这是你正在使用的分支名称 | ||
# make sure this is the branch you are using | ||
- v3 | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
deploy-gh-pages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: true | ||
# if your docs needs submodules, uncomment the following line | ||
# submodules: true | ||
|
||
- name: 安装 pnpm | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 7 | ||
run_install: true | ||
version: 8 | ||
|
||
|
||
- name: 设置 Node.js | ||
uses: actions/setup-node@v3 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
|
||
- name: 构建文档 | ||
- name: Build Docs | ||
env: | ||
NODE_OPTIONS: --max_old_space_size=8192 | ||
run: |- | ||
pnpm run docs:build | ||
> src/.vuepress/dist/.nojekyll | ||
> .vuepress/dist/.nojekyll | ||
- name: 部署文档 | ||
- name: Deploy Docs | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
# 这是文档部署到的分支名称 | ||
# This is the branch where the docs are deployed to | ||
branch: gh-pages | ||
folder: src/.vuepress/dist | ||
folder: .vuepress/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
node_modules/ | ||
src/.vuepress/.cache/ | ||
src/.vuepress/.temp/ | ||
src/.vuepress/dist/ | ||
.vuepress/.cache/ | ||
.vuepress/.temp/ | ||
.vuepress/dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { defineUserConfig } from "vuepress"; | ||
import theme from "./theme.js"; | ||
import { hopeTheme } from "vuepress-theme-hope"; | ||
|
||
export default defineUserConfig({ | ||
base: "/", | ||
|
||
locales: { | ||
"/": { | ||
lang: "en-US", | ||
title: "skimit", | ||
description: "A Minecraft survival+ server", | ||
}, | ||
"/zh/": { | ||
lang: "zh-CN", | ||
title: "skimit", | ||
description: "一个 Minecraft 生存+ 服务器", | ||
}, | ||
}, | ||
|
||
theme, | ||
|
||
// Enable it with pwa | ||
// shouldPrefetch: false, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { navbar } from "vuepress-theme-hope"; | ||
|
||
export const enNavbar = navbar([ | ||
"/", | ||
{ | ||
text: "Guide", | ||
icon: "book", | ||
prefix: "/guide/", | ||
children: [ | ||
{ | ||
text: "Join the game", | ||
icon: "right-to-bracket", | ||
link: "join/", | ||
}, | ||
{ | ||
text: "Rules", | ||
icon: "file-shield", | ||
link: "rules/", | ||
}, | ||
], | ||
}, | ||
{ | ||
text: "History", | ||
icon: "calendar", | ||
link: "history/", | ||
}, | ||
{ | ||
text: "Web map", | ||
icon: "map", | ||
link: "https://bluemap.skimit.net", | ||
}, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./en.js"; | ||
export * from "./zh.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { navbar } from "vuepress-theme-hope"; | ||
|
||
export const zhNavbar = navbar([ | ||
"/zh/", | ||
{ | ||
text: "指南", | ||
icon: "book", | ||
prefix: "/zh/guide/", | ||
children: [ | ||
{ | ||
text: "加入游戏", | ||
icon: "right-to-bracket", | ||
link: "join/", | ||
}, | ||
{ | ||
text: "规则", | ||
icon: "file-shield", | ||
link: "rules/", | ||
}, | ||
], | ||
}, | ||
{ | ||
text: "历史", | ||
icon: "calendar", | ||
link: "/zh/history/", | ||
prefix: "/zh/history/", | ||
children: ["2019/", "2020/", "2022/", "2023/"], | ||
}, | ||
{ | ||
text: "网页地图", | ||
icon: "map", | ||
link: "https://bluemap.skimit.net", | ||
}, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
skimit.net |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// place your custom styles here |
File renamed without changes.
Oops, something went wrong.