Skip to content

Commit bfba234

Browse files
committed
Use vitepress rendering
1 parent 6a77cb9 commit bfba234

File tree

25 files changed

+4278
-260
lines changed

25 files changed

+4278
-260
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ updates:
99
directory: "/docs"
1010
schedule:
1111
interval: "weekly"
12+
- package-ecosystem: "npm"
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"

.github/workflows/publish-docs.yml

Lines changed: 57 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,67 @@
1-
name: Publish docs via GitHub Pages
1+
name: Deploy VitePress site to Pages
2+
23
on:
4+
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
5+
# using the `master` branch as the default branch.
36
push:
4-
branches:
5-
- main
7+
branches: [main]
8+
pull_request:
9+
types: [ assigned, opened, synchronize, reopened ]
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
614
permissions:
7-
contents: write
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
21+
concurrency:
22+
group: pages
23+
cancel-in-progress: false
824

925
jobs:
10-
deploy:
11-
name: Deploy docs
26+
# Build job
27+
build:
1228
runs-on: ubuntu-latest
1329
steps:
14-
- name: Checkout main
30+
- name: Checkout
1531
uses: actions/checkout@v4
16-
- name: Configure Git Credentials
17-
run: |
18-
git config user.name github-actions[bot]
19-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
20-
- uses: actions/setup-python@v5
2132
with:
22-
python-version: 3.x
23-
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
24-
- uses: actions/cache@v4
33+
fetch-depth: 0 # Not needed if lastUpdated is not enabled
34+
# - uses: pnpm/action-setup@v3 # Uncomment this block if you're using pnpm
35+
# with:
36+
# version: 9 # Not needed if you've set "packageManager" in package.json
37+
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
38+
- name: Setup Node
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version: 24
42+
cache: npm # or pnpm / yarn
43+
- name: Setup Pages
44+
uses: actions/configure-pages@v5
45+
- name: Install dependencies
46+
run: npm ci # or pnpm install / yarn install / bun install
47+
- name: Build with VitePress
48+
run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
49+
- name: Upload artifact
50+
uses: actions/upload-pages-artifact@v3
2551
with:
26-
key: mkdocs-material-${{ env.cache_id }}
27-
path: .cache
28-
restore-keys: |
29-
mkdocs-material-
30-
- run: pip install mkdocs-material mkdocs-multirepo-plugin
31-
- name: Deploy docs
32-
run: mkdocs gh-deploy --force
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
path: docs/.vitepress/dist
53+
if: github.event_name != 'pull_request' # Skip upload on PRs
54+
55+
# Deployment job
56+
deploy:
57+
if: github.event_name != 'pull_request' # Skip deployment on PRs
58+
environment:
59+
name: github-pages
60+
url: ${{ steps.deployment.outputs.page_url }}
61+
needs: build
62+
runs-on: ubuntu-latest
63+
name: Deploy
64+
steps:
65+
- name: Deploy to GitHub Pages
66+
id: deployment
67+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
.idea/
2-
.vscode/
2+
.vscode/
3+
node_modules/
4+
docs/.vitepress/cache/*
5+
docs/.vitepress/dist/*
6+
.vitepress/
7+
.cache

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
CONTAINER_TOOL ?= docker
66

77
# Docker image name for the mkdocs based local development setup
8-
IMAGE=ironcore-dev/multi-repo-docs
8+
IMAGE=ironcore-dev/docs
99

10-
.PHONY: start-docs
11-
start-docs: ## Start the local mkdocs based development environment.
12-
$(CONTAINER_TOOL) build -t ${IMAGE} -f docs/Dockerfile . --load
13-
$(CONTAINER_TOOL) run -p 8000:8000 -v `pwd`/:/docs ${IMAGE}
10+
.PHONY: startdocs
11+
startdocs: ## Start the local mkdocs based development environment.
12+
docker build -t $(IMAGE) -f docs/Dockerfile . --load
13+
docker run --rm -p 5173:5173 -v `pwd`/:/app $(IMAGE)
1414

15-
.PHONY: clean-docs
16-
clean-docs: ## Remove all local mkdocs Docker images (cleanup).
17-
$(CONTAINER_TOOL) container prune --force --filter "label=project=ironcore_project_multi_repo_docs"
15+
.PHONY: cleandocs
16+
cleandocs: ## Remove all local mkdocs Docker images (cleanup).
17+
docker container prune --force --filter "label=project=ironcore_docs"

REUSE.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ path = [
1212
"Makefile",
1313
"mkdocs.yml",
1414
"REUSE.toml",
15-
"hack/**"
15+
"hack/**",
16+
"package-lock.json",
17+
"package.json",
1618
]
1719
precedence = "aggregate"
1820
SPDX-FileCopyrightText = "2025 SAP SE or an SAP affiliate company and IronCore contributors"

docs/Dockerfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
FROM squidfunk/mkdocs-material:latest
1+
FROM node:24-alpine
22

3-
LABEL project=ironcore_project_multi_repo_docs
3+
LABEL project=ironcore_docs
44

5-
WORKDIR /docs
5+
# Install bash (optional but useful)
6+
RUN apk add --no-cache bash
67

7-
COPY docs/requirements.txt requirements.txt
8-
RUN pip install --no-cache-dir -r requirements.txt \
9-
&& apk add --no-cache bash
8+
# Set working directory
9+
WORKDIR /app
1010

11-
EXPOSE 8000
11+
# Expose dev port
12+
EXPOSE 5173
1213

13-
# Start development server by default
14-
ENTRYPOINT ["mkdocs"]
15-
CMD ["serve", "--dev-addr=0.0.0.0:8000"]
14+
# Default command to start VitePress dev
15+
ENTRYPOINT ["./hack/start-docs.sh"]
File renamed without changes.

docs/baremetal/kubernetes/capi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Cluster API (CAPI) for IronCore Bare Metal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Cloud Controller Manager (CCM) for IronCore Bare Metal
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Gardener Integration with IronCore Bare Metal

0 commit comments

Comments
 (0)