Skip to content

Commit

Permalink
Refactor: 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Glucy-2 committed Dec 31, 2023
1 parent 178b1f4 commit de34536
Show file tree
Hide file tree
Showing 90 changed files with 3,784 additions and 4,242 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/deploy-docs.yml
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
6 changes: 3 additions & 3 deletions .gitignore
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/
25 changes: 25 additions & 0 deletions .vuepress/config.ts
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,
});
32 changes: 32 additions & 0 deletions .vuepress/navbar/en.ts
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",
},
]);
2 changes: 2 additions & 0 deletions .vuepress/navbar/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from "./en.js";
export * from "./zh.js";
34 changes: 34 additions & 0 deletions .vuepress/navbar/zh.ts
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",
},
]);
1 change: 1 addition & 0 deletions .vuepress/public/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
skimit.net
Binary file added .vuepress/public/assets/icon/apple-icon-152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .vuepress/public/assets/icon/chrome-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .vuepress/public/assets/icon/chrome-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .vuepress/public/assets/icon/chrome-mask-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .vuepress/public/assets/icon/chrome-mask-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .vuepress/public/assets/icon/guide-maskable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .vuepress/public/assets/icon/ms-icon-144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .vuepress/public/assets/image/bg/2-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .vuepress/public/assets/image/bg/2-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .vuepress/public/assets/image/bg/6-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .vuepress/public/assets/image/bg/6-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .vuepress/public/assets/image/bg/9-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .vuepress/public/assets/image/bg/9-light.svg
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
Binary file added .vuepress/public/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions .vuepress/public/logo.svg
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.
1 change: 1 addition & 0 deletions .vuepress/styles/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// place your custom styles here
File renamed without changes.
Loading

0 comments on commit de34536

Please sign in to comment.