feat: add doxygen

This commit is contained in:
2025-08-23 13:04:12 +02:00
parent c2885322fa
commit 814d00460d
2 changed files with 47 additions and 0 deletions

42
.github/workflows/doxygen.yaml vendored Normal file
View File

@@ -0,0 +1,42 @@
name: Build and Deploy Doxygen
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y doxygen graphviz
- name: Generate docs
run: doxygen Doxyfile
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/html
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

5
Doxyfile Normal file
View File

@@ -0,0 +1,5 @@
OUTPUT_DIRECTORY = docs
GENERATE_HTML = YES
GENERATE_LATEX = NO
INPUT *.c *.h
USE_MDFILE_AS_MAINPAGE = README.md