Skip to content

Commit f44eeba

Browse files
authored
Merge pull request #25 from BetterDiscord/vitepress
Convert to VitePress
2 parents acafb2a + 7d8bc17 commit f44eeba

File tree

167 files changed

+8867
-14905
lines changed

Some content is hidden

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

167 files changed

+8867
-14905
lines changed

.eslintrc

Lines changed: 0 additions & 87 deletions
This file was deleted.
Lines changed: 66 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,66 @@
1-
name: Deploy to GitHub Pages
2-
3-
on:
4-
push:
5-
branches:
6-
- main
7-
8-
jobs:
9-
build:
10-
name: Deploy to GitHub Pages
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v3
15-
16-
- name: Use Node.js 16
17-
uses: actions/setup-node@v3
18-
with:
19-
node-version: 16
20-
cache: npm
21-
22-
- name: Install Dependencies
23-
run: npm ci
24-
25-
- name: Build Documentation
26-
run: npm run build
27-
28-
- name: Deploy to GitHub Pages
29-
uses: peaceiris/actions-gh-pages@v3
30-
with:
31-
github_token: ${{ secrets.GITHUB_TOKEN }}
32-
publish_dir: ./build
33-
cname: docs.betterdiscord.app
34-
commit_message: Deploying github pages @
35-
user_name: github-actions[bot]
36-
user_email: 41898282+github-actions[bot]@users.noreply.github.com
1+
name: Deploy to GitHub Pages
2+
3+
# Auto generate on a push to main, also allow manually triggering
4+
on:
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
17+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19+
concurrency:
20+
group: pages
21+
cancel-in-progress: false
22+
23+
24+
jobs:
25+
build:
26+
name: Build
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
with:
32+
fetch-depth: 0 # Not needed if lastUpdated is not enabled
33+
34+
- name: Use Node.js 20
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: 20
38+
cache: npm
39+
40+
- name: Setup Pages
41+
uses: actions/configure-pages@v4
42+
43+
- name: Install Dependencies
44+
run: npm ci
45+
46+
- name: Build Documentation
47+
run: npm run build
48+
49+
- name: Upload Artifact
50+
uses: actions/upload-pages-artifact@v3
51+
with:
52+
path: .vitepress/dist
53+
54+
55+
# Deployment job
56+
deploy:
57+
environment:
58+
name: github-pages
59+
url: ${{ steps.deployment.outputs.page_url }}
60+
needs: build
61+
runs-on: ubuntu-latest
62+
name: Deploy
63+
steps:
64+
- name: Deploy to GitHub Pages
65+
id: deployment
66+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
/node_modules
33

44
# Production
5-
/build
5+
.vitepress/dist
66

77
# Generated files
8-
.docusaurus
98
.cache-loader
9+
.vitepress/cache
1010

1111
# Misc
1212
.DS_Store

0 commit comments

Comments
 (0)