D2 for Confluence

What’s D2 ?

 

D2 is a modern diagram scripting language that turns text into diagrams. It is a domain-specific diagram scripting language that transforms text into diagrams2. D2 takes the declarative diagramming approach and generates images based on the declared code syntax (text)2. Rather than being geared towards designers, D2 is marketed towards engineers

About D2 for Confluence

D2 for Confluence is an App in Confluence that can parse D2 script and generate the diagrams in svg.

Highlight Features

  • Common diagrams are all supported

    • Shapes

    • Connections

    • Containers

    • Sequence

    • Diagram tite

    • Latex

    • Code blocks

    • Icons and Images

    • SQL Tables

    • UML Class

    • Layout

    • Tooltips

  • Kinds of themes

  • Sketch style option

 

How to use it ?

Just type /d2 to call the d2 macro when you edit Confluence Page. It’s required to input your d2 script

 

 

 

Then Click the edit icon to open the macro editor

Input your D2 script, the diagram will be shown

 

Various kinds of theme could be selected for your diagrams.

Supported Themes

  • default

  • neutral-grey

  • flagship-terrastruct

  • cool-classics

  • mixed-berry-blue

  • grape-soda

  • aubergine

  • colorblind-clear

  • vanilla-nitro-cola

  • orange-creamsicle

  • shirley-temple

  • earth-tones

  • everglade-green

  • buttered-toast

  • dark-mauve

  • terminal

  • terminal-grayscale

 

And the Sketch mode will render diagrams to give the aesthetic of a hand-drawn sketch. Check it if you like hand-drawn style!

 

It’s not necessary to click any 'save' button to save your input, Forge will save all the macro config automatically.

 

Examples of D2 Script

Please refer to D2 Playground

 

Support

 

Privacy Poplicy & ELA

 

Privacy Policy

https://xdevpod.atlassian.net/wiki/spaces/APPDOC/pages/68485221

 

End User License Agreement

https://xdevpod.atlassian.net/wiki/spaces/APPDOC/pages/69337101