Skip to content

Commit f4364af

Browse files
committed
Release V2
1 parent 25fe172 commit f4364af

File tree

661 files changed

+424
-401
lines changed

Some content is hidden

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

661 files changed

+424
-401
lines changed

.github/workflows/deploy.yml

Lines changed: 58 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,68 @@
11
name: Deploy Rspress site to Pages
22

33
on:
4-
push:
5-
branches: [main]
4+
push:
5+
branches: [main]
66

7-
workflow_dispatch:
7+
workflow_dispatch:
88

99
permissions:
10-
contents: read
11-
pages: write
12-
id-token: write
10+
contents: read
11+
pages: write
12+
id-token: write
1313

1414
concurrency:
15-
group: pages
16-
cancel-in-progress: false
15+
group: pages
16+
cancel-in-progress: false
1717

1818
jobs:
19-
# Build job
20-
build:
21-
runs-on: ubuntu-latest
22-
steps:
23-
- name: Checkout
24-
uses: actions/checkout@v4
25-
with:
26-
fetch-depth: 0 # Not needed if lastUpdated is not enabled
27-
- name: Setup Bun
28-
uses: oven-sh/setup-bun@v1
29-
- name: Install dependencies
30-
run: bun install
31-
- name: Build with Rspress
32-
run: |
33-
bun run build
34-
- name: Upload artifact
35-
uses: actions/upload-pages-artifact@v3
36-
with:
37-
path: doc_build
38-
39-
# Deployment job
40-
deploy:
41-
environment:
42-
name: github-pages
43-
url: ${{ steps.deployment.outputs.page_url }}
44-
needs: build
45-
runs-on: ubuntu-latest
46-
name: Deploy
47-
steps:
48-
- name: Deploy to GitHub Pages
49-
id: deployment
50-
uses: actions/deploy-pages@v4
19+
# Build job
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0 # Not needed if lastUpdated is not enabled
27+
- name: Setup Bun
28+
uses: oven-sh/setup-bun@v1
29+
- name: Install dependencies
30+
run: bun install
31+
- name: Build with Rspress
32+
run: |
33+
bun run build
34+
- name: Upload artifact
35+
uses: actions/upload-pages-artifact@v3
36+
with:
37+
path: doc_build
38+
39+
# Deployment job
40+
deploy:
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
needs: build
45+
runs-on: ubuntu-latest
46+
name: Deploy
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4
51+
52+
# ------------------- Sync to Gitee -------------------
53+
54+
# - name: Sync to Gitee
55+
# uses: wearerequired/git-mirror-action@master
56+
# env:
57+
# SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
58+
# with:
59+
# source-repo: git@github.com:${{ github.repository }}.git
60+
# destination-repo: git@gitee.com:Moonofweisheng/uni-mini-router.git
61+
62+
# - name: Build & Deploy to Gitee Pages
63+
# uses: yanglbme/gitee-pages-action@main
64+
# with:
65+
# gitee-username: Moonofweisheng
66+
# gitee-password: ${{ secrets.GITEE_PASSWORD }}
67+
# gitee-repo: Moonofweisheng/uni-mini-router
68+
# branch: gh-pages

docs/en/_meta.json

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
[
2-
{
3-
"text": "start",
4-
"link": "/guide/start",
5-
"activeMatch": "/guide/start"
6-
},
7-
{
8-
"text": "docs",
9-
"link": "/guide/docs/Quick Start",
10-
"activeMatch": "/guide/docs"
11-
},
12-
{
13-
"text": "changelog",
14-
"link": "/guide/changelog/latest",
15-
"activeMatch": "/guide/changelog"
16-
},
17-
{
18-
"text": "privacy",
19-
"link": "/guide/privacy/policy",
20-
"activeMatch": "/guide/privacy"
21-
}
2+
{
3+
"text": "docs",
4+
"link": "/guide/doc_v2/Quick Start",
5+
"activeMatch": "/guide/doc_v2"
6+
},
7+
{
8+
"text": "changelog",
9+
"link": "/guide/changelog/latest",
10+
"activeMatch": "/guide/changelog"
11+
},
12+
{
13+
"text": "privacy",
14+
"link": "/guide/privacy/policy",
15+
"activeMatch": "/guide/privacy"
16+
}
2217
]

docs/en/guide/_meta.json

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
[
2-
{
3-
"type": "file",
4-
"name": "start",
5-
"label": "start"
6-
},
7-
{
8-
"type": "dir",
9-
"name": "docs",
10-
"label": "docs",
11-
"collapsible": true,
12-
"collapsed": true
13-
},
14-
{
15-
"type": "file",
16-
"name": "changelog/latest",
17-
"label": "changelog"
18-
},
19-
{
20-
"type": "dir",
21-
"name": "privacy",
22-
"label": "privacy",
23-
"collapsible": true,
24-
"collapsed": true
25-
}
2+
{
3+
"type": "dir",
4+
"name": "doc_v2",
5+
"label": "docs",
6+
"collapsible": true,
7+
"collapsed": true
8+
},
9+
{
10+
"type": "file",
11+
"name": "changelog/latest",
12+
"label": "changelog"
13+
},
14+
{
15+
"type": "dir",
16+
"name": "privacy",
17+
"label": "privacy",
18+
"collapsible": true,
19+
"collapsed": true
20+
}
2621
]

docs/en/guide/docs/Device Capabilities/Audio Player.md renamed to docs/en/guide/doc_v2/Device Capabilities/Audio Player.md

docs/en/guide/docs/Device Capabilities/AudioRecorder.md renamed to docs/en/guide/doc_v2/Device Capabilities/AudioRecorder.md

docs/en/guide/docs/Device Capabilities/CalendarEvent.md renamed to docs/en/guide/doc_v2/Device Capabilities/CalendarEvent.md

0 commit comments

Comments
 (0)