Skip to content

Commit 6eeb1c5

Browse files
author
Lan
committed
Merge remote-tracking branch 'origin/master'
2 parents 1ff1d6c + 19b289d commit 6eeb1c5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+35765
-5
lines changed

.github/workflows/docs.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# 构建 VitePress 站点并将其部署到 GitHub Pages 的示例工作流程
2+
#
3+
name: Deploy VitePress site to Pages
4+
5+
on:
6+
# 在针对 `main` 分支的推送上运行。如果你
7+
# 使用 `master` 分支作为默认分支,请将其更改为 `master`
8+
push:
9+
branches: [ master ]
10+
11+
# 允许你从 Actions 选项卡手动运行此工作流程
12+
workflow_dispatch:
13+
14+
# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages
15+
permissions:
16+
contents: read
17+
pages: write
18+
id-token: write
19+
20+
# 只允许同时进行一次部署,跳过正在运行和最新队列之间的运行队列
21+
# 但是,不要取消正在进行的运行,因为我们希望允许这些生产部署完成
22+
concurrency:
23+
group: pages
24+
cancel-in-progress: false
25+
26+
jobs:
27+
# 构建工作
28+
build:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
with:
34+
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要
35+
- uses: pnpm/action-setup@v3
36+
with:
37+
version: 9
38+
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释
39+
- name: Setup Node
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: 20
43+
cache: 'pnpm'
44+
cache-dependency-path: 'docs/pnpm-lock.yaml'
45+
- name: Setup Pages
46+
uses: actions/configure-pages@v4
47+
- name: Install dependencies
48+
working-directory: docs
49+
run: pnpm install
50+
- name: Build with VitePress
51+
working-directory: docs
52+
run: pnpm run docs:build
53+
- name: Upload artifact
54+
uses: actions/upload-pages-artifact@v3
55+
with:
56+
path: docs/.vitepress/dist
57+
58+
# 部署工作
59+
deploy:
60+
environment:
61+
name: github-pages
62+
url: ${{ steps.deployment.outputs.page_url }}
63+
needs: build
64+
runs-on: ubuntu-latest
65+
name: Deploy
66+
steps:
67+
- name: Deploy to GitHub Pages
68+
id: deployment
69+
uses: actions/deploy-pages@v4

Dockerfile

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
11
FROM python:3.9.5-slim-buster
22
LABEL author="Lan"
3-
LABEL email="vast@tom.com"
3+
LABEL email="xzu@live.com"
44

5+
# 将当前目录下的文件复制到容器的 /app 目录
56
COPY . /app
6-
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
7-
RUN echo 'Asia/Shanghai' >/etc/timezone
7+
8+
# 设置时区为亚洲/上海
9+
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
10+
11+
# 设置工作目录
812
WORKDIR /app
13+
14+
# 删除不必要的目录,减少镜像体积
15+
RUN rm -rf docs fcb-fronted
16+
17+
# 安装依赖
918
RUN pip install -r requirements.txt
19+
20+
# 暴露端口
1021
EXPOSE 12345
11-
CMD ["python","main.py"]
22+
23+
# 启动应用
24+
CMD ["python", "main.py"]

docs/.vitepress/cache/deps/@theme_index.js

Lines changed: 275 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/.vitepress/cache/deps/@theme_index.js.map

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"hash": "d07f6dee",
3+
"configHash": "dee2d3bc",
4+
"lockfileHash": "bd28b2c2",
5+
"browserHash": "b96651ac",
6+
"optimized": {
7+
"vue": {
8+
"src": "../../../node_modules/.pnpm/vue@3.5.13/node_modules/vue/dist/vue.runtime.esm-bundler.js",
9+
"file": "vue.js",
10+
"fileHash": "bc5c7f34",
11+
"needsInterop": false
12+
},
13+
"vitepress > @vue/devtools-api": {
14+
"src": "../../../node_modules/.pnpm/@vue+devtools-api@7.7.1/node_modules/@vue/devtools-api/dist/index.js",
15+
"file": "vitepress___@vue_devtools-api.js",
16+
"fileHash": "00859881",
17+
"needsInterop": false
18+
},
19+
"vitepress > @vueuse/core": {
20+
"src": "../../../node_modules/.pnpm/@vueuse+core@12.5.0/node_modules/@vueuse/core/index.mjs",
21+
"file": "vitepress___@vueuse_core.js",
22+
"fileHash": "1c6da938",
23+
"needsInterop": false
24+
},
25+
"vitepress > @vueuse/integrations/useFocusTrap": {
26+
"src": "../../../node_modules/.pnpm/@vueuse+integrations@12.5.0_focus-trap@7.6.4/node_modules/@vueuse/integrations/useFocusTrap.mjs",
27+
"file": "vitepress___@vueuse_integrations_useFocusTrap.js",
28+
"fileHash": "11c08fcf",
29+
"needsInterop": false
30+
},
31+
"vitepress > mark.js/src/vanilla.js": {
32+
"src": "../../../node_modules/.pnpm/mark.js@8.11.1/node_modules/mark.js/src/vanilla.js",
33+
"file": "vitepress___mark__js_src_vanilla__js.js",
34+
"fileHash": "b93dbfe7",
35+
"needsInterop": false
36+
},
37+
"vitepress > minisearch": {
38+
"src": "../../../node_modules/.pnpm/minisearch@7.1.1/node_modules/minisearch/dist/es/index.js",
39+
"file": "vitepress___minisearch.js",
40+
"fileHash": "bfb6c3ac",
41+
"needsInterop": false
42+
},
43+
"@theme/index": {
44+
"src": "../../../node_modules/.pnpm/vitepress@1.6.3_@algolia+client-search@5.20.2_postcss@8.5.2_search-insights@2.17.3/node_modules/vitepress/dist/client/theme-default/index.js",
45+
"file": "@theme_index.js",
46+
"fileHash": "07512287",
47+
"needsInterop": false
48+
}
49+
},
50+
"chunks": {
51+
"chunk-KT7LHMJ2": {
52+
"file": "chunk-KT7LHMJ2.js"
53+
},
54+
"chunk-CQOUZRMK": {
55+
"file": "chunk-CQOUZRMK.js"
56+
}
57+
}
58+
}

0 commit comments

Comments
 (0)