-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: Mermaid support | ||
tags: [New] | ||
image: /images/changelog/mermaid.png | ||
--- | ||
|
||
 | ||
|
||
Sometimes, the best way to explain something about your API is to do it visually. That's why we're announcing Mermaid support! | ||
|
||
Diagrams and charts are powerful tools, that can be used to share updates on your API development roadmap or give key information on data processing flow, for example. | ||
|
||
To generate one, add a code block declared as ```mermaid``` inside a ```description``` or ```content``` property: | ||
|
||
```yaml | ||
get: | ||
description: | | ||
```mermaid | ||
erDiagram | ||
CUSTOMER }|..|{ DELIVERY-ADDRESS : has | ||
CUSTOMER ||--o{ ORDER : places | ||
CUSTOMER ||--o{ INVOICE : "liable for" | ||
DELIVERY-ADDRESS ||--o{ ORDER : receives | ||
INVOICE ||--|{ ORDER : covers | ||
ORDER ||--|{ ORDER-ITEM : includes | ||
PRODUCT-CATEGORY ||--|{ PRODUCT : contains | ||
PRODUCT ||--o{ ORDER-ITEM : "ordered in" | ||
``` | ||
``` | ||
This example would render the following diagram [(see it live)](https://bump.sh/demo/doc/mermaid-demo/operation/operation-get-booking-parameter): | ||
 | ||
Discover the full list of diagrams and charts supported by Mermaid [here](https://mermaid.js.org/syntax/flowchart.html). | ||
[Learn more about our Mermaid integration in our help center →](https://docs.bump.sh/help/publish-documentation/feedback/) | ||
As always, don't hesitate to reach out if you have feedback about this feature! | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.