This page showcases the ability to embed diagrams and static images in documentation.
Diagrams can be embedded using the embed:
syntax:
![System Landscape Diagram](embed:SystemLandscape)
See also: https://www.structurizr.com/help/documentation/diagrams
Static assets can be included in the generated site, using the --assets-dir
command-line flag. This flag can be used with the serve
command and the generate-site
command.
When, for example, you would like to embed a nice picture which is located in the pictures
directory under the assets directory, you can do that as follows:
![A nice picture](/pictures/nice-picture.png)
Sun, by Christian Scheja
Structurizr Site Generatr supports rendering PlantUML embedded in Markdown files.
```puml
@startuml
Foo -> Bar: doSomething()
@enduml
```
```puml
@startuml
class Foo {
+property: String
+foo()
}
class Bar {
-privateProperty: String
+bar()
}
Foo ..> Bar: Uses
@enduml
```
Structurizr Site Generatr is supporting mermaid diagrams in markdown pages using the actual mermaid.js version. Therefore every diagram type, supported by mermaid may be used in markdown documentation files.
Please find the full list of supported chart types on mermaid.js.org/intro
```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```mermaid
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
```
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts <br/>prevail!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!