# WireViz Syntax ## Main sections ```yaml 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) ... 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) : ... ... connections: # list of all connections to be made # between cables and connectors - ... # connection set (see below) - ... ... additional_bom_items: # custom items to add to BOM - # BOM item (see below) ... tweak: # optional tweaking of .gv output ... ``` ## Metadata entries ```yaml # Meta-information describing the harness # Each key/value pair replaces all key references in # the HTML output template with the belonging value. # Typical keys are 'title', 'description', and 'notes', # but any key is accepted. Unused keys are ignored. : # Any valid YAML syntax is accepted # If no value is specified for 'title', then the # output filename without extension is used. ``` ## Options ```yaml # Common attributes for the whole harness. # All entries are optional and have default values. # Background color of diagram and HTML output bgcolor: # Default = 'WH' # Background color of other diagram elements bgcolor_node: # Default = 'WH' bgcolor_connector: # Default = bgcolor_node bgcolor_cable: # Default = bgcolor_node bgcolor_bundle: # Default = bgcolor_cable # How to display colors as text in the diagram # 'full' : Lowercase full color name # 'FULL' : Uppercase full color name # 'hex' : Lowercase hexadecimal values # 'HEX' : Uppercase hexadecimal values # 'short': Lowercase short color name # 'SHORT': Uppercase short color name # 'ger' : Lowercase short German color name # 'GER' : Uppercase short German color name color_mode: # Default = 'SHORT' # Fontname to use in diagram and HTML output fontname: # Default = 'arial' # If True, show only a BOM entry reference together with basic info # about additional components inside the diagram node (connector/cable box). # If False, show all info about additional components inside the diagram node. mini_bom_mode: # Default = True ``` ## Connector attributes ```yaml : # 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 mpn: # manufacturer part number manufacturer: # manufacturer name 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 # 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) style: