sphinx-contrib / kroki

Embed PlantUML, DOT, etc. diagrams in your documentation using Kroki.
MIT License
37 stars 13 forks source link

Add support for wireviz #21

Open viktorfreiman opened 8 months ago

viktorfreiman commented 8 months ago

The build fails for wireviz

/workspaces/project/docs/test.rst:4: ERROR: Error in "kroki" directive:
invalid option value: (option: "type"; value: 'wireviz')
'dict_keys' object is not subscriptable.

.. kroki::
    :type: wireviz

        connectors:
        X1:
            type: D-Sub
            subtype: female
            pinlabels: [DCD, RX, TX, DTR, GND, DSR, RTS, CTS, RI]
        X2:
            type: Molex KK 254
            subtype: female
            pinlabels: [GND, RX, TX]

        cables:
        W1:
            gauge: 0.25 mm2
            length: 0.2
            color_code: DIN
            wirecount: 3
            shield: true

        connections:
        -
            - X1: [5,2,3]
            - W1: [1,2,3]
            - X2: [1,3,2]
        -
            - X1: 5
            - W1: s