dms #1

Merged
jay merged 56 commits from dms into main 2026-03-24 20:14:09 +00:00
3 changed files with 19 additions and 17 deletions
Showing only changes of commit 4d56663b96 - Show all commits

View File

@@ -7,26 +7,18 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container:
# Bigger container: Ubuntu with Python preinstalled
image: ubuntu:22.04
steps:
# 1⃣ Checkout the repository
- name: Checkout repository
uses: actions/checkout@v4
# 2⃣ Install Python, pip, and MkDocs
- name: Setup Python and MkDocs
- name: Build docker image
run: |
apt-get update
apt-get install -y python3 python3-pip git curl
pip3 install --upgrade pip
pip3 install mkdocs mkdocs-material pymdown-extensions
docker build -t mkdocs-builder -f ci/mkdocs/Dockerfile ci/mkdocs
# 3Build MkDocs site to /public (mapped to Docker volume)
- name: Build MkDocs
run: mkdocs build --site-dir /public
# 4⃣ Verify output
- name: Verify output
run: ls -l /public
- name: Build MKDocs output into shared volume
run: |
docker run --rm \
-v "$PWD:/work" -w /work \
-v notes_public:/public \
mkdocs-builder \
mkdocs build --clean --site-dir /public

7
ci/mkdocs/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM python:3.13-slim
WORKDIR /work
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

View File

@@ -0,0 +1,3 @@
mkdocs==1.6.1
mkdocs-material==9.7.3
pymdown-extensions==10.21