# Not ready for KiCad 6 yet
kibot:
  version: 1
preflight:
  check_zone_fills: true
  run_drc: true
  run_erc: true

outputs:
  - name: 'gerbers'
    type: gerber
    dir: outputs/gerbers
    options:
      # generic layer options
      exclude_edge_layer: false
      exclude_pads_from_silkscreen: false
      plot_sheet_reference: false
      plot_footprint_refs: true
      plot_footprint_values: true
      force_plot_invisible_refs_vals: false
      tent_vias: true

      # gerber options
      use_aux_axis_as_origin: false
      subtract_mask_from_silk: true
      use_protel_extensions: false
      gerber_precision: 4.6
      create_gerber_job_file: false
      use_gerber_x2_attributes: true
      use_gerber_net_attributes: true

    layers:
      - 'F.Cu'
      - 'In1.Cu'
      - 'In2.Cu'
      - 'B.Cu'
  - name: 'drills'
    type: excellon
    dir: outputs/gerbers
  - name: 'gerberzip'
    type: compress
    dir: outputs
    options:
      files:
        - from_output: 'gerbers'
        - from_output: 'drills'
  - name: 'bom'
    dir: outputs
    type: bom
  - name: 'ibom'
    dir: outputs
    type: ibom
  - name: 'TopComponents'
    type: pcbdraw
    dir: outputs/images
    options:
      show_components: true
      format: png
  - name: 'TopBare'
    type: pcbdraw
    dir: outputs/images
    options:
      show_components: false
      format: png
  - name: 'BottomComponents'
    type: pcbdraw
    dir: outputs/images
    options:
      show_components: true
      format: png
      bottom: true
      mirror: true
  - name: 'BottomBare'
    type: pcbdraw
    dir: outputs/images
    options:
      show_components: false
      format: png
      bottom: true
      mirror: true
  # - name: '3d'
  #   type: render_3d
  #   dir: outputs/images
  #   options:
  #     ray_tracing: true
  - name: 'step'
    type: step
    dir: outputs
