Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
0f4a814
new docs site, migrated to pnpm and nx
AlemTuzlak Oct 7, 2025
959eb76
remove nx
AlemTuzlak Oct 7, 2025
b6ba178
fix action
AlemTuzlak Oct 7, 2025
68295fd
fix action
AlemTuzlak Oct 7, 2025
bd79571
test
AlemTuzlak Oct 7, 2025
72c734a
test
AlemTuzlak Oct 7, 2025
1719090
test
AlemTuzlak Oct 7, 2025
5ae98e2
add .npmrc
AlemTuzlak Oct 7, 2025
3585ce5
fix rc
AlemTuzlak Oct 7, 2025
c896715
fix deployment
AlemTuzlak Oct 7, 2025
5bff360
fix deployment?
AlemTuzlak Oct 7, 2025
3818da3
fix deployment?
AlemTuzlak Oct 7, 2025
0cacdc4
fix
AlemTuzlak Oct 7, 2025
f5ce4d1
update dockerfile
AlemTuzlak Oct 7, 2025
770059c
biome removed, updated pnpm version in dockerfile
Oct 8, 2025
68f4f4c
deployment fix?
Oct 8, 2025
e28a903
deployment fix?
Oct 8, 2025
09b7ba8
deployment fix?
Oct 8, 2025
872419f
deployment fix?
Oct 8, 2025
47e8a7b
deployment fix?
Oct 8, 2025
48c7d6f
deployment fix?
Oct 8, 2025
ca138d3
deployment fix?
Oct 8, 2025
ecf399c
deployment fix?
Oct 8, 2025
8383694
updates in yml, generate-docs, dockerfile
Oct 9, 2025
cef4ea9
updates in yml, generate-docs, dockerfile
Oct 9, 2025
bc80799
update package-json
Oct 9, 2025
4417aec
update package-json
Oct 9, 2025
4dd6148
UI tw fixes
Oct 9, 2025
b31f068
comments
Oct 9, 2025
b3a6614
small fix
Oct 9, 2025
3f6fc5d
small UI fix
Oct 9, 2025
3424bd9
UI fixes
Oct 9, 2025
a1735be
small comment in dockerfile
Oct 9, 2025
fbb4d7a
UI small fix
Oct 9, 2025
37dedc5
UI fixes
Oct 9, 2025
77649f1
small fix in docs
Oct 9, 2025
8a22ec1
docs update
AlemTuzlak Oct 16, 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
18 changes: 18 additions & 0 deletions .github/workflows/publish-documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ jobs:
working-directory: docs
run: pnpm run generate:docs

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

deploy:
name: 🚀 Deploy Release
needs: [build-docs]
Expand All @@ -40,6 +49,15 @@ jobs:
name: docs-release
steps:
- uses: actions/checkout@v4
- name: Download generated docs
uses: actions/download-artifact@v4
with:
name: docs-generated
path: docs

# check TODO remove this
- name: List generated payload
run: ls -laR docs/generated-docs | head -n 200
- uses: forge-42/fly-deploy@v1.0.0-rc.2
id: deploy
env:
Expand Down
48 changes: 45 additions & 3 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,58 @@ jobs:
- name: 🔎 Validate
run: pnpm run test


build-docs:
if: ${{ github.event_name == 'pull_request' }}
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"

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

- name: Generate docs
working-directory: docs
run: pnpm run generate:docs

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

deploy-docs-pr-preview:
if: ${{ github.event_name == 'pull_request' }}
name: "🚀 Deploy Docs"
needs: [lint, validate]
name: 🚀 Deploy Docs
needs: [lint, validate, build-docs]
runs-on: ubuntu-latest
environment:
name: docs-release
url: ${{ steps.deploy.outputs.app_url }}
steps:
- uses: actions/checkout@v4
- name: Download generated docs
uses: actions/download-artifact@v4
with:
name: docs-generated
path: docs

# check TODO remove this
- name: List generated payload
run: ls -laR docs/generated-docs | head -n 200
- uses: forge-42/fly-deploy@v1.0.0-rc.2
id: deploy
env:
Expand Down
34 changes: 12 additions & 22 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,51 +1,41 @@

# syntax = docker/dockerfile:1.4

# Base dependencies stage
ARG NODE_VERSION=22.17.0
FROM node:${NODE_VERSION}-slim AS base

LABEL fly_launch_runtime="Node.js"

# Node.js app lives here
WORKDIR /app
ENV NODE_ENV=production

# Set production environment
ENV NODE_ENV="production"

# Install pnpm
ARG PNPM_VERSION=10.18.0
RUN npm install -g pnpm@$PNPM_VERSION


# Throw-away build stage to reduce size of final image
# --- Build stage ---
FROM base AS build

# Install packages needed to build node modules
# System deps only if you have native modules; otherwise you can drop this
Comment thread
abrulic marked this conversation as resolved.
Outdated
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y build-essential node-gyp pkg-config python-is-python3 git
apt-get install --no-install-recommends -y build-essential node-gyp pkg-config python-is-python3 && \
rm -rf /var/lib/apt/lists/*

# Install node modules
# Install deps
COPY .npmrc package.json ./
RUN pnpm install --prod=false

# Copy application code
# Copy the application (including the previously downloaded artifact under docs/)
COPY . .

# Build application
RUN pnpm run generate:docs
# IMPORTANT: we no longer generate docs here; they were provided by CI
Comment thread
abrulic marked this conversation as resolved.
Outdated
# Build the app (should read from docs/generated-docs/* and versions.ts that CI uploaded)
RUN pnpm run build

# Remove development dependencies
# Prune dev deps
RUN pnpm prune --prod


# Final stage for app image
# --- Runtime stage ---
FROM base

# Copy built application
COPY --from=build /app /app

# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD [ "pnpm", "run", "start" ]
CMD ["pnpm","run","start"]
Loading