From a6504fd6c9c7b2ea2bb69a40038009ce3d4135dd Mon Sep 17 00:00:00 2001 From: Martin Rieder <74277074+martinrieder@users.noreply.github.com> Date: Tue, 2 Jul 2024 01:56:12 +0200 Subject: [PATCH] Correct indentation and <...> brackets --- docs/syntax.md | 344 ++++++++++++++++++++++++------------------------- 1 file changed, 171 insertions(+), 173 deletions(-) diff --git a/docs/syntax.md b/docs/syntax.md index d34813a..25e1fc8 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -31,150 +31,153 @@ Their respective attribute assignments need to be indented using space character Make sure they are aligned correctly in the document hierarchy, i.e. by two spaces for each level! ```yaml -connectors: # dictionary of all used connectors - : # unique connector designator/name - ... # connector attributes (see below) - : - ... - ... +connectors: # dictionary of all used connectors + : # unique connector designator/name + : <...> # connector attributes (see below) + : + : <...> + <...> -cables: # dictionary of all used cables and wires - : # unique cable designator/name - ... # cable attributes (see below) - : - ... - ... +cables: # dictionary of all used cables and wires + : # unique cable designator/name + : <...> # cable attributes (see below) + : + : <...> + <...> -connections: # list of all connections to be made - # between cables and connectors +connections: # list of all connection sets (see below) - - ... # connection set (see below) + - <...> # or + - <...> # or - - ... - ... + - <...> + <...> additional_bom_items: # custom items to add to BOM - - # BOM item (see below) - ... + - # BOM item (see below) + : <...> -metadata: # dictionary of meta-information describing the harness - : # any number of key value pairs (see below) - ... +metadata: # dictionary of meta-information describing the harness + : # any number of key value pairs (see below) + <...> -options: # dictionary of common attributes for the whole harness - : # optional harness attributes (see below) - ... +options: # dictionary of common attributes for the whole harness + : # optional harness attributes (see below) + <...> -tweak: # optional tweaking of .gv output - ... +tweak: # optional tweaking of .gv output + <...> ``` + ## Connector attributes ```yaml - : # unique connector designator/name - # general information about a connector (all optional) - type: - subtype: - color: # see below - image: # see below - notes: +connectors: + : # unique connector designator/name + # general information about a connector (all optional) + type: + subtype: + color: # see below + image: # see below + notes: - # product information (all optional) - ignore_in_bom: # if set to true the connector is not added to the BOM - pn: # [internal] part number - manufacturer: # manufacturer name - mpn: # manufacturer part number - supplier: # supplier name - spn: # supplier part number - additional_components: # additional components - - # additional component (see below) + # product information (all optional) + ignore_in_bom: # if set to true the connector is not added to the BOM + pn: # [internal] part number + manufacturer: # manufacturer name + mpn: # manufacturer part number + supplier: # supplier name + spn: # supplier part number + additional_components: # additional components + - # additional component (see below) - # pinout information - # at least one of the following must be specified - pincount: # if omitted, is set to length of specified list(s) - pins: # if omitted, is autofilled with [1, 2, ..., pincount] - pinlabels: # if omitted, is autofilled with blanks + # pinout information + # at least one of the following must be specified + pincount: # if omitted, is set to length of specified list(s) + pins: # if omitted, is autofilled with [1, 2, ..., pincount] + pinlabels: # if omitted, is autofilled with blanks - # pin color marks (optional) - pincolors: # list of colors to be assigned to the respective pins; - # if list length is lower than connector pinout, - # no color marks will be added to remaining pins + # pin color marks (optional) + pincolors: # list of colors to be assigned to the respective pins; + # if list length is lower than connector pinout, + # no color marks will be added to remaining pins - # rendering information (all optional) - bgcolor: # Background color of diagram connector box - bgcolor_title: # Background color of title in diagram connector box - style: