ci: split docs generation and publishing across gitea/github

This commit is contained in:
beatz174-bit
2026-05-13 13:55:02 +10:00
parent 5e0de23ff7
commit 6aa78525c2
4 changed files with 103 additions and 20 deletions
+10 -20
View File
@@ -3,18 +3,8 @@ name: Validate committed public docs
on:
push:
branches: [main]
paths-ignore:
- "docs/generated/**"
- "docs/diagrams/**"
- "docs/public/**"
- "site/**"
pull_request:
branches: [main]
paths-ignore:
- "docs/generated/**"
- "docs/diagrams/**"
- "docs/public/**"
- "site/**"
workflow_dispatch:
permissions:
@@ -29,17 +19,17 @@ jobs:
run: |
test -d docs/public
test -n "$(find docs/public -mindepth 1 -print -quit)"
- name: Install Graphviz and MkDocs
- name: Install MkDocs
run: |
sudo apt-get update
sudo apt-get install -y graphviz
dot -V
python3 -m pip install --user mkdocs
- name: Validate public docs and diagrams
- name: Validate docs content
run: |
set -e
test -s docs/public/physical-topology.svg
test -s docs/public/docker-traefik-dynu.svg
! grep -R "Host inventory JSON not found" docs/public
! grep -R "Generate terraform inventory" docs/public
! rg -n -i "password|token|api[_-]?key|secret" docs/public
- name: Build MkDocs site
run: |
test -f docs/public/physical-topology.svg
test -f docs/public/docker-traefik-dynu.svg
! rg -n "Graphviz dot not found" docs/public/*.svg
! rg -n "lan\.ddnsgeek\.com" docs/public/*.svg docs/public/*.md
! rg -n -i "password|token|api_key|secret" docs/public/*.svg
python3 -m mkdocs build -f mkdocs-public.yml --strict