Skip to content

Commit 1004a32

Browse files
authored
refactor: build site with vitepress (#177)
1 parent e9b6da5 commit 1004a32

File tree

103 files changed

+2872
-7774
lines changed

Some content is hidden

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

103 files changed

+2872
-7774
lines changed

.github/workflows/deploy.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build and deploy
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
cache: npm
22+
23+
- name: Setup Pages
24+
uses: actions/configure-pages@v4
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Build with VitePress
30+
run: npm run docs:build
31+
32+
- name: Deploy to GitHub Pages
33+
uses: crazy-max/ghaction-github-pages@v4
34+
with:
35+
target_branch: gh-pages
36+
build_dir: docs/.vitepress/dist
37+
fqdn: schunter.doocs.org
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
41+
build:
42+
runs-on: ubuntu-latest
43+
if: github.repository == 'doocs/source-code-hunter'
44+
needs: docs
45+
steps:
46+
- name: Sync to Gitee
47+
uses: wearerequired/git-mirror-action@master
48+
env:
49+
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
50+
with:
51+
source-repo: git@github.com:doocs/source-code-hunter.git
52+
destination-repo: git@gitee.com:Doocs/source-code-hunter.git

.github/workflows/sync.yml

-26
This file was deleted.

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,7 @@ local.properties
3333
gradle.properties
3434
*.gh
3535
.vscode
36-
/node_modules
36+
/node_modules
37+
38+
docs/.vitepress/dist
39+
docs/.vitepress/cache

CNAME

-1
This file was deleted.

README.md

-8
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@
118118
- [SpringBoot 日志系统](/docs/SpringBoot/SpringBoot-LogSystem.md)
119119
- [SpringBoot ConditionalOnBean](/docs/SpringBoot/SpringBoot-ConditionalOnBean.md)
120120

121-
### SpringBootBatch
122-
123-
- [SpringBootBatch 源码](/docs/SpringBootBatch/SpringBootBatch源码.md)
124-
125121
### Spring Cloud
126122

127123
- [Spring Cloud Commons 源码](docs/SpringCloud/spring-cloud-commons-source-note.md)
@@ -332,10 +328,6 @@
332328

333329
- [初级开发者应该从 Spring 源码中学什么](docs/LearningExperience/PersonalExperience/初级开发者应该从spring源码中学什么.md)
334330

335-
### 编码规范
336-
337-
- [一个程序员的自我修养](docs/LearningExperience/EncodingSpecification/一个程序员的自我修养.md)
338-
339331
### 设计模式
340332

341333
- [从 Spring 及 Mybatis 框架源码中学习设计模式(创建型)](<docs/LearningExperience/DesignPattern/从Spring及Mybatis框架源码中学习设计模式(创建型).md>)

0 commit comments

Comments
 (0)