Skip to content

Instantly share code, notes, and snippets.

@cpq
Created November 29, 2014 08:25
Show Gist options
  • Save cpq/1c72f76a1c9afd749776 to your computer and use it in GitHub Desktop.
Save cpq/1c72f76a1c9afd749776 to your computer and use it in GitHub Desktop.
asciidoc diagrams

Graphviz

digraph g {
    a -> b
    b -> c
    c -> d
    d -> a
}

Ditaa

                   +-------------+
                   | Asciidoctor |-------+
                   |  Diagram    |       |
                   +-------------+       | PNG out
                       ^                 |
                       | ditaa in        |
                       |                 v
 +--------+   +--------+----+    /----------------\
 |        | --+ Asciidoctor +--> |                |
 |  Text  |   +-------------+    |Beautiful output|
 |Document|   |   !magic!   |    |                |
 |     {d}|   |             |    |                |
 +---+----+   +-------------+    \----------------/
     :                                   ^
     |          Lots of work             |
     +-----------------------------------+

PlantUML

The PlantUML block extension class
class BlockProcessor
class PlantUmlBlock
BlockProcessor <|-- PlantUmlBlock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment