dms #1
@@ -1,4 +1,4 @@
|
|||||||
name: Build MkDocs
|
name: Build Notes Site
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -8,10 +8,28 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: squidfunk/mkdocs-material
|
image: squidfunk/mkdocs-material:latest # includes Python, pip, MkDocs Material
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
# 1️⃣ Checkout the repository
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build site
|
# 2️⃣ Optional: Install Node (only if you add JS plugins later)
|
||||||
run: mkdocs build --site-dir /public
|
# - 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