Skip to content

Commit 8efc3bf

Browse files
committed
upload
1 parent 98108aa commit 8efc3bf

File tree

4 files changed

+83
-35
lines changed

4 files changed

+83
-35
lines changed

.github/workflows/deploy.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
# Review gh actions docs if you want to further define triggers, paths, etc
8+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9+
10+
jobs:
11+
build:
12+
name: Build Docusaurus
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 18
21+
cache: npm
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
- name: Build website
26+
run: npm build
27+
28+
- name: Upload Build Artifact
29+
uses: actions/upload-pages-artifact@v3
30+
with:
31+
path: build
32+
33+
deploy:
34+
name: Deploy to GitHub Pages
35+
needs: build
36+
37+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
38+
permissions:
39+
pages: write # to deploy to Pages
40+
id-token: write # to verify the deployment originates from an appropriate source
41+
42+
# Deploy to the github-pages environment
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

.github/workflows/test-deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Test deployment
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
# Review gh actions docs if you want to further define triggers, paths, etc
8+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9+
10+
jobs:
11+
test-deploy:
12+
name: Test deployment
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 18
21+
cache: npm
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
- name: Test build website
26+
run: npm build

docs/tutorial/install-core.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ sidebar_position: 1
44

55
# 安装 DCCM 核心
66

7+
:::info
8+
这个教程适合
9+
:::
10+
711
## 先决条件
812

913
- **.NET 9 运行时**

docusaurus.config.js

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ const config = {
2929
// If you aren't using GitHub pages, you don't need these.
3030
organizationName: 'dead-cells-core-modding', // Usually your GitHub org/user name.
3131
projectName: 'core', // Usually your repo name.
32-
33-
onBrokenLinks: 'throw',
32+
trailingSlash: true,
33+
onBrokenLinks: 'warn',
3434
onBrokenMarkdownLinks: 'warn',
3535

3636
// Even if you don't use internationalization, you can use this field to set
@@ -88,39 +88,6 @@ const config = {
8888
},
8989
],
9090
},
91-
footer: {
92-
style: 'dark',
93-
links: [
94-
{
95-
title: '文档',
96-
items: [
97-
{
98-
label: '教程',
99-
to: '/docs/intro',
100-
},
101-
],
102-
},
103-
{
104-
title: '社区',
105-
items: [
106-
{
107-
label: 'Discord',
108-
href: 'https://discord.gg/deadcells',
109-
},
110-
],
111-
},
112-
{
113-
title: '更多',
114-
items: [
115-
{
116-
label: 'GitHub',
117-
href: 'https://github.com/dead-cells-core-modding/core',
118-
},
119-
],
120-
},
121-
],
122-
copyright: `Built with Docusaurus.`,
123-
},
12491
prism: {
12592
theme: prismThemes.github,
12693
darkTheme: prismThemes.dracula,

0 commit comments

Comments
 (0)