This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Build MkDocs
|
||||
name: Build Notes Site
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -8,10 +8,28 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: squidfunk/mkdocs-material
|
||||
|
||||
image: squidfunk/mkdocs-material:latest # includes Python, pip, MkDocs Material
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# 1️⃣ Checkout the repository
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build site
|
||||
run: mkdocs build --site-dir /public
|
||||
# 2️⃣ Optional: Install Node (only if you add JS plugins later)
|
||||
# - name: Install Node.js
|
||||
# run: |
|
||||
# curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
||||
# apt-get install -y nodejs
|
||||
|
||||
# 3️⃣ Install any Python dependencies (optional if you have extra plugins)
|
||||
- name: Install Python dependencies
|
||||
run: |
|
||||
pip install -r requirements.txt || echo "No requirements.txt found, skipping"
|
||||
|
||||
# 4️⃣ Build the MkDocs site
|
||||
- name: Build MkDocs site
|
||||
run: |
|
||||
mkdocs build --site-dir /public
|
||||
|
||||
# 5️⃣ List files to verify build
|
||||
- name: Verify output
|
||||
run: ls -l /public
|
||||
|
||||
Reference in New Issue
Block a user