Skip to content

Commit

Permalink
[DOCs] Updated
Browse files Browse the repository at this point in the history
- New preflight
- Better explanation for local filters
  • Loading branch information
set-soft committed Nov 20, 2024
1 parent 90806a7 commit b677738
Show file tree
Hide file tree
Showing 43 changed files with 496 additions and 243 deletions.
369 changes: 249 additions & 120 deletions docs/samples/generic_plot.kibot.yaml

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions docs/source/configuration/outputs/BoardViewOptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,20 @@ BoardViewOptions parameters
- **output** :index:`: <pair: output - boardview - options; output>` [:ref:`string <string>`] (default: ``'%f-%i%I%v.%x'``) Filename for the output (%i=boardview, %x=brd/brv). Affected by global options.
- ``dnf_filter`` :index:`: <pair: output - boardview - options; dnf_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to mark components as not fitted.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``exclude_filter`` :index:`: <pair: output - boardview - options; exclude_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to exclude components from processing.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``format`` :index:`: <pair: output - boardview - options; format>` [:ref:`string <string>`] (default: ``'BRD'``) (choices: "BRD", "BVR") Format used for the generated file. The BVR file format is bigger but keeps
more information, like alphanumeric pin names.
- ``pre_transform`` :index:`: <pair: output - boardview - options; pre_transform>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to transform fields before applying other filters.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``sorted`` :index:`: <pair: output - boardview - options; sorted>` [:ref:`boolean <boolean>`] (default: ``true``) Sort components by reference. Disable this option to get a file closer to what
kicad-boardview generates.
Expand Down
9 changes: 6 additions & 3 deletions docs/source/configuration/outputs/Copy_FilesOptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ Copy_FilesOptions parameters
- **no_virtual** :index:`: <pair: output - copy_files - options; no_virtual>` [:ref:`boolean <boolean>`] (default: ``false``) Used to exclude 3D models for components with 'virtual' attribute.
- ``dnf_filter`` :index:`: <pair: output - copy_files - options; dnf_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to mark components as not fitted.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``download_lcsc`` :index:`: <pair: output - copy_files - options; download_lcsc>` [:ref:`boolean <boolean>`] (default: ``true``) In addition to try to download the 3D models from KiCad git also try to get
them from LCSC database. In order to work you'll need to provide the LCSC
part number. The field containing the LCSC part number is defined by the
`field_lcsc_part` global variable.
- ``exclude_filter`` :index:`: <pair: output - copy_files - options; exclude_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to exclude components from processing.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``follow_links`` :index:`: <pair: output - copy_files - options; follow_links>` [:ref:`boolean <boolean>`] (default: ``true``) Store the file pointed by symlinks, not the symlink.
- ``kicad_3d_url`` :index:`: <pair: output - copy_files - options; kicad_3d_url>` [:ref:`string <string>`] (default: ``'https://gitlab.com/kicad/libraries/kicad-packages3D/-/raw/master/'``) Base URL for the KiCad 3D models.
Expand All @@ -30,7 +32,8 @@ Copy_FilesOptions parameters
- ``link_no_copy`` :index:`: <pair: output - copy_files - options; link_no_copy>` [:ref:`boolean <boolean>`] (default: ``false``) Create symlinks instead of copying files.
- ``pre_transform`` :index:`: <pair: output - copy_files - options; pre_transform>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to transform fields before applying other filters.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``variant`` :index:`: <pair: output - copy_files - options; variant>` [:ref:`string <string>`] (default: ``''``) Board variant to apply.

Expand Down
9 changes: 6 additions & 3 deletions docs/source/configuration/outputs/DXFOptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ DXFOptions parameters
- ``custom_reports`` :index:`: <pair: output - dxf - options; custom_reports>` [:ref:`CustomReport parameters <CustomReport>`] [:ref:`list(dict) <list(dict)>`] (default: ``[]``) A list of customized reports for the manufacturer.
- ``dnf_filter`` :index:`: <pair: output - dxf - options; dnf_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to mark components as not fitted.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``drill_marks`` :index:`: <pair: output - dxf - options; drill_marks>` [:ref:`string <string>`] (default: ``'full'``) (choices: "none", "small", "full") What to use to indicate the drill places, can be none, small or full (for real scale).
- ``edge_cut_extension`` :index:`: <pair: output - dxf - options; edge_cut_extension>` [:ref:`string <string>`] (default: ``''``) Used to configure the edge cuts layer extension for Protel mode. Include the dot.
- ``exclude_edge_layer`` :index:`: <pair: output - dxf - options; exclude_edge_layer>` [:ref:`boolean <boolean>`] (default: ``true``) Do not include the PCB edge layer.
- ``exclude_filter`` :index:`: <pair: output - dxf - options; exclude_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to exclude components from processing.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``exclude_pads_from_silkscreen`` :index:`: <pair: output - dxf - options; exclude_pads_from_silkscreen>` [:ref:`boolean <boolean>`] (default: ``false``) Do not plot the component pads in the silk screen (KiCad 5.x only).
- ``force_plot_invisible_refs_vals`` :index:`: <pair: output - dxf - options; force_plot_invisible_refs_vals>` [:ref:`boolean <boolean>`] (default: ``false``) Include references and values even when they are marked as invisible.
Expand All @@ -38,7 +40,8 @@ DXFOptions parameters
You must disable it to get the dimensions (See https://gitlab.com/kicad/code/kicad/-/issues/11901).
- ``pre_transform`` :index:`: <pair: output - dxf - options; pre_transform>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to transform fields before applying other filters.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``sketch_pad_line_width`` :index:`: <pair: output - dxf - options; sketch_pad_line_width>` [:ref:`number <number>`] (default: ``0.1``) Line width for the sketched pads [mm], see `sketch_pads_on_fab_layers` (KiCad 6+)
Note that this value is currently ignored by KiCad (6.0.9).
Expand Down
9 changes: 6 additions & 3 deletions docs/source/configuration/outputs/DXF_SCH_PrintOptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,20 @@ DXF_SCH_PrintOptions parameters
- ``color_theme`` :index:`: <pair: output - dxf_sch_print - options; color_theme>` [:ref:`string <string>`] (default: ``''``) Color theme used, this must exist in the KiCad config (KiCad 6).
- ``dnf_filter`` :index:`: <pair: output - dxf_sch_print - options; dnf_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to mark components as not fitted.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``exclude_filter`` :index:`: <pair: output - dxf_sch_print - options; exclude_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to exclude components from processing.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``monochrome`` :index:`: <pair: output - dxf_sch_print - options; monochrome>` [:ref:`boolean <boolean>`] (default: ``false``) Generate a monochromatic output.
- ``output`` :index:`: <pair: output - dxf_sch_print - options; output>` [:ref:`string <string>`] (default: ``'%f-%i%I%v.%x'``) Filename for the output DXF (%i=schematic, %x=dxf). Affected by global options.
- ``pre_transform`` :index:`: <pair: output - dxf_sch_print - options; pre_transform>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to transform fields before applying other filters.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``sheet_reference_layout`` :index:`: <pair: output - dxf_sch_print - options; sheet_reference_layout>` [:ref:`string <string>`] (default: ``''``) Worksheet file (.kicad_wks) to use. Leave empty to use the one specified in the project.
This option works only when you print the toplevel sheet of a project and the project
Expand Down
9 changes: 6 additions & 3 deletions docs/source/configuration/outputs/DiffOptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ DiffOptions parameters
The '2color' mode is like 'red_green', but you can customize the colors.
- ``dnf_filter`` :index:`: <pair: output - diff - options; dnf_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to mark components as not fitted.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``exclude_filter`` :index:`: <pair: output - diff - options; exclude_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to exclude components from processing.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``force_checkout`` :index:`: <pair: output - diff - options; force_checkout>` [:ref:`boolean <boolean>`] (default: ``false``) When `old_type` and/or `new_type` are `git` KiBot will checkout the indicated point.
Before doing it KiBot will stash any change. Under some circumstances git could fail
Expand Down Expand Up @@ -69,7 +71,8 @@ DiffOptions parameters
- ``pcb`` :index:`: <pair: output - diff - options; pcb>` [:ref:`boolean <boolean>`] (default: ``true``) Compare the PCB, otherwise compare the schematic.
- ``pre_transform`` :index:`: <pair: output - diff - options; pre_transform>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to transform fields before applying other filters.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``threshold`` :index:`: <pair: output - diff - options; threshold>` [:ref:`number <number>`] (default: ``0``) (range: 0 to 1000000) Error threshold for the `stats` mode, 0 is no error. When specified a
difference bigger than the indicated value will make the diff fail. |br|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,21 @@ Download_Datasheets_Options parameters
- ``dnf`` :index:`: <pair: output - download_datasheets - options; dnf>` [:ref:`boolean <boolean>`] (default: ``false``) Include the DNF components.
- ``dnf_filter`` :index:`: <pair: output - download_datasheets - options; dnf_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to mark components as not fitted.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``exclude_filter`` :index:`: <pair: output - download_datasheets - options; exclude_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to exclude components from processing.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``link_repeated`` :index:`: <pair: output - download_datasheets - options; link_repeated>` [:ref:`boolean <boolean>`] (default: ``true``) Instead of download things we already downloaded use symlinks.
- ``output`` :index:`: <pair: output - download_datasheets - options; output>` [:ref:`string <string>`] (default: ``'${VALUE}.pdf'``) Name used for the downloaded datasheet.
`${FIELD}` will be replaced by the FIELD content.
- ``pre_transform`` :index:`: <pair: output - download_datasheets - options; pre_transform>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to transform fields before applying other filters.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``repeated`` :index:`: <pair: output - download_datasheets - options; repeated>` [:ref:`boolean <boolean>`] (default: ``false``) Download URLs that we already downloaded.
It only makes sense if the `output` field makes their output different.
Expand Down
9 changes: 6 additions & 3 deletions docs/source/configuration/outputs/ExcellonOptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ ExcellonOptions parameters
- **pth_and_npth_single_file** :index:`: <pair: output - excellon - options; pth_and_npth_single_file>` [:ref:`boolean <boolean>`] (default: ``true``) Generate one file for both, plated holes and non-plated holes, instead of two separated files.
- ``dnf_filter`` :index:`: <pair: output - excellon - options; dnf_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to mark components as not fitted.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``exclude_filter`` :index:`: <pair: output - excellon - options; exclude_filter>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to exclude components from processing.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``generate_drill_files`` :index:`: <pair: output - excellon - options; generate_drill_files>` [:ref:`boolean <boolean>`] (default: ``true``) Generate drill files. Set to False and choose map format if only map is to be generated.
- ``left_digits`` :index:`: <pair: output - excellon - options; left_digits>` [:ref:`number <number>`] (default: ``0``) number of digits for integer part of coordinates (0 is auto).
Expand All @@ -24,7 +26,8 @@ ExcellonOptions parameters
- ``npth_id`` :index:`: <pair: output - excellon - options; npth_id>` [:ref:`string <string>`] Force this replacement for %i when generating NPTH files.
- ``pre_transform`` :index:`: <pair: output - excellon - options; pre_transform>` [:ref:`string <string>` | :ref:`list(string) <list(string)>`] (default: ``'_null'``) Name of the filter to transform fields before applying other filters.
Is a short-cut to use for simple cases where a variant is an overkill. |br|
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the variant.
Can be used to fine-tune a variant for a particular output that needs extra filtering done before the
variant.

- ``pth_id`` :index:`: <pair: output - excellon - options; pth_id>` [:ref:`string <string>`] Force this replacement for %i when generating PTH and unified files.
- ``report`` :index:`: <pair: output - excellon - options; report>` [:ref:`DrillReport parameters <DrillReport>`] [:ref:`dict <dict>` | :ref:`string <string>`] (default: ``''``) Name of the drill report. Not generated unless a name is specified.
Expand Down
Loading

0 comments on commit b677738

Please sign in to comment.