Writing docs
Diagrams, embedded API operations, and sidebar options.
Docs are edited in the rich-text editor. Besides text, headings and lists, use the + menu to insert blocks.
Mermaid diagrams
Insert a Mermaid diagram block and write the chart in Mermaid syntax:
Embedded API operations
Insert an API operation block to show a single endpoint, with a working playground, inside a guide:
GET
Returns a single pet.
petId*integerID of the pet to return
Format
int64Successful operation
application/json- response
id?integerFormat
int64name*stringcategory?photoUrls*array<string>status?stringpet status in the store
Value in
"available""pending""sold"curl -X GET 'https://petstore3.swagger.io/api/v3/pet/0'{ "id": 10, "name": "doggie", "category": { "id": 1, "name": "Dogs" }, "photoUrls": [ "string" ], "status": "available"}Sidebar options
Each page can set a Lucide icon, a separator heading shown above it, and whether its child pages start expanded.
How is this guide?
Last updated on