Skip to content

Commit

Permalink
Documentation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
pepijnve committed Jun 16, 2023
1 parent 276fbaf commit c406e30
Show file tree
Hide file tree
Showing 15 changed files with 53 additions and 32 deletions.
Binary file added docs/modules/ROOT/images/d2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions docs/modules/ROOT/pages/diagram_types/a2s.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ include::partial$uris.adoc[]

{uri-a2s}[ASCIIToSVG] is a pretty simple Go library (with an accompanying CLI tool) that parses ASCII art diagrams, attempting to convert them to an aesthetically pleasing SVG output.

== Installation

- Install the https://go.dev[Go] runtime
- Run `go install github.com/asciitosvg/asciitosvg@latest`

== Example

----
Expand All @@ -27,9 +22,14 @@ include::partial$uris.adoc[]

image::a2s.svg[]

== Installation

- Install the https://go.dev[Go] runtime
- Run `go install github.com/asciitosvg/asciitosvg@latest`

== Supported Image Formats

- SVG
- SVG (default)
- TXT

== Attributes
Expand Down
12 changes: 6 additions & 6 deletions docs/modules/ROOT/pages/diagram_types/actdiag.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ include::partial$uris.adoc[]

{uri-actdiag}[actdiag] generates activity-diagram images from .diag files (similar to graphviz’s DOT files).

== Installation

- A Python runtime is required
- Follow the http://blockdiag.com/en/actdiag/introduction.html#setup[actdag installation instructions]

== Example

----
Expand All @@ -30,10 +25,15 @@ actdiag {

image::actdiag.png[]

== Installation

- A Python runtime is required
- Follow the http://blockdiag.com/en/actdiag/introduction.html#setup[actdag installation instructions]

== Supported Image Formats

- PDF
- PNG
- PNG (default)
- SVG

== Attributes
Expand Down
20 changes: 10 additions & 10 deletions docs/modules/ROOT/pages/diagram_types/barcode.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ This works fine for simple barcodes, but for complex data (e.g., a vCard encoded
If the `external` attribute is set on a barcode macro, the target is interpreted as a file path.
The barcode content will then be obtained by reading the contents of the referenced file.

== Installation

- All barcodes types except QR codes require the https://rubygems.org/gems/barby[barby Ruby gem]
- QR codes requires the https://rubygems.org/gems/rqrcode[rqrcode Ruby gem]
- PNG image output requires the https://rubygems.org/gems/chunky_png[chunky_png gem]

Each of these dependencies will automatically get loaded as needed.
It is not necessary to require these manually using the `-r` Asciidoctor CLI option.

== Example

----
Expand All @@ -51,10 +42,19 @@ Barcode can be written image:barcode.png[] inline or as blocks.

image::barcode2.png[]

== Installation

- All barcodes types except QR codes require the https://rubygems.org/gems/barby[barby Ruby gem]
- QR codes requires the https://rubygems.org/gems/rqrcode[rqrcode Ruby gem]
- PNG image output requires the https://rubygems.org/gems/chunky_png[chunky_png gem]

Each of these dependencies will automatically get loaded as needed.
It is not necessary to require these manually using the `-r` Asciidoctor CLI option.

== Supported Image Formats

- PNG
- SVG
- SVG (default)
- TXT

== Attributes
Expand Down
7 changes: 6 additions & 1 deletion docs/modules/ROOT/pages/diagram_types/blockdiag.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@ blockdiag {

image::blockdiag.png[]

== Installation

- A Python runtime is required
- Follow the http://blockdiag.com/en/blockdiag/introduction.html#setup[blockdiag installation instructions]

== Supported Image Formats

- PDF
- PNG
- PNG (default)
- SVG

== Attributes
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/diagram_types/bpmn.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This extension uses {uri-bpmn}[bpmn-js-cmd] to render diagrams
== Supported Image Formats

- PDF
- PNG
- PNG (default)
- SVG

== Attributes
Expand Down
15 changes: 15 additions & 0 deletions docs/modules/ROOT/pages/diagram_types/d2.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ include::partial$uris.adoc[]
It stands for Declarative Diagramming.
Declarative, as in, you describe what you want diagrammed, it generates the image.

== Example

----
[d2]
....
donut: {shape: circle}
database.shape: cylinder
you: {
shape: person
}
....
----

image::d2.png[]

== Supported Image Formats

- PDF
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/diagram_types/diagrams.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ You can also describe or visualize the existing system architecture as well.
== Supported Image Formats

- PDF
- PNG
- PNG (default)
- SVG

== Attributes
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/diagram_types/ditaa.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A https://github.com/pepijnve/ditaa[fork of the ditaa] project is bundled with t

== Supported Image Formats

- PNG
- PNG (default)
- SVG
- TXT

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/diagram_types/erd.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include::partial$uris.adoc[]

== Supported Image Formats

- PNG
- PNG (default)
- SVG

== Attributes
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/diagram_types/gnuplot.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ It can be used interactively to plot functions and data points in both two- and
== Supported Image Formats

- GIF
- PNG
- PNG (default)
- SVG
- TXT

Expand Down
3 changes: 2 additions & 1 deletion docs/modules/ROOT/pages/diagram_types/graphviz.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Graphviz has many useful features for concrete diagrams, such as options for col
== Supported Image Formats

- GIF
- PNG
- PNG (default)
- SVG

== Attributes

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/diagram_types/meme.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The meme extension requires https://imagemagick.org[ImageMagick].
== Supported Image Formats

- GIF
- PNG
- PNG (default)

== Attributes

Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/diagram_types/nwdiag.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The `rackdiag` and `packetdiag` tools that are part of the `nwdiag` package are
== Supported Image Formats

- PDF
- PNG
- PNG (default)
- SVG

== Attributes
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/diagram_types/seqdiag.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include::partial$uris.adoc[]
== Supported Image Formats

- PDF
- PNG
- PNG (default)
- SVG

== Attributes
Expand Down

0 comments on commit c406e30

Please sign in to comment.