https://serverless-stack.com/ logo
#random
Title
# random
g

Gabriel Araújo

02/18/2022, 9:31 PM
Interesting: We can use https://mermaid-js.github.io/mermaid/#/ in github comments, PR, etc.. eg.:
Copy code
```mermaid
sequenceDiagram;
    participant Alice
    participant Bob
    Alice->>John: Hello John, how are you?
    loop Healthcheck
        John->>John: Fight against hypochondria
    end
    Note right of John: Rational thoughts <br/>prevail!
    John-->>Alice: Great!
    John->>Bob: How about you?
    Bob-->>John: Jolly good!
```
result:
a

Ashishkumar Pandey

02/18/2022, 9:33 PM
Interesting but I’m tired of DSLs, I’d use d3 and make this instead. 😂
g

Gabriel Araújo

02/18/2022, 9:34 PM
Can we use d3 in github PRs? I mean it easy to create documentation using it..
a

Ashishkumar Pandey

02/18/2022, 9:35 PM
I don’t think so, not directly, an action could do it though.
g

Gjorgji Kjosev

02/18/2022, 9:41 PM
mermaid is really nice, have had good experience with it. DSL is reasonably "in the spirit of markdown"
a

Ashishkumar Pandey

02/18/2022, 9:44 PM
I guess I’m so used to writing JS/TS that everything else feels just too much work. 😂
f

Frank

02/19/2022, 2:15 AM
I can really use this to render
sst diff
as service map in a PR 🤯
j

Jacoby

02/21/2022, 10:07 AM
Wow, this looks awesome. Great for inserting quick visualisations in readmes 💪