Skip to content

Commit 2d4e926

Browse files
committed
merge with main
2 parents 6e3a283 + af1b6f0 commit 2d4e926

File tree

95 files changed

+10649
-6068
lines changed

Some content is hidden

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

95 files changed

+10649
-6068
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,42 @@
1-
name: Deploy Vuepress
1+
name: Deploy VitePress
2+
23
on:
34
push:
4-
branches:
5-
- main
5+
branches: [main]
66
pull_request:
77
branches: [main]
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12+
1213
steps:
1314
- name: Checkout
1415
uses: actions/checkout@v6
1516
with:
1617
fetch-depth: 0
17-
- uses: actions/setup-node@v6
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v6
1821
with:
19-
node-version: "18"
20-
- name: Install yarn and pnpm
21-
run: |
22-
npm install [email protected] -g
23-
npm install -g pnpm
24-
- name: Get yarn cache directory path
25-
id: yarn-cache-dir-path
26-
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
27-
- uses: actions/cache@v5
28-
id: yarn-cache
22+
node-version: 22
23+
24+
- name: Install pnpm
25+
uses: pnpm/action-setup@v4
2926
with:
30-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
31-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
32-
restore-keys: |
33-
${{ runner.os }}-yarn-
34-
- name: Install
35-
run: pnpm install
36-
- name: Build for Main Repository
37-
env:
38-
NODE_OPTIONS: "--max_old_space_size=4096 --openssl-legacy-provider"
39-
run: |
40-
yarn docs:build
41-
- name: Deploy to main Repository
27+
version: latest
28+
29+
- name: Install dependencies
30+
run: pnpm install --frozen-lockfile
31+
32+
- name: Build documentation site
33+
run: pnpm run docs:build
34+
35+
- name: Deploy to GitHub Pages
4236
if: github.event_name != 'pull_request'
4337
uses: peaceiris/actions-gh-pages@v4
4438
with:
4539
personal_token: ${{ secrets.ACTION_PERSONAL_TOKEN }}
46-
publish_dir: docs/.vuepress/dist
40+
publish_dir: .vitepress/dist
4741
external_repository: XTLS/XTLS.github.io
4842
publish_branch: gh-pages-next

.gitignore

Lines changed: 5 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -1,118 +1,7 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
lerna-debug.log*
8-
9-
# Diagnostic reports (https://nodejs.org/api/report.html)
10-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11-
12-
# Runtime data
13-
pids
14-
*.pid
15-
*.seed
16-
*.pid.lock
17-
18-
# Directory for instrumented libs generated by jscoverage/JSCover
19-
lib-cov
20-
21-
# Coverage directory used by tools like istanbul
22-
coverage
23-
*.lcov
24-
25-
# nyc test coverage
26-
.nyc_output
27-
28-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29-
.grunt
30-
31-
# Bower dependency directory (https://bower.io/)
32-
bower_components
33-
34-
# node-waf configuration
35-
.lock-wscript
36-
37-
# Compiled binary addons (https://nodejs.org/api/addons.html)
38-
build/Release
39-
40-
# Dependency directories
1+
# Node.JS
412
node_modules/
42-
jspm_packages/
43-
44-
# Snowpack dependency directory (https://snowpack.dev/)
45-
web_modules/
46-
47-
# TypeScript cache
48-
*.tsbuildinfo
49-
50-
# Optional npm cache directory
51-
.npm
52-
53-
# Optional eslint cache
54-
.eslintcache
55-
56-
# Microbundle cache
57-
.rpt2_cache/
58-
.rts2_cache_cjs/
59-
.rts2_cache_es/
60-
.rts2_cache_umd/
61-
62-
# Optional REPL history
63-
.node_repl_history
64-
65-
# Output of 'npm pack'
66-
*.tgz
67-
68-
# Yarn Integrity file
69-
.yarn-integrity
70-
71-
# dotenv environment variables file
72-
.env
73-
.env.test
74-
75-
# parcel-bundler cache (https://parceljs.org/)
76-
.cache
77-
.parcel-cache
78-
79-
# Next.js build output
80-
.next
81-
out
82-
83-
# Nuxt.js build / generate output
84-
.nuxt
85-
dist
86-
87-
# Gatsby files
88-
.cache/
89-
# Comment in the public line in if your project uses Gatsby and not Next.js
90-
# https://nextjs.org/blog/next-9-1#public-directory-support
91-
# public
92-
93-
# vuepress build output
94-
.vuepress/dist
95-
96-
# Serverless directories
97-
.serverless/
98-
99-
# FuseBox cache
100-
.fusebox/
101-
102-
# DynamoDB Local files
103-
.dynamodb/
104-
105-
# TernJS port file
106-
.tern-port
107-
108-
# Stores VSCode versions used for testing VSCode extensions
109-
.vscode-test
1103

111-
# yarn v2
112-
.yarn/cache
113-
.yarn/unplugged
114-
.yarn/build-state.yml
115-
.yarn/install-state.gz
116-
.pnp.*
117-
/docs/.vuepress/.temp/
118-
.idea
4+
# VitePress
5+
.vitepress/dist/
6+
.vitepress/cache/
7+
.vitepress/.generated/

0 commit comments

Comments
 (0)