From b4788f8e47db1ee7f24108d46a016bbb98fe755a Mon Sep 17 00:00:00 2001 From: grabowski Date: Mon, 8 Sep 2025 17:26:16 +0700 Subject: [PATCH] enable kicanvas --- .gitea/workflows/kibot.yml | 7 ++++++ kibot.yaml | 51 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/.gitea/workflows/kibot.yml b/.gitea/workflows/kibot.yml index b1453d6..84ddadc 100644 --- a/.gitea/workflows/kibot.yml +++ b/.gitea/workflows/kibot.yml @@ -475,6 +475,13 @@ jobs: name: JLCPCB-${{ steps.layers.outputs.layers }}layer path: Generated/*_JLCPCB_compress.zip + - name: Retrieve results - Interactive Viewers + if: steps.config_check.outputs.found == 'true' + uses: actions/upload-artifact@v3 + with: + name: Interactive-Viewers + path: Generated/Interactive + - name: Retrieve results - Diff Report if: steps.generate_diff.outputs.has_diff == 'true' uses: actions/upload-artifact@v3 diff --git a/kibot.yaml b/kibot.yaml index 913229c..3997525 100644 --- a/kibot.yaml +++ b/kibot.yaml @@ -556,6 +556,57 @@ outputs: - source: 3D/* dest: /3D + # KiCanvas interactive viewer - Schematic + - name: 'kicanvas_schematic' + comment: "Interactive schematic viewer" + type: kicanvas + dir: Interactive + output: '%f-schematic-viewer.%x' + category: 'Schematic/docs' + run_by_default: true + priority: 45 + options: + source: 'schematic' + local_script: true # Download and use local copy of script + controls: 'full' # Full controls for navigation + download: true # Show download button + overlay: true # Show click overlay + title: '%f Schematic - Interactive Viewer' + + # KiCanvas interactive viewer - PCB + - name: 'kicanvas_pcb' + comment: "Interactive PCB viewer" + type: kicanvas + dir: Interactive + output: '%f-pcb-viewer.%x' + category: 'PCB/docs' + run_by_default: true + priority: 45 + options: + source: 'pcb' + local_script: true # Download and use local copy of script + controls: 'full' # Full controls for navigation + download: true # Show download button + overlay: true # Show click overlay + title: '%f PCB - Interactive Viewer' + + # KiCanvas interactive viewer - Full Project + - name: 'kicanvas_project' + comment: "Interactive project viewer (both schematic and PCB)" + type: kicanvas + dir: Interactive + output: '%f-project-viewer.%x' + category: ['Schematic/docs', 'PCB/docs'] + run_by_default: true + priority: 45 + options: + source: 'project' # Show both schematic and PCB + local_script: true # Download and use local copy of script + controls: 'full' # Full controls for navigation + download: true # Show download button + overlay: true # Show click overlay + title: '%f Project - Interactive Viewer' + # Variants for different layer counts (optional) variants: - name: 2layer