Add doc generation workflow
All checks were successful
docs-generation / docs-generation (pull_request) Successful in 20s

This commit is contained in:
Andreas Tsouchlos 2024-10-20 15:48:02 +02:00
parent 7961323b1b
commit 1ad511c7fb
2 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,22 @@
name: docs-generation
on:
pull_request:
# paths:
# - '**.sch'
# - '**.kicad_pcb'
jobs:
docs-generation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: INTI-CMNB/KiBot@v1.8.1
with:
config: config.kibot.yaml
schema: 'HyperLink.kicad_sch'
board: 'HyperLink.kicad_pcb'
- name: upload results
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'Update Docs'

50
config.kibot.yaml Normal file
View File

@ -0,0 +1,50 @@
kibot:
version: 1
outputs:
- name: 'schematic pdf'
comment: 'Schematic pdf generation'
type: 'pdf_sch_print'
dir: 'doc/generated'
- name: 'schematic svg'
comment: 'Schematic pdf generation'
type: 'svg_sch_print'
dir: 'doc/generated'
options:
background_color: true
- name: 'pcbdraw top svg'
comment: 'PCB top image generation'
type: 'pcbdraw'
dir: 'doc/generated'
options:
bottom: false
style: 'set-blue-cu'
show_components: 'none'
- name: 'pcbdraw top pdn'
comment: 'PCB top image generation'
type: 'pcbdraw'
dir: 'doc/generated'
options:
format: 'png'
dpi: 600
bottom: false
style: 'set-blue-cu'
show_components: 'none'
- name: 'pcbdraw bottom svg'
comment: 'PCB bottom image generation'
type: 'pcbdraw'
options:
bottom: true
style: 'set-blue-cu'
show_components: 'none'
dir: 'doc/generated'
- name: 'pcbdraw bottom png'
comment: 'PCB bottom image generation'
type: 'pcbdraw'
options:
format: 'png'
dpi: 600
bottom: true
style: 'set-blue-cu'
show_components: 'none'
dir: 'doc/generated'