diff --git a/docs/build.sh b/docs/build.sh new file mode 100644 index 0000000..0f259e1 --- /dev/null +++ b/docs/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +dot -Tpng "структура.dot" -o "структура.png" +pandoc -f markdown_strict --verbose "README.md" > "README.doc" diff --git a/docs/струкура-по.dot b/docs/струкура-по.dot new file mode 100644 index 0000000..5b3b668 --- /dev/null +++ b/docs/струкура-по.dot @@ -0,0 +1,38 @@ +digraph "Прибор УФ" +{ + graph [nodesep=0.5, overlap = false]; + node [shape=box, overlap = false]; + eth0 [label="eth0", shape=cds]; + eth1 [label="eth1", shape=cds]; + eth2 [label="eth2", shape=cds]; + tty0 [label="tty0", shape=cds]; + tty1 [label="tty1", shape=cds]; + tty2 [label="tty2", shape=cds]; + proto_capsrpb [label="Протокол КАПС-РПБ"]; + proto_5p28 [label="Протокол 5П-28"]; + uarep_uart [label="UART ModBus"]; + uarep_ctl [label="ПО УАРЭП"]; + caps_rpb [label="СПО \"КАПС РПБ\""]; + p16 [label="П16", shape=plaintext, style=filled]; + spt25left [label="СПТ25 левый борт", shape=plaintext, style=filled]; + spt25right [label="СПТ25 правый борт", shape=plaintext, style=filled]; + + eth0 -> proto_5p28; + eth1 -> proto_5p28; + eth0 -> proto_capsrpb; + eth1 -> proto_capsrpb; + eth0 -> uarep_uart; + eth1 -> uarep_uart; + eth2 -> caps_rpb; + proto_5p28 -> uarep_ctl; + uarep_uart -> uarep_ctl; + uarep_uart -> tty0; + uarep_uart -> tty1; + uarep_uart -> tty2; + uarep_ctl -> caps_rpb; + proto_capsrpb -> caps_rpb; + p16 -> eth0 [style=invis] + p16 -> eth1 [style=invis] + spt25left -> tty0 [style=invis] + spt25right -> tty1 [style=invis] +}