Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
cd8e56b
removed verify:docs, updated ui, updated loading content collections
Oct 17, 2025
4b9bc0b
small update in generate-docs
Oct 17, 2025
09e28a3
check
Oct 17, 2025
dca251c
check
Oct 17, 2025
652352d
check
Oct 17, 2025
57e93be
check
Oct 17, 2025
151a3b0
check
Oct 17, 2025
c784051
check
Oct 17, 2025
6ca8d02
check
Oct 17, 2025
8f5f5fd
check
Oct 17, 2025
65336ca
check
Oct 22, 2025
7e19936
check
Oct 22, 2025
454d02c
check
Oct 22, 2025
51edfdf
check
Oct 22, 2025
64f5e14
check
Oct 22, 2025
c0ac4cf
check
Oct 22, 2025
1d5e5ea
check
Oct 22, 2025
3f31af1
check
Oct 22, 2025
e102d8b
check?
Nov 13, 2025
b707849
small UI fixes in sidebar
Nov 13, 2025
91da5ed
updated content folder
Nov 13, 2025
61db4ad
updated yml files
Nov 13, 2025
01e1a20
small updates
Nov 13, 2025
9cd4f41
just checking will this generate-docs work
Nov 13, 2025
c9d18ee
test new generate-docs??
Nov 13, 2025
bf438db
check updated generate-docs
Nov 14, 2025
5b217bf
updated generate-docs
Nov 14, 2025
0320871
updated generate-docs
Nov 14, 2025
fcb4a1c
updated package.json - removed branch flag
Nov 14, 2025
343ff6c
generate docs updated
Nov 17, 2025
e19e0f7
updated workflows
Nov 17, 2025
6e808f9
generate-docs updated test
Nov 17, 2025
c4b5a59
small formatting
Nov 17, 2025
79b1776
formatting
Nov 17, 2025
fffb212
generate-docs updated
Nov 17, 2025
1b4b793
old generate-docs
Nov 17, 2025
4589ab1
updates
Nov 17, 2025
3ce5129
check
Nov 17, 2025
47acc02
generated docs updted
Nov 17, 2025
a9db59c
small updates
Nov 17, 2025
a43d656
removed comments form the ci.yml
Nov 17, 2025
ff0fa83
updated vite.config
Nov 17, 2025
29f8e31
removed comments from workflow
Nov 17, 2025
5bffbcd
updated readme.md
Nov 17, 2025
be20cc3
updated generate-docs
Nov 17, 2025
1bbfa91
small update in content
Nov 17, 2025
73cfd7f
updated documentation
Nov 17, 2025
9f5ab63
updated documentation
Nov 17, 2025
c4b88d5
updated documentation
Nov 17, 2025
2bc0f32
updated documentation
Nov 17, 2025
b54efd6
updated content
Nov 17, 2025
aed4b08
updated sidebar
Nov 17, 2025
35500f0
updated sidebar
Nov 17, 2025
520ad21
updated ci.yml
Nov 18, 2025
6f7d4db
small fix in ci.yml
Nov 18, 2025
6f215c9
small update
Nov 18, 2025
610f4db
small changes
Nov 18, 2025
9506e50
small update
Nov 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,3 @@ blob-report
# Content collections output files
.content-collections

# Output base directory of the documentation
generated-docs/
29 changes: 0 additions & 29 deletions .github/workflows/branch-preview.yml

This file was deleted.

141 changes: 90 additions & 51 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: 🚀 Validation & Deploy Pipeline
name: 🚀 Validation Pipeline
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
branches: [main]

permissions:
actions: write
contents: read
Expand All @@ -15,74 +16,112 @@ jobs:
name: ⬣ Biome lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: biomejs/setup-biome@v2
- run: biome ci . --reporter=github
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2
- name: Run Biome
run: biome ci .

typecheck:
needs: lint
name: 🔎 Type check
validate:
name: 🔎 Validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: "pnpm"
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install
- run: pnpm install --prefer-offline --frozen-lockfile
- run: pnpm run typecheck
- run: pnpm exec playwright install chromium --with-deps
- name: 🔎 Test
run: pnpm run test
- name: ✂️ Check unused code
run: pnpm run check:unused

check-unused:
needs: lint
name: ✂️ Check unused code
build-docs:
name: ⬆️ Build Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: "pnpm"
- run: pnpm install --prefer-offline --frozen-lockfile
- run: pnpm run check:unused
cache: pnpm

- name: Install deps
run: pnpm install --prefer-offline --frozen-lockfile

vitest:
needs: typecheck
name: ⚡ Unit Tests
- name: Generate docs
env:
APP_ENV: production
run: pnpm run generate:docs

- name: Pack generated docs (tarball)
run: |
tar -czf docs-generated.tgz generated-docs
ls -lh docs-generated.tgz

- name: Upload generated docs (tgz)
uses: actions/upload-artifact@v4
with:
name: docs-generated-tgz
path: docs-generated.tgz
if-no-files-found: error

- name: Upload versions file
uses: actions/upload-artifact@v4
with:
name: docs-versions
path: app/utils/versions.ts
if-no-files-found: error

deploy-docs-pr-preview:
name: 🚀 Deploy Docs
needs: [build-docs]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4

- name: Download generated docs (tgz)
uses: actions/download-artifact@v4
with:
node-version-file: "package.json"
cache: "pnpm"
- run: pnpm install --prefer-offline --frozen-lockfile
- run: pnpm exec playwright install chromium --with-deps
- run: pnpm run test:cov
- name: "Report Coverage"
# Only works if you set `reportOnFailure: true` in your vite config as specified above
if: always()
uses: davelosert/vitest-coverage-report-action@v2
name: docs-generated-tgz
path: .

- name: Unpack generated docs
run: |
tar -xzf docs-generated.tgz
ls -laR generated-docs | sed -n '1,200p'
- name: Download versions file
uses: actions/download-artifact@v4
with:
name: docs-versions
path: app/utils/

deploy:
needs: [lint, typecheck, check-unused, vitest]
name: 🚀 Deploy PR Preview
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: forge-42/fly-deploy@v1.0.0-rc.2
id: deploy
env:
FLY_ORG: ${{ vars.FLY_ORG }}
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
FLY_REGION: ${{ vars.FLY_REGION }}
with:
app_name: ${{github.event.repository.name}}-${{ github.event.number }}
env_vars: |
APP_ENV=staging
GITHUB_OWNER=${{github.repository_owner}}
GITHUB_REPO=${{github.event.repository.name}}
GITHUB_REPO_URL=https://github.com/${{ github.repository }}
- uses: forge-42/fly-deploy@v1.0.0-rc.2
id: deploy
env:
FLY_ORG: ${{ vars.FLY_ORG }}
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
FLY_REGION: ${{ vars.FLY_REGION }}
with:
app_name: ${{ github.event.repository.name }}-${{ github.event.number }}
use_isolated_workspace: true
env_vars: |
APP_ENV=production
GITHUB_OWNER=${{ github.repository_owner }}
GITHUB_REPO=${{ github.event.repository.name }}
GITHUB_REPO_URL=https://github.com/${{ github.repository }}
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,72 @@ concurrency:

jobs:
build-docs:
name: Build Docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: "pnpm"
cache: pnpm

- name: Install deps
run: pnpm install --prefer-offline --frozen-lockfile

- name: Generate docs
working-directory: docs
env:
APP_ENV: production
run: pnpm run generate:docs

- name: Pack generated docs (tarball)
run: |
tar -czf docs-generated.tgz generated-docs
ls -lh docs-generated.tgz
- name: Upload generated docs (tgz)
uses: actions/upload-artifact@v4
with:
name: docs-generated-tgz
path: docs-generated.tgz
if-no-files-found: error

- name: Upload versions file
uses: actions/upload-artifact@v4
with:
name: docs-versions
path: app/utils/versions.ts
if-no-files-found: error

deploy:
name: 🚀 Deploy Release
deploy-docs-on-release:
needs: [build-docs]
name: Deploy Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Download generated docs (tgz)
uses: actions/download-artifact@v4
with:
name: docs-generated-tgz
path: .

- name: Unpack generated docs into docs/
run: |
tar -xzf docs-generated.tgz
ls -laR generated-docs | sed -n '1,200p'
- name: Download versions file
uses: actions/download-artifact@v4
with:
name: docs-versions
path: docs/app/utils

- uses: forge-42/fly-deploy@v1.0.0-rc.2
id: deploy
env:
Expand All @@ -48,6 +85,7 @@ jobs:
FLY_REGION: ${{ vars.FLY_REGION }}
with:
app_name: ${{github.event.repository.name}}-${{ github.ref_name }}
use_isolated_workspace: true
env_vars: |
APP_ENV=production
GITHUB_OWNER=${{ github.repository_owner }}
Expand Down
Loading
Loading