AsciiDoc features πŸ“Œ

This page showcases the ability to use AsciiDoc formating features in workspace documentation files. The full list of AsciiDoc features is documented in the Asciidoctor Syntax Reference.

Embedding diagrams

Diagrams can be embedded using the embed: syntax:

image::embed:SystemLandscape[System Landscape Diagram]

Example: Embedded diagram

System Landscape System Landscape Big Bank plc Customer   Service Staff [Person]   Customer   service   staff within   the   bank. Back   Office   Staff [Person]   Administration   and   support staff   within   the   bank. Mainframe   Banking System [Software   System]   Stores   all   of   the   core banking   information   about customers,   accounts, transactions,   etc. E-mail   System [Software   System]   The   internal   Microsoft Exchange   e-mail   system. ATM [Software   System]   Allows   customers   to withdraw   cash. Internet   Banking System [Software   System]   Allows   customers   to   view information   about   their bank   accounts,   and   make payments. Personal   Banking Customer [Person]   A   customer   of   the   bank, with   personal   bank accounts. Acquirer [Software   System]   Facilitates   PIN   transactions for   merchants. Views   account balances,   and makes   payments using Gets   account information   from, and   makes payments   using Sends   e-mail   using Sends   e-mails   to Asks   questions   to [Telephone] Uses Withdraws   cash using Uses Uses Peforms   clearing and   settlement
System Landscape Diagram

Embedding static images

Example Embedded picture

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:

image::/pictures/nice-picture.png[A nice picture]

Sun, by Christian Scheja

A nice picture

Embedding PlantUML diagrams

Sequence Diagram Example

[plantuml]
----
@startuml
Foo -> Bar: doSomething()
@enduml
----
Foo Foo Bar Bar doSomething()

Class Diagram Example

[plantuml]
----
@startuml
class Foo {
    +property: String
    +foo()
}

class Bar {
    -privateProperty: String
    +bar()
}

Foo ..> Bar: Uses
@enduml
----
Foo property: String foo() Bar privateProperty: String bar() Uses

Embedding mermaid diagrams

Flowchart Diagram Example

[source, mermaid]
----
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
----
graph TD;
  A-->B;
  A-->C;
  B-->D;
  C-->D;

Sequence Diagram Example

[source, 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!

Tables

|===
|Column 1, Header Row |Column 2, Header Row

|Cell in column 1, row 1
|Cell in column 2, row 1

|Cell in column 1, row 2
|Cell in column 2, row 2
|===

This will be rendered as

Column 1, Header Row Column 2, Header Row

Cell in column 1, row 1

Cell in column 2, row 1

Cell in column 1, row 2

Cell in column 2, row 2

Admonition Blocks

Admonitions create block-styled side content.

Note
This is a note.
πŸ’‘Tip
Info

Go to this URL to learn more about it:

Caution
This is Caution message!
Warning
This is a Warning message!
Important
One more thing. Happy documenting!

Block quotes

Quote or excerpt text
β€” attribution
citation title and information

Checklist

* [*] checked
* [x] also checked
* [ ] not checked
* normal list item

will be rendered as:

  • βœ“ checked

  • βœ“ also checked

  • ❏ not checked

  • normal list item