freeCodeCamp / freeCodeCamp/devdocs

Please Support PlantUML and D2

Đang mở
#2,508 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
docs/new+request
Ngôn ngữ chính
Ruby
Star
39.5k
Fork
2.6k
Merge trung bình
4 ngày 32 phút
Pull request đã merge (30 ngày)
13

Mô tả

# Feature request

## Summary

PlantUML is an open source project for Diagram-as-code. It can generate popular UML diagrams by coding. D2 is a similar project.

https://plantuml.com/sequence-diagram
https://d2lang.com/tour/sequence-diagrams/

## Examples

**PlantUML Sequence Diagram**
```puml
@startuml
participant User

User -> A: DoWork
activate A

A -> B: << createRequest >>
activate B

B -> C: DoWork
activate C
C --> B: WorkDone
destroy C

B --> A: RequestCreated
deactivate B

A -> User: Done
deactivate A

@enduml
```

![Image](https://github.com/user-attachments/assets/0660c8b9-1a13-4b53-9eee-ec2e97b4b1ed)

**D2 Sequence Diagram**
```d2
shape: sequence_diagram
alice -> bob
bob."In the eyes of my dog, I'm a man."
# Notes can go into groups, too
important insight: {
bob."Cold hands, no gloves."
}
bob -> alice: Chocolate chip.
```

![Image](https://github.com/user-attachments/assets/c3a652f4-026f-4ff6-b53e-a30772037052)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.