feat: Add browser documentation

This commit is contained in:
2026-04-29 17:15:01 +02:00
parent d261bac0ed
commit 3d81c34159
29 changed files with 19981 additions and 40 deletions

View File

@@ -52,7 +52,7 @@ jobs:
uses: https://github.com/actions/cache@v4
with:
path: /root/.npm
key: npm-linux-${{ hashFiles('package-lock.json', 'server/package-lock.json') }}
key: npm-linux-${{ hashFiles('package-lock.json', 'server/package-lock.json', 'docs-site/package-lock.json') }}
restore-keys: npm-linux-
- name: Restore Electron cache
@@ -71,6 +71,7 @@ jobs:
apt-get update && apt-get install -y --no-install-recommends zip
npm ci
cd server && npm ci
cd ../docs-site && npm ci
- name: Set CI release version
run: >
@@ -83,6 +84,7 @@ jobs:
cd toju-app
npx ng build --configuration production --base-href='./'
cd ..
npm run build:docs
npx --package typescript tsc -p tsconfig.electron.json
cd server
node ../tools/sync-server-build-version.js
@@ -124,7 +126,7 @@ jobs:
uses: https://github.com/actions/cache@v4
with:
path: ~/AppData/Local/npm-cache
key: npm-windows-${{ hashFiles('package-lock.json', 'server/package-lock.json') }}
key: npm-windows-${{ hashFiles('package-lock.json', 'server/package-lock.json', 'docs-site/package-lock.json') }}
restore-keys: npm-windows-
- name: Restore Electron cache
@@ -142,6 +144,7 @@ jobs:
run: |
npm ci
npm ci --prefix server
npm ci --prefix docs-site
- name: Set CI release version
run: >
@@ -154,6 +157,7 @@ jobs:
Push-Location "toju-app"
npx ng build --configuration production --base-href='./'
Pop-Location
npm run build:docs
npx --package typescript tsc -p tsconfig.electron.json
Push-Location server
node ../tools/sync-server-build-version.js
@@ -194,6 +198,7 @@ jobs:
Copy-Item -Path (Join-Path $projectRoot 'package.json') -Destination (Join-Path $electronBuilderWorkspace 'package.json') -Force
Copy-Item -Path (Join-Path $projectRoot 'package-lock.json') -Destination (Join-Path $electronBuilderWorkspace 'package-lock.json') -Force
Invoke-RoboCopy (Join-Path $projectRoot 'dist') (Join-Path $electronBuilderWorkspace 'dist')
Invoke-RoboCopy (Join-Path $projectRoot 'docs-site/build') (Join-Path $electronBuilderWorkspace 'docs-site/build')
Invoke-RoboCopy (Join-Path $projectRoot 'images') (Join-Path $electronBuilderWorkspace 'images')
Invoke-RoboCopy (Join-Path $projectRoot 'node_modules') (Join-Path $electronBuilderWorkspace 'node_modules')