Skip to content

Commit 14505a1

Browse files
committed
feat: add github actions and fix broken links
1 parent d0a4a8c commit 14505a1

File tree

5 files changed

+2149
-2
lines changed

5 files changed

+2149
-2
lines changed

β€Ž.github/workflows/deploy.ymlβ€Ž

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Deploy VitePress site to Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
- name: Setup Node
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
cache: npm
31+
- name: Setup Pages
32+
uses: actions/configure-pages@v4
33+
- name: Install dependencies
34+
run: npm ci
35+
- name: Build with VitePress
36+
run: npm run docs:build
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: docs/.vitepress/dist
41+
42+
deploy:
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
needs: build
47+
runs-on: ubuntu-latest
48+
name: Deploy
49+
steps:
50+
- name: Deploy to GitHub Pages
51+
id: deployment
52+
uses: actions/deploy-pages@v4

β€Ž.gitignoreβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.vitepress/dist

β€Žapi/message-types.mdβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ A Crypto Transfer Message is a type of Rich Content Message designed for display
107107

108108
> For ADM transfers, see:
109109
>
110-
> - [Token Transfer Transactions](http://localhost:5173/api/transaction-types.md#type-0-token-transfer-transaction) – for ADM transfers without comments
111-
> - [Basic Encrypted Messages](http://localhost:5173/api/message-types.md#type-1-basic-encrypted-message) – for ADM transfers with a comment
110+
> - [Token Transfer Transactions](/api/transaction-types.md#type-0-token-transfer-transaction) – for ADM transfers without comments
111+
> - [Basic Encrypted Messages](/api/message-types.md#type-1-basic-encrypted-message) – for ADM transfers with a comment
112112
113113
- **Description**
114114

0 commit comments

Comments
Β (0)