Skip to content

Commit 7e21cc5

Browse files
authored
Merge pull request #388 from wcandillon/feat/docs-site
feat(📖): add documentation site
2 parents dee97e9 + 28367f6 commit 7e21cc5

87 files changed

Lines changed: 10586 additions & 784 deletions

Some content is hidden

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

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ jobs:
4949
- name: Typecheck files
5050
run: yarn tsc
5151

52+
# Build the docs site the same way the Pages deploy does (GITHUB_PAGES set,
53+
# so the project base path is applied) to catch broken links / build
54+
# regressions before they reach main.
55+
- name: Build docs
56+
env:
57+
GITHUB_PAGES: "true"
58+
run: yarn build:docs
59+
5260
- name: Install CocoaPods
5361
working-directory: apps/example/ios
5462
run: pod install

.github/workflows/deploy-docs.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Deploy Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "apps/docs/**"
9+
- "packages/webgpu/src/**"
10+
- ".github/workflows/deploy-docs.yml"
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
concurrency:
19+
group: pages
20+
cancel-in-progress: true
21+
22+
jobs:
23+
deploy:
24+
runs-on: ubuntu-latest
25+
environment:
26+
name: github-pages
27+
url: ${{ steps.deployment.outputs.page_url }}
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
32+
- name: Setup Node.js
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version-file: .nvmrc
36+
cache: yarn
37+
38+
- name: Install dependencies
39+
run: yarn install --immutable
40+
41+
- name: Build docs
42+
env:
43+
GITHUB_PAGES: "true"
44+
run: yarn build:docs
45+
46+
- name: Upload artifact
47+
uses: actions/upload-pages-artifact@v3
48+
with:
49+
path: apps/docs/out
50+
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)