Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

PlantUML diagrams in AsciiDoc files are automatically generated using AsciiDoc Diagram, added as an attachment to the corresponding Confluence page and inserted into the page using the Confluence image tag.

Anchor
_embedded_plantuml_source
_embedded_plantuml_source
Embedded PlantUML Source

PlantUML sources can be embedded directly into an AsciiDoc file and are replaced by the generated image when the AsciiDoc file is published to Confluence.

No Format
[plantuml, diagram-name, png]
....
class Alpha
class Beta
class Gamma

Alpha <|-- Beta
Alpha <|-- Gamma
....
Image Removed Image Added

Anchor
_included_plantuml_source
_included_plantuml_source
Included PlantUML Source

PlantUML sources can also be externalized to a separate file and included into the AsciiDoc file. Included PlantUML files are resolved relative to the location of the referencing AsciiDoc file.

No Format
plantuml::../files/included-diagram.puml[]
Image Removed Image Added

Anchor
_c4_plantuml
_c4_plantuml
C4-PlantUML

C4-PlantUML diagrams are supported as well.

No Format
[plantuml, c4-diagram, png]
....
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml

Person(personAlias, "Label", "Optional Description")
Container(containerAlias, "Label", "Technology", "Optional Description")
System(systemAlias, "Label", "Optional Description")

Rel(personAlias, containerAlias, "Label", "Optional Technology")
....
Image Removed Image Added