Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
32 changes: 19 additions & 13 deletions .github/workflows/docs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'

- name: Install dependencies
- name: Build docusaurus container
run: |
cd docusaurus/
yarn install --frozen-lockfile

- name: Build and test Docusaurus
docker compose -f docker-compose.yml build dev
- name: Start docusaurus container
run: |
cd docusaurus/
yarn test

- name: Verify build output
docker compose -f docker-compose.yml up -d dev
- name: Wait for docusaurus to start
run: |
cd docusaurus/
test -d build && echo "✅ Build successful"
echo "Waiting for Docusaurus to start..."
sleep 60
- name: Check running containers
run: |
echo "Checking running containers..."
docker ps -a
- name: Check Docusaurus logs
run: |
echo "Checking Docusaurus logs..."
docker logs docusaurus_local
- name: Check Docusaurus health
run: |
echo "Checking Docusaurus health..."
curl -f http://localhost:3000 > /dev/null || exit 1

markdown-lint:
name: Markdown Format Check
Expand Down
15 changes: 15 additions & 0 deletions docusaurus/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,23 @@ FROM node:22-slim AS base
ENV FORCE_COLOR=0
RUN corepack enable
WORKDIR /opt/docusaurus

# Documentation contents
# The docs directory is overwritten by compose file
COPY docs docs
COPY src src
COPY static static
COPY versioned_docs versioned_docs
COPY versioned_sidebars versioned_sidebars

# Configuration files
COPY docusaurus.config.js .
COPY package.json .
COPY package-lock.json* .
COPY sidebars.js .
COPY sidebars.json .
COPY test.js .
COPY versions.json .

#==================================================================
# Local deployment
Expand Down
1 change: 0 additions & 1 deletion docusaurus/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ services:
ports:
- "3000:3000"
volumes:
- .:/opt/docusaurus
- ./../readmes:/opt/docusaurus/docs
environment:
- NODE_ENV=development
Expand Down
Loading