From d7c3e6b82685fd51eba8704ce4e36d0dd2d61ff8 Mon Sep 17 00:00:00 2001 From: Daniel Rojas Date: Mon, 20 Jul 2020 14:14:22 +0200 Subject: [PATCH] Add WireViz syntax documentation --- syntax.md | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 syntax.md diff --git a/syntax.md b/syntax.md new file mode 100644 index 00000000..4089b38b --- /dev/null +++ b/syntax.md @@ -0,0 +1,93 @@ +# WireViz Syntax + +## Main sections + +```yaml +connectors: # dictionary of all used connectors + X1: # unique connector designator/name + ... # connector attributes (see below) + X2: + ... + ... + +cables: # dictionary of all used cables and wires + W1: # unique cable designator/name + ... # cable attributes (see below) + W2: + ... + ... + +connections: # list of all connections to be made + # between cables and connectors + - + ... # connection set (see below) + - + ... +``` + +## Connector attributes + +```yaml +X1: + # general information about a connector (all optional) + type: + subtype: + color: + notes: + + # 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 + + # product information (all optional) + manufacturer: + manufacturer_part_number: + internel_part_number: + + # rendering information + style: