Skip to content

Commit

Permalink
chore(deps): update deps & config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sun-ZhenXing committed Nov 16, 2023
1 parent 2f88f29 commit 585c948
Show file tree
Hide file tree
Showing 17 changed files with 1,942 additions and 1,922 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: 部署文档

on:
Expand All @@ -11,26 +10,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
# 如果你文档需要 Git 子模块,取消注释下一行
# submodules: true

- name: 安装 pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true


- name: 设置 Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: pnpm


- name: 构建文档
env:
NODE_OPTIONS: --max_old_space_size=8192
Expand All @@ -41,6 +36,5 @@ jobs:
- name: 部署文档
uses: JamesIves/github-pages-deploy-action@v4
with:
# 这是文档部署到的分支名称
branch: gh-pages
folder: src/.vuepress/dist
10 changes: 1 addition & 9 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
default: true

# unordered-list-indent (default: 2)
MD007:
indent: 4

# MD013: line-length (default: 80)
# line-length (default: 80)
MD013: false

# MD025: single-title (allow title in frontmatter)
MD025:
front_matter_title: ''

# no-inline-html (allow only AutoCatalog)
MD033:
allowed_elements:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Builder
FROM node:18.16.0-bullseye-slim as builder
FROM node:20.9.0-bookworm as builder

WORKDIR /app

Expand All @@ -16,7 +16,7 @@ RUN npm -v \
&& pnpm build

# Nginx Server
FROM nginx:1.24.0-alpine3.17-slim
FROM nginx:1.25.3-alpine3.18-slim

WORKDIR /usr/share/nginx/html/

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ docker run -d -p 8080:80 sun-zhenxing.github.io

鸭梨 Logo 如下:

<!-- markdownlint-disable MD033 -->
<img src="https://github.com/Sun-ZhenXing/Sun-ZhenXing.github.io/raw/main/src/.vuepress/public/logo.svg" style="width: 64px" />

鸭梨 Logo 为原创设计,受到版权法保护,任何个人、组织和公司等不得以任何方式使用,引用 Logo 需要得到作者本人授权,如需要请通过上述博客主页提供的联系方式联系作者。
21 changes: 14 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,19 @@
"docs:dev": "vuepress dev src"
},
"devDependencies": {
"@algolia/client-search": "^4.19.1",
"@vuepress/client": "2.0.0-beta.67",
"@vuepress/plugin-docsearch": "2.0.0-beta.67",
"@vuepress/utils": "2.0.0-beta.67",
"vue": "^3.3.4",
"vuepress": "2.0.0-beta.67",
"vuepress-theme-hope": "2.0.0-beta.237"
"@algolia/client-search": "^4.20.0",
"@vue/repl": "^2.7.0",
"@vuepress/client": "2.0.0-beta.68",
"@vuepress/plugin-docsearch": "2.0.0-beta.68",
"@vuepress/utils": "2.0.0-beta.68",
"echarts": "^5.4.3",
"flowchart.ts": "^1.0.1",
"github-slugger": "^2.0.0",
"katex": "^0.16.9",
"mermaid": "^10.6.1",
"reveal.js": "^5.0.2",
"vue": "^3.3.8",
"vuepress": "2.0.0-beta.68",
"vuepress-theme-hope": "2.0.0-beta.251"
}
}
Loading

0 comments on commit 585c948

Please sign in to comment.