Open PChild opened 9 months ago
Can we transfer draw.io diagrams to mermaid?
@aidnem we can use this ticket for any documentation beyond the shooter
@jkleiber Quick question about the preferred style for a logical or (||
) to be drawn in. There are two options (as far as I can see):
flowchart LR
subgraph parallel someState or1 or2 orResult someState --> or1 someState --> or2 or1{some_variable == SOME_VALUE} or1 -->|yes| orResult or1 -->|no| someState or2{something_else >= 2} or2 -->|yes| orResult or2 -->|no| someState orResult[Result of 'or' operation is true] end
subgraph sequential someState or1 or2 orResult someState --> or1 or1_{some_variable == SOMEVALUE} or1 -->|yes| orResult or1 -->|no| or2 or2{somethingelse >= 2} or2 -->|yes| orResult or2 -->|no| someState orResult[Result of 'or' operation is true] end
I'm going to leave this open for now so we can fix the small defects in the automatic text generated in files like https://github.com/team401/2024-Robot-Code/blob/main/doc/Scoring.md
Having control flow diagrams in the readme is really cool, could we use Mermaid to make them interactive / a little fancier instead of just screenshots?
Here are a couple of references:
And an example of a simple flow chart: