This commit is contained in:
snothub
2026-04-04 17:46:08 +02:00
parent 97aeba8275
commit 43699b9bbd
3 changed files with 64 additions and 6 deletions

View File

@@ -5,6 +5,7 @@ on:
branches: [main] branches: [main]
paths: paths:
- 'docs/**' - 'docs/**'
- 'mkdocs.yml'
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@@ -17,19 +18,32 @@ concurrency:
cancel-in-progress: false cancel-in-progress: false
jobs: jobs:
deploy: build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: pip install mkdocs mkdocs-material
- run: mkdocs build
- uses: actions/configure-pages@v5 - uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3 - uses: actions/upload-pages-artifact@v3
with: with:
path: './docs' path: './site'
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- id: deployment - id: deployment
uses: actions/deploy-pages@v4 uses: actions/deploy-pages@v4

View File

@@ -2,5 +2,6 @@ standards_version: "2025.1"
last_configured: "2026-04-04" last_configured: "2026-04-04"
components: components:
github-pages: "2025.1" github-pages: "2025.1"
github-pages-generator: "static" github-pages-generator: "mkdocs"
github-pages-source: "docs/" github-pages-source: "docs/"
github-pages-theme: "material"

43
mkdocs.yml Normal file
View File

@@ -0,0 +1,43 @@
site_name: K8s Launchpad
site_description: Documentation for the GitOps-managed Kubernetes cluster
repo_url: https://github.com/fortedigital/sturdy-adventure
repo_name: fortedigital/sturdy-adventure
theme:
name: material
palette:
- scheme: default
primary: indigo
toggle:
icon: material/brightness-7
name: Switch to dark mode
- scheme: slate
primary: indigo
toggle:
icon: material/brightness-4
name: Switch to light mode
features:
- navigation.instant
- navigation.sections
- navigation.top
- search.highlight
- content.code.copy
nav:
- Home: README.md
- GitOps Architecture: GITOPS-ARCHITECTURE.md
- Developer Guide: DEVELOPER-GUIDE.md
- Operations Runbook: OPERATIONS-RUNBOOK.md
- Technical Reference: REFERENCE.md
markdown_extensions:
- tables
- toc:
permalink: true
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.superfences
- pymdownx.tabbed:
alternate_style: true
- admonition
- pymdownx.details