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 ServiceStaff[Person] Customer service staffwithin the bank. Back Office Staff[Person] Administration and supportstaff within the bank. Mainframe BankingSystem[Software System] Stores all of the corebanking information aboutcustomers, accounts,transactions, etc. E-mail System[Software System] The internal MicrosoftExchange e-mail system. ATM[Software System] Allows customers towithdraw cash. Internet BankingSystem[Software System] Allows customers to viewinformation about theirbank accounts, and makepayments. Personal BankingCustomer[Person] A customer of the bank,with personal bankaccounts. Acquirer[Software System] Facilitates PIN transactionsfor merchants. Views accountbalances, andmakes paymentsusing Gets accountinformation from,and makespayments using Sends e-mail using Sends e-mails to Asks questions to[Telephone] Uses Withdraws cashusing Uses Uses Peforms clearingand 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 Bar Foo Foo Bar Bar doSomething()

Class Diagram Example

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

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

Foo ..> Bar: Uses
@enduml
----
Fooproperty: Stringfoo() BarprivateProperty: Stringbar() 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