• afruitpie@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      I’ve been using D2 for my diagrams for about a month now. The D2 syntax is the most natural to me, but finding online help for Mermaid and PlantUML is easier.

      • uthredii
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        Mermaid is inuded by default in some markdown flavours, you can use it on github, mkdocs websites and probably others.

      • 426UpgradeRequired@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        Looks like it. https://d2lang.com/tour/sequence-diagrams

        I’m impressed with the grid diagrams too. I’m not sure plantUML has anything equivalent.

        It doesnt support all the diagram types plantUML does (for now) but it has the only two i ever used anyway. The tooling seems more robust and modern. I think I have a better chance getting my coworkers to try this one

          • lowleveldata
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            1 year ago

            Does it? I looked through the document and didn’t find it. It seems to be more focus on state diagram / component diagram.

              • lowleveldata
                link
                fedilink
                English
                arrow-up
                2
                ·
                1 year ago

                There are a lot more specific shapes and layouts in a flowchart than simple boxes and arrows. E.g. start and end, branching, loop back, subprocess, etc

  • Lodra
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    For VS Code users, there’s also the terrastruct.d2 extension that provides language support for .d2 files. It even let’s you use the preview feature to watch live changes!

    If anyone is interested, it would be great to have a write up on d2 and the extension over at [email protected]

  • dabe
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    This looks crazy cool… one of those projects that I really wish I had a use for so I could try it lol

  • u_tamtam
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Doesn’t look too bad, I doubt it will dislodge graphviz/dot any time soon, though :)

  • DolceTriade
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Looks great. I’ve been using asciiflow and sequence diagram for my diagrams. I’ll give this a try

  • lasagna
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    That’s text in the sense that html is text.