asciidoctor-diagram 2.2.11 → 2.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +7 -0
- data/lib/asciidoctor-diagram/plantuml/converter.rb +1 -0
- data/lib/asciidoctor-diagram/structurizr/renderers.rb +5 -0
- data/lib/asciidoctor-diagram/version.rb +1 -1
- metadata +3 -130
- data/Rakefile +0 -9
- data/docs/antora.yml +0 -5
- data/docs/modules/ROOT/images/a2s.svg +0 -44
- data/docs/modules/ROOT/images/actdiag.png +0 -0
- data/docs/modules/ROOT/images/asciidoctor-diagram-classes.png +0 -0
- data/docs/modules/ROOT/images/asciidoctor-diagram-process.png +0 -0
- data/docs/modules/ROOT/images/barcode.png +0 -0
- data/docs/modules/ROOT/images/barcode2.png +0 -0
- data/docs/modules/ROOT/images/blockdiag.png +0 -0
- data/docs/modules/ROOT/images/d2.png +0 -0
- data/docs/modules/ROOT/images/lilypond.png +0 -0
- data/docs/modules/ROOT/images/penrose.png +0 -0
- data/docs/modules/ROOT/nav.adoc +0 -41
- data/docs/modules/ROOT/pages/blocks.adoc +0 -140
- data/docs/modules/ROOT/pages/diagram_types/a2s.adoc +0 -47
- data/docs/modules/ROOT/pages/diagram_types/actdiag.adoc +0 -46
- data/docs/modules/ROOT/pages/diagram_types/barcode.adoc +0 -72
- data/docs/modules/ROOT/pages/diagram_types/blockdiag.adoc +0 -38
- data/docs/modules/ROOT/pages/diagram_types/bpmn.adoc +0 -21
- data/docs/modules/ROOT/pages/diagram_types/bytefield.adoc +0 -16
- data/docs/modules/ROOT/pages/diagram_types/d2.adoc +0 -43
- data/docs/modules/ROOT/pages/diagram_types/dbml.adoc +0 -16
- data/docs/modules/ROOT/pages/diagram_types/diagrams.adoc +0 -20
- data/docs/modules/ROOT/pages/diagram_types/ditaa.adoc +0 -31
- data/docs/modules/ROOT/pages/diagram_types/dpic.adoc +0 -16
- data/docs/modules/ROOT/pages/diagram_types/erd.adoc +0 -17
- data/docs/modules/ROOT/pages/diagram_types/gnuplot.adoc +0 -27
- data/docs/modules/ROOT/pages/diagram_types/graphviz.adoc +0 -21
- data/docs/modules/ROOT/pages/diagram_types/lilypond.adoc +0 -27
- data/docs/modules/ROOT/pages/diagram_types/meme.adoc +0 -34
- data/docs/modules/ROOT/pages/diagram_types/mermaid.adoc +0 -28
- data/docs/modules/ROOT/pages/diagram_types/msc.adoc +0 -23
- data/docs/modules/ROOT/pages/diagram_types/nomnoml.adoc +0 -16
- data/docs/modules/ROOT/pages/diagram_types/nwdiag.adoc +0 -22
- data/docs/modules/ROOT/pages/diagram_types/penrose.adoc +0 -50
- data/docs/modules/ROOT/pages/diagram_types/pikchr.adoc +0 -16
- data/docs/modules/ROOT/pages/diagram_types/plantuml.adoc +0 -24
- data/docs/modules/ROOT/pages/diagram_types/seqdiag.adoc +0 -18
- data/docs/modules/ROOT/pages/diagram_types/shaape.adoc +0 -18
- data/docs/modules/ROOT/pages/diagram_types/smcat.adoc +0 -18
- data/docs/modules/ROOT/pages/diagram_types/structurizr.adoc +0 -29
- data/docs/modules/ROOT/pages/diagram_types/svgbob.adoc +0 -21
- data/docs/modules/ROOT/pages/diagram_types/symbolator.adoc +0 -19
- data/docs/modules/ROOT/pages/diagram_types/syntrax.adoc +0 -28
- data/docs/modules/ROOT/pages/diagram_types/tikz.adoc +0 -21
- data/docs/modules/ROOT/pages/diagram_types/umlet.adoc +0 -19
- data/docs/modules/ROOT/pages/diagram_types/vega.adoc +0 -28
- data/docs/modules/ROOT/pages/diagram_types/wavedrom.adoc +0 -17
- data/docs/modules/ROOT/pages/enabling.adoc +0 -25
- data/docs/modules/ROOT/pages/generate.adoc +0 -15
- data/docs/modules/ROOT/pages/index.adoc +0 -12
- data/docs/modules/ROOT/pages/installation.adoc +0 -32
- data/docs/modules/ROOT/pages/output.adoc +0 -19
- data/docs/modules/ROOT/partials/shared-attrs.adoc +0 -12
- data/docs/modules/ROOT/partials/uris.adoc +0 -48
- data/examples/Gemfile +0 -3
- data/examples/README.adoc +0 -18
- data/examples/design.adoc +0 -78
- data/examples/features.adoc +0 -189
- data/spec/a2s_spec.rb +0 -33
- data/spec/barcode_spec.rb +0 -176
- data/spec/blockdiag_spec.rb +0 -20
- data/spec/bpmn_spec.rb +0 -60
- data/spec/bytefield_spec.rb +0 -96
- data/spec/d2_spec.rb +0 -87
- data/spec/dbml_spec.rb +0 -32
- data/spec/diagrams_spec.rb +0 -27
- data/spec/ditaa_spec.rb +0 -191
- data/spec/dpic_spec.rb +0 -23
- data/spec/erd_spec.rb +0 -96
- data/spec/gnuplot_spec.rb +0 -229
- data/spec/graphviz_py_spec.rb +0 -33
- data/spec/graphviz_spec.rb +0 -24
- data/spec/lilypond_spec.rb +0 -17
- data/spec/man.jpg +0 -0
- data/spec/meme_spec.rb +0 -67
- data/spec/mermaid_spec.rb +0 -161
- data/spec/msc_spec.rb +0 -37
- data/spec/nomnoml_spec.rb +0 -36
- data/spec/pikchr_spec.rb +0 -73
- data/spec/plantuml_spec.rb +0 -800
- data/spec/shaape_spec.rb +0 -20
- data/spec/shared_examples.rb +0 -766
- data/spec/smcat_spec.rb +0 -30
- data/spec/structurizr_spec.rb +0 -41
- data/spec/svgbob_spec.rb +0 -33
- data/spec/symbolator_spec.rb +0 -27
- data/spec/syntrax_spec.rb +0 -22
- data/spec/test_helper_methods.rb +0 -118
- data/spec/tikz_spec.rb +0 -181
- data/spec/umlet_spec.rb +0 -32
- data/spec/vega_spec.rb +0 -133
- data/spec/wavedrom_spec.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fa9df554bdc548c3c2ab23f18f44f1931a24b9aca2d691d2514a3ed4f6ac7f5
|
4
|
+
data.tar.gz: f03d45985571af9290798a36220cbbb1d70a7bad321c3f58181a28e975f499ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a058672b892ced01c4c6686601f8d2f0f4d8ba4393911b96912d204072beb8af2f9be455adf38bb2018049a9b1cd3f3eb6c8de8da697d4717349fa75f0bf7e33
|
7
|
+
data.tar.gz: e6625a076b2dfee01b6e2267fe448aa7a11ddd6f3c0282553670e0ed067988a50109722d1cd408fc4530435df15195cb63718c05354248e613312f239be55af8
|
data/CHANGELOG.adoc
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-diagram
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pepijn Van Eeckhoudt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -124,65 +124,6 @@ files:
|
|
124
124
|
- CHANGELOG.adoc
|
125
125
|
- LICENSE.txt
|
126
126
|
- README.adoc
|
127
|
-
- Rakefile
|
128
|
-
- docs/antora.yml
|
129
|
-
- docs/modules/ROOT/images/a2s.svg
|
130
|
-
- docs/modules/ROOT/images/actdiag.png
|
131
|
-
- docs/modules/ROOT/images/asciidoctor-diagram-classes.png
|
132
|
-
- docs/modules/ROOT/images/asciidoctor-diagram-process.png
|
133
|
-
- docs/modules/ROOT/images/barcode.png
|
134
|
-
- docs/modules/ROOT/images/barcode2.png
|
135
|
-
- docs/modules/ROOT/images/blockdiag.png
|
136
|
-
- docs/modules/ROOT/images/d2.png
|
137
|
-
- docs/modules/ROOT/images/lilypond.png
|
138
|
-
- docs/modules/ROOT/images/penrose.png
|
139
|
-
- docs/modules/ROOT/nav.adoc
|
140
|
-
- docs/modules/ROOT/pages/blocks.adoc
|
141
|
-
- docs/modules/ROOT/pages/diagram_types/a2s.adoc
|
142
|
-
- docs/modules/ROOT/pages/diagram_types/actdiag.adoc
|
143
|
-
- docs/modules/ROOT/pages/diagram_types/barcode.adoc
|
144
|
-
- docs/modules/ROOT/pages/diagram_types/blockdiag.adoc
|
145
|
-
- docs/modules/ROOT/pages/diagram_types/bpmn.adoc
|
146
|
-
- docs/modules/ROOT/pages/diagram_types/bytefield.adoc
|
147
|
-
- docs/modules/ROOT/pages/diagram_types/d2.adoc
|
148
|
-
- docs/modules/ROOT/pages/diagram_types/dbml.adoc
|
149
|
-
- docs/modules/ROOT/pages/diagram_types/diagrams.adoc
|
150
|
-
- docs/modules/ROOT/pages/diagram_types/ditaa.adoc
|
151
|
-
- docs/modules/ROOT/pages/diagram_types/dpic.adoc
|
152
|
-
- docs/modules/ROOT/pages/diagram_types/erd.adoc
|
153
|
-
- docs/modules/ROOT/pages/diagram_types/gnuplot.adoc
|
154
|
-
- docs/modules/ROOT/pages/diagram_types/graphviz.adoc
|
155
|
-
- docs/modules/ROOT/pages/diagram_types/lilypond.adoc
|
156
|
-
- docs/modules/ROOT/pages/diagram_types/meme.adoc
|
157
|
-
- docs/modules/ROOT/pages/diagram_types/mermaid.adoc
|
158
|
-
- docs/modules/ROOT/pages/diagram_types/msc.adoc
|
159
|
-
- docs/modules/ROOT/pages/diagram_types/nomnoml.adoc
|
160
|
-
- docs/modules/ROOT/pages/diagram_types/nwdiag.adoc
|
161
|
-
- docs/modules/ROOT/pages/diagram_types/penrose.adoc
|
162
|
-
- docs/modules/ROOT/pages/diagram_types/pikchr.adoc
|
163
|
-
- docs/modules/ROOT/pages/diagram_types/plantuml.adoc
|
164
|
-
- docs/modules/ROOT/pages/diagram_types/seqdiag.adoc
|
165
|
-
- docs/modules/ROOT/pages/diagram_types/shaape.adoc
|
166
|
-
- docs/modules/ROOT/pages/diagram_types/smcat.adoc
|
167
|
-
- docs/modules/ROOT/pages/diagram_types/structurizr.adoc
|
168
|
-
- docs/modules/ROOT/pages/diagram_types/svgbob.adoc
|
169
|
-
- docs/modules/ROOT/pages/diagram_types/symbolator.adoc
|
170
|
-
- docs/modules/ROOT/pages/diagram_types/syntrax.adoc
|
171
|
-
- docs/modules/ROOT/pages/diagram_types/tikz.adoc
|
172
|
-
- docs/modules/ROOT/pages/diagram_types/umlet.adoc
|
173
|
-
- docs/modules/ROOT/pages/diagram_types/vega.adoc
|
174
|
-
- docs/modules/ROOT/pages/diagram_types/wavedrom.adoc
|
175
|
-
- docs/modules/ROOT/pages/enabling.adoc
|
176
|
-
- docs/modules/ROOT/pages/generate.adoc
|
177
|
-
- docs/modules/ROOT/pages/index.adoc
|
178
|
-
- docs/modules/ROOT/pages/installation.adoc
|
179
|
-
- docs/modules/ROOT/pages/output.adoc
|
180
|
-
- docs/modules/ROOT/partials/shared-attrs.adoc
|
181
|
-
- docs/modules/ROOT/partials/uris.adoc
|
182
|
-
- examples/Gemfile
|
183
|
-
- examples/README.adoc
|
184
|
-
- examples/design.adoc
|
185
|
-
- examples/features.adoc
|
186
127
|
- lib/asciidoctor-diagram.rb
|
187
128
|
- lib/asciidoctor-diagram/a2s.rb
|
188
129
|
- lib/asciidoctor-diagram/a2s/converter.rb
|
@@ -307,40 +248,6 @@ files:
|
|
307
248
|
- lib/asciidoctor-diagram/wavedrom.rb
|
308
249
|
- lib/asciidoctor-diagram/wavedrom/converter.rb
|
309
250
|
- lib/asciidoctor-diagram/wavedrom/extension.rb
|
310
|
-
- spec/a2s_spec.rb
|
311
|
-
- spec/barcode_spec.rb
|
312
|
-
- spec/blockdiag_spec.rb
|
313
|
-
- spec/bpmn_spec.rb
|
314
|
-
- spec/bytefield_spec.rb
|
315
|
-
- spec/d2_spec.rb
|
316
|
-
- spec/dbml_spec.rb
|
317
|
-
- spec/diagrams_spec.rb
|
318
|
-
- spec/ditaa_spec.rb
|
319
|
-
- spec/dpic_spec.rb
|
320
|
-
- spec/erd_spec.rb
|
321
|
-
- spec/gnuplot_spec.rb
|
322
|
-
- spec/graphviz_py_spec.rb
|
323
|
-
- spec/graphviz_spec.rb
|
324
|
-
- spec/lilypond_spec.rb
|
325
|
-
- spec/man.jpg
|
326
|
-
- spec/meme_spec.rb
|
327
|
-
- spec/mermaid_spec.rb
|
328
|
-
- spec/msc_spec.rb
|
329
|
-
- spec/nomnoml_spec.rb
|
330
|
-
- spec/pikchr_spec.rb
|
331
|
-
- spec/plantuml_spec.rb
|
332
|
-
- spec/shaape_spec.rb
|
333
|
-
- spec/shared_examples.rb
|
334
|
-
- spec/smcat_spec.rb
|
335
|
-
- spec/structurizr_spec.rb
|
336
|
-
- spec/svgbob_spec.rb
|
337
|
-
- spec/symbolator_spec.rb
|
338
|
-
- spec/syntrax_spec.rb
|
339
|
-
- spec/test_helper_methods.rb
|
340
|
-
- spec/tikz_spec.rb
|
341
|
-
- spec/umlet_spec.rb
|
342
|
-
- spec/vega_spec.rb
|
343
|
-
- spec/wavedrom_spec.rb
|
344
251
|
homepage: https://github.com/asciidoctor/asciidoctor-diagram
|
345
252
|
licenses:
|
346
253
|
- MIT
|
@@ -371,38 +278,4 @@ specification_version: 4
|
|
371
278
|
summary: A family of Asciidoctor extensions that generate images from a broad range
|
372
279
|
of embedded plain text diagram descriptions, including PlantUML, ditaa, Kroki, and
|
373
280
|
many others.
|
374
|
-
test_files:
|
375
|
-
- spec/a2s_spec.rb
|
376
|
-
- spec/barcode_spec.rb
|
377
|
-
- spec/blockdiag_spec.rb
|
378
|
-
- spec/bpmn_spec.rb
|
379
|
-
- spec/bytefield_spec.rb
|
380
|
-
- spec/d2_spec.rb
|
381
|
-
- spec/dbml_spec.rb
|
382
|
-
- spec/diagrams_spec.rb
|
383
|
-
- spec/ditaa_spec.rb
|
384
|
-
- spec/dpic_spec.rb
|
385
|
-
- spec/erd_spec.rb
|
386
|
-
- spec/gnuplot_spec.rb
|
387
|
-
- spec/graphviz_py_spec.rb
|
388
|
-
- spec/graphviz_spec.rb
|
389
|
-
- spec/lilypond_spec.rb
|
390
|
-
- spec/man.jpg
|
391
|
-
- spec/meme_spec.rb
|
392
|
-
- spec/mermaid_spec.rb
|
393
|
-
- spec/msc_spec.rb
|
394
|
-
- spec/nomnoml_spec.rb
|
395
|
-
- spec/pikchr_spec.rb
|
396
|
-
- spec/plantuml_spec.rb
|
397
|
-
- spec/shaape_spec.rb
|
398
|
-
- spec/shared_examples.rb
|
399
|
-
- spec/smcat_spec.rb
|
400
|
-
- spec/structurizr_spec.rb
|
401
|
-
- spec/svgbob_spec.rb
|
402
|
-
- spec/symbolator_spec.rb
|
403
|
-
- spec/syntrax_spec.rb
|
404
|
-
- spec/test_helper_methods.rb
|
405
|
-
- spec/tikz_spec.rb
|
406
|
-
- spec/umlet_spec.rb
|
407
|
-
- spec/vega_spec.rb
|
408
|
-
- spec/wavedrom_spec.rb
|
281
|
+
test_files: []
|
data/Rakefile
DELETED
data/docs/antora.yml
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
2
|
-
<!-- Created with ASCIItoSVG -->
|
3
|
-
<svg width="261px" height="176px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
4
|
-
<defs>
|
5
|
-
<filter id="dsFilter" width="150%" height="150%">
|
6
|
-
<feOffset result="offOut" in="SourceGraphic" dx="2" dy="2"/>
|
7
|
-
<feColorMatrix result="matrixOut" in="offOut" type="matrix" values="0.2 0 0 0 0 0 0.2 0 0 0 0 0 0.2 0 0 0 0 0 1 0"/>
|
8
|
-
<feGaussianBlur result="blurOut" in="matrixOut" stdDeviation="3"/>
|
9
|
-
<feBlend in="SourceGraphic" in2="blurOut" mode="normal"/>
|
10
|
-
</filter>
|
11
|
-
<marker id="iPointer"
|
12
|
-
viewBox="0 0 10 10" refX="5" refY="5"
|
13
|
-
markerUnits="strokeWidth"
|
14
|
-
markerWidth="8" markerHeight="15"
|
15
|
-
orient="auto">
|
16
|
-
<path d="M 10 0 L 10 10 L 0 5 z" />
|
17
|
-
</marker>
|
18
|
-
<marker id="Pointer"
|
19
|
-
viewBox="0 0 10 10" refX="5" refY="5"
|
20
|
-
markerUnits="strokeWidth"
|
21
|
-
markerWidth="8" markerHeight="15"
|
22
|
-
orient="auto">
|
23
|
-
<path d="M 0 0 L 10 5 L 0 10 z" />
|
24
|
-
</marker>
|
25
|
-
</defs>
|
26
|
-
<g id="closed" filter="url(#dsFilter)" stroke="#000" stroke-width="2" fill="none">
|
27
|
-
<path id="closed0" fill="#fff" filter="url(#dsFilter)" d="M 13.5 18 Q 13.5 8 23.5 8 L 22.5 8 L 31.5 8 L 40.5 8 L 49.5 8 L 58.5 8 L 67.5 8 L 76.5 8 L 85.5 8 L 94.5 8 L 103.5 8 L 112.5 8 L 121.5 8 L 130.5 8 L 139.5 8 L 148.5 8 L 157.5 8 L 166.5 8 L 175.5 8 L 184.5 8 L 193.5 8 L 202.5 8 L 211.5 8 L 220.5 8 L 229.5 8 L 238.5 8 L 237.5 8 Q 247.5 8 247.5 18 L 247.5 24 L 247.5 40 L 247.5 56 L 247.5 72 L 247.5 88 L 247.5 104 L 247.5 120 L 247.5 126 Q 247.5 136 237.5 136 L 238.5 136 L 229.5 136 L 220.5 136 L 211.5 136 L 202.5 136 L 193.5 136 L 184.5 136 L 175.5 136 L 166.5 136 L 157.5 136 L 148.5 136 L 139.5 136 L 130.5 136 L 121.5 136 L 112.5 136 L 103.5 136 L 94.5 136 L 85.5 136 L 76.5 136 L 67.5 136 L 58.5 136 L 49.5 136 L 40.5 136 L 31.5 136 L 22.5 136 L 23.5 136 Q 13.5 136 13.5 126 L 13.5 120 L 13.5 104 L 13.5 88 L 13.5 72 L 13.5 56 L 13.5 40 L 13.5 24 Z" />
|
28
|
-
<path id="closed1" fill="#fff" filter="url(#dsFilter)" d="M 31.5 50 Q 31.5 40 41.5 40 L 40.5 40 L 49.5 40 L 58.5 40 L 67.5 40 L 76.5 40 L 75.5 40 Q 85.5 40 85.5 50 L 85.5 56 L 85.5 72 L 85.5 78 Q 85.5 88 75.5 88 L 76.5 88 L 67.5 88 L 58.5 88 L 49.5 88 L 40.5 88 L 41.5 88 Q 31.5 88 31.5 78 L 31.5 72 L 31.5 56 Z" />
|
29
|
-
<path id="closed3" fill="#fff" filter="url(#dsFilter)" d="M 103.5 50 Q 103.5 40 113.5 40 L 112.5 40 L 121.5 40 L 130.5 40 L 139.5 40 L 148.5 40 L 147.5 40 Q 157.5 40 157.5 50 L 157.5 56 L 157.5 72 L 157.5 78 Q 157.5 88 147.5 88 L 148.5 88 L 139.5 88 L 130.5 88 L 121.5 88 L 112.5 88 L 113.5 88 Q 103.5 88 103.5 78 L 103.5 72 L 103.5 56 Z" />
|
30
|
-
<path id="closed5" fill="#fff" filter="url(#dsFilter)" d="M 175.5 50 Q 175.5 40 185.5 40 L 184.5 40 L 193.5 40 L 202.5 40 L 211.5 40 L 220.5 40 L 219.5 40 Q 229.5 40 229.5 50 L 229.5 56 L 229.5 72 L 229.5 78 Q 229.5 88 219.5 88 L 220.5 88 L 211.5 88 L 202.5 88 L 193.5 88 L 184.5 88 L 185.5 88 Q 175.5 88 175.5 78 L 175.5 72 L 175.5 56 Z" />
|
31
|
-
</g>
|
32
|
-
<g id="lines" stroke="#000" stroke-width="2" fill="none">
|
33
|
-
<path id="open2" d="M 31.5 50 Q 31.5 40 41.5 40 L 40.5 40 L 49.5 40 L 58.5 40 L 67.5 40 L 76.5 40 L 75.5 40 Q 85.5 40 85.5 50 L 85.5 56 L 85.5 72 L 85.5 78 Q 85.5 88 75.5 88 L 76.5 88 L 77.5 88 Q 67.5 88 67.5 78 L 67.5 82 Q 67.5 72 57.5 72 L 58.5 72 L 59.5 72 Q 49.5 72 49.5 62 L 49.5 66 Q 49.5 56 59.5 56 L 58.5 56 L 57.5 56 Q 67.5 56 67.5 46 " />
|
34
|
-
<path id="open4" marker-end="url(#Pointer)" d="M 175.5 50 Q 175.5 40 185.5 40 L 184.5 40 L 193.5 40 L 202.5 40 L 211.5 40 L 220.5 40 L 219.5 40 Q 229.5 40 229.5 50 L 229.5 56 L 229.5 72 L 229.5 78 Q 229.5 88 219.5 88 L 220.5 88 L 211.5 88 L 202.5 88 L 193.5 88 L 184.5 88 L 185.5 88 Q 175.5 88 175.5 78 L 175.5 72 L 184.5 72 L 193.5 72 L 202.5 72 " />
|
35
|
-
<path id="open6" marker-end="url(#Pointer)" d="M 103.5 56 L 112.5 56 L 121.5 56 L 130.5 56 " />
|
36
|
-
<path id="open7" marker-start="url(#iPointer)" d="M 202.5 56 L 211.5 56 L 220.5 56 " />
|
37
|
-
<path id="open8" marker-start="url(#iPointer)" d="M 130.5 72 L 139.5 72 L 148.5 72 " />
|
38
|
-
</g>
|
39
|
-
<g id="text" stroke="none" style="font-family:Consolas,Monaco,Anonymous Pro,Anonymous,Bitstream Sans Mono,monospace;font-size:15.2px" >
|
40
|
-
<text id="obj9" x="40.5" y="104" fill="#000">ascii</text>
|
41
|
-
<text id="obj10" x="130.5" y="104" fill="#000">2</text>
|
42
|
-
<text id="obj11" x="193.5" y="104" fill="#000">svg</text>
|
43
|
-
</g>
|
44
|
-
</svg>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/docs/modules/ROOT/nav.adoc
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
* xref:index.adoc[]
|
2
|
-
* xref:blocks.adoc[]
|
3
|
-
* xref:installation.adoc[]
|
4
|
-
* xref:generate.adoc[]
|
5
|
-
* xref:output.adoc[]
|
6
|
-
* Diagram Types
|
7
|
-
** xref:diagram_types/a2s.adoc[]
|
8
|
-
** xref:diagram_types/actdiag.adoc[]
|
9
|
-
** xref:diagram_types/barcode.adoc[]
|
10
|
-
** xref:diagram_types/blockdiag.adoc[]
|
11
|
-
** xref:diagram_types/bpmn.adoc[]
|
12
|
-
** xref:diagram_types/bytefield.adoc[]
|
13
|
-
** xref:diagram_types/d2.adoc[]
|
14
|
-
** xref:diagram_types/dbml.adoc[]
|
15
|
-
** xref:diagram_types/diagrams.adoc[]
|
16
|
-
** xref:diagram_types/ditaa.adoc[]
|
17
|
-
** xref:diagram_types/erd.adoc[]
|
18
|
-
** xref:diagram_types/gnuplot.adoc[]
|
19
|
-
** xref:diagram_types/graphviz.adoc[]
|
20
|
-
** xref:diagram_types/lilypond.adoc[]
|
21
|
-
** xref:diagram_types/meme.adoc[]
|
22
|
-
** xref:diagram_types/mermaid.adoc[]
|
23
|
-
** xref:diagram_types/msc.adoc[]
|
24
|
-
** xref:diagram_types/nomnoml.adoc[]
|
25
|
-
** xref:diagram_types/nwdiag.adoc[]
|
26
|
-
** xref:diagram_types/penrose.adoc[]
|
27
|
-
** xref:diagram_types/pikchr.adoc[]
|
28
|
-
** xref:diagram_types/plantuml.adoc[]
|
29
|
-
** xref:diagram_types/seqdiag.adoc[]
|
30
|
-
** xref:diagram_types/shaape.adoc[]
|
31
|
-
** xref:diagram_types/smcat.adoc[]
|
32
|
-
** xref:diagram_types/structurizr.adoc[]
|
33
|
-
** xref:diagram_types/svgbob.adoc[]
|
34
|
-
** xref:diagram_types/symbolator.adoc[]
|
35
|
-
** xref:diagram_types/syntrax.adoc[]
|
36
|
-
** xref:diagram_types/tikz.adoc[]
|
37
|
-
** xref:diagram_types/umlet.adoc[]
|
38
|
-
** xref:diagram_types/vega.adoc[]
|
39
|
-
** xref:diagram_types/wavedrom.adoc[]
|
40
|
-
* Advanced Topics
|
41
|
-
** xref:enabling.adoc[]
|
@@ -1,140 +0,0 @@
|
|
1
|
-
= Diagram Blocks
|
2
|
-
include::partial$uris.adoc[]
|
3
|
-
|
4
|
-
Embedded diagrams are written using diagram blocks.
|
5
|
-
Diagram blocks are delimited using either the literal or listing delimiter.
|
6
|
-
which can accept several attributes.
|
7
|
-
|
8
|
-
All diagram block types share a similar structure.
|
9
|
-
|
10
|
-
.Anatomy of a diagram
|
11
|
-
----
|
12
|
-
[diagram-type, target=output-file-name, format=output-format] // <1> <2> <3>
|
13
|
-
.... // <4>
|
14
|
-
Diagram in appropriate syntax
|
15
|
-
....
|
16
|
-
----
|
17
|
-
<1> The first value in the attribute list specifies the diagram syntax that is being used.
|
18
|
-
<2> The `target` attribute specifies the basename of the image file that will be generated. If this attribute is omitted an auto-generated name will be used instead.
|
19
|
-
<3> The `format` attribute determines the output image format to use. If a format is not specified, the default output format for the chosen diagram type will be used.
|
20
|
-
<4> Place the attribute list directly on top of the delimited literal block (+....+). You can also use an open block as an alternative (`--`).
|
21
|
-
|
22
|
-
== Diagram Macros
|
23
|
-
|
24
|
-
The diagram extensions can also be used in inline, or block macro form.
|
25
|
-
|
26
|
-
.Anatomy of a diagram block macro
|
27
|
-
----
|
28
|
-
diagram-type::source-file-name[format=output-format] // <1> <2> <3>
|
29
|
-
----
|
30
|
-
<1> The macro name specifies the diagram syntax that is being used.
|
31
|
-
<2> The source file name specifies the external file that contains the diagram source code.
|
32
|
-
<3> The `format` attribute determines the output image format to use. If a format is not specified, the default output format for the chosen diagram type will be used.
|
33
|
-
|
34
|
-
When the source file name is a relative path it is resolved with respect to the location of the document being processed.
|
35
|
-
|
36
|
-
== Specifying Diagram Attributes
|
37
|
-
|
38
|
-
Some diagram types allow image generation to be customized using attributes.
|
39
|
-
|
40
|
-
Attributes can be assigned to individual diagram blocks by adding them to the attribute list of the block.
|
41
|
-
|
42
|
-
If the same attribute value should be applied to all blocks of a given diagram type, the attribute can also be assigned indirectly by defining an attribute at the document level.
|
43
|
-
The attribute name at the document level should be prefixed with the diagram type name and a dash.
|
44
|
-
|
45
|
-
This is illustrated for the blockdiag `fontpath` attribute in the example below.
|
46
|
-
|
47
|
-
.Diagram attributes per block and global
|
48
|
-
----
|
49
|
-
= Asciidoctor Diagram
|
50
|
-
:blockdiag-fontpath: /path/to/font.ttf <1>
|
51
|
-
|
52
|
-
[blockdiag] <2>
|
53
|
-
....
|
54
|
-
....
|
55
|
-
|
56
|
-
[blockdiag, fontpath="/path/to/otherfont.ttf"] <3>
|
57
|
-
....
|
58
|
-
....
|
59
|
-
----
|
60
|
-
<1> Attributes can be specified for all diagram of a certain type at the document level by prefixing them with `<blocktype>-`.
|
61
|
-
In this example, the `fontpath` attribute is specified for all diagrams of type `blockdiag`.
|
62
|
-
<2> The first diagram does not specify an explicit value for `fontpath` so the global `blockdiag-fontpath` value will be used
|
63
|
-
<3> The second diagram does specify a `fontpath` value.
|
64
|
-
This overrides the global `blockdiag-fontpath` value.
|
65
|
-
|
66
|
-
== Example
|
67
|
-
|
68
|
-
The example below illustrates the structure of a basic ditaa block written directly in an AsciiDoc document.
|
69
|
-
|
70
|
-
.Basic ditaa block
|
71
|
-
[source]
|
72
|
-
----
|
73
|
-
[ditaa]
|
74
|
-
....
|
75
|
-
+-------------+
|
76
|
-
| Asciidoctor |-------+
|
77
|
-
| diagram | |
|
78
|
-
+-------------+ | PNG out
|
79
|
-
^ |
|
80
|
-
| ditaa in |
|
81
|
-
| v
|
82
|
-
+--------+ +--------+----+ /---------------\
|
83
|
-
| | --+ Asciidoctor +--> | |
|
84
|
-
| Text | +-------------+ | Beautiful |
|
85
|
-
|Document| | !magic! | | Output |
|
86
|
-
| {d}| | | | |
|
87
|
-
+---+----+ +-------------+ \---------------/
|
88
|
-
: ^
|
89
|
-
| Lots of work |
|
90
|
-
+-----------------------------------+
|
91
|
-
....
|
92
|
-
----
|
93
|
-
|
94
|
-
The ditaa block above results in the following diagram.
|
95
|
-
|
96
|
-
.Rendered ditaa diagram
|
97
|
-
image::asciidoctor-diagram-process.png[Asciidoctor Diagram process diagram,650,319]
|
98
|
-
|
99
|
-
The rendered ditaa diagram above gets the file name `58372f7d2ceffae9e91fd0a7cbb080b6.png`.
|
100
|
-
That long number is the checksum of the source code calculated by asciidoctor-diagram.
|
101
|
-
If you want to give your image files a more meaningful name, fill in the `target` attribute.
|
102
|
-
|
103
|
-
This can be done by either specifying it as the second positional attribute or as a named attribute.
|
104
|
-
Both examples below would result in a file called `ditaa-diagram.png`.
|
105
|
-
|
106
|
-
....
|
107
|
-
[ditaa, target="ditaa-diagram"]
|
108
|
-
----
|
109
|
-
<snip>
|
110
|
-
----
|
111
|
-
|
112
|
-
[ditaa, "ditaa-diagram"]
|
113
|
-
----
|
114
|
-
<snip>
|
115
|
-
----
|
116
|
-
....
|
117
|
-
|
118
|
-
The example below illustrates the structure of a basic PlantUML block written directly in an AsciiDoc document.
|
119
|
-
|
120
|
-
.PlantUML Diagram Syntax
|
121
|
-
[source]
|
122
|
-
----
|
123
|
-
[plantuml, target=diagram-classes, format=png] // <1> <2> <3>
|
124
|
-
....
|
125
|
-
class BlockProcessor
|
126
|
-
class DiagramBlock
|
127
|
-
class DitaaBlock
|
128
|
-
class PlantUmlBlock
|
129
|
-
|
130
|
-
BlockProcessor <|-- DiagramBlock
|
131
|
-
DiagramBlock <|-- DitaaBlock
|
132
|
-
DiagramBlock <|-- PlantUmlBlock
|
133
|
-
....
|
134
|
-
----
|
135
|
-
<1> The diagram is written in PlantUML so the first positional attribute is assigned the `plantuml` diagram type.
|
136
|
-
<2> The name of the diagram file is given by the `target` attribute.
|
137
|
-
<3> The output format is specified using the `format` attribute
|
138
|
-
|
139
|
-
.Rendered PlantUML diagram
|
140
|
-
image::asciidoctor-diagram-classes.png[Asciidoctor Diagram classes diagram]
|
@@ -1,47 +0,0 @@
|
|
1
|
-
= ASCIIToSVG
|
2
|
-
include::partial$uris.adoc[]
|
3
|
-
|
4
|
-
{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.
|
5
|
-
|
6
|
-
== Example
|
7
|
-
|
8
|
-
----
|
9
|
-
[a2s, format="svg"]
|
10
|
-
....
|
11
|
-
.-------------------------.
|
12
|
-
| |
|
13
|
-
| .---.-. .-----. .-----. |
|
14
|
-
| | .-. | +--> | | <--| |
|
15
|
-
| | '-' | | <--| +--> | |
|
16
|
-
| '---'-' '-----' '-----' |
|
17
|
-
| ascii 2 svg |
|
18
|
-
| |
|
19
|
-
'-------------------------'
|
20
|
-
....
|
21
|
-
----
|
22
|
-
|
23
|
-
image::a2s.svg[]
|
24
|
-
|
25
|
-
== Installation
|
26
|
-
|
27
|
-
- Install the https://go.dev[Go] runtime
|
28
|
-
- Run `go install github.com/asciitosvg/asciitosvg@latest`
|
29
|
-
|
30
|
-
== Supported Image Formats
|
31
|
-
|
32
|
-
- SVG (default)
|
33
|
-
- TXT
|
34
|
-
|
35
|
-
== Attributes
|
36
|
-
|
37
|
-
include::partial$/shared-attrs.adoc[]
|
38
|
-
|
39
|
-
== Attributes
|
40
|
-
|
41
|
-
[cols=">,<,<",options="header"]
|
42
|
-
|===
|
43
|
-
|Name |Default value |Description
|
44
|
-
|a2s |a2s |The path to the `a2s` executable
|
45
|
-
|fontfamily |unspecified |The font family to use in the generated SVG image
|
46
|
-
|noblur |unspecified |Disable drop-shadow blurring
|
47
|
-
|===
|
@@ -1,46 +0,0 @@
|
|
1
|
-
= ActDiag
|
2
|
-
include::partial$uris.adoc[]
|
3
|
-
|
4
|
-
{uri-actdiag}[actdiag] generates activity-diagram images from .diag files (similar to graphviz’s DOT files).
|
5
|
-
|
6
|
-
== Example
|
7
|
-
|
8
|
-
----
|
9
|
-
[actidag, format="png"]
|
10
|
-
....
|
11
|
-
actdiag {
|
12
|
-
write -> convert -> image
|
13
|
-
|
14
|
-
lane user {
|
15
|
-
label = "User"
|
16
|
-
write [label = "Writing reST"];
|
17
|
-
image [label = "Get diagram IMAGE"];
|
18
|
-
}
|
19
|
-
lane actdiag {
|
20
|
-
convert [label = "Convert reST to Image"];
|
21
|
-
}
|
22
|
-
}
|
23
|
-
....
|
24
|
-
----
|
25
|
-
|
26
|
-
image::actdiag.png[]
|
27
|
-
|
28
|
-
== Installation
|
29
|
-
|
30
|
-
- A Python runtime is required
|
31
|
-
- Follow the http://blockdiag.com/en/actdiag/introduction.html#setup[actdag installation instructions]
|
32
|
-
|
33
|
-
== Supported Image Formats
|
34
|
-
|
35
|
-
- PDF
|
36
|
-
- PNG (default)
|
37
|
-
- SVG
|
38
|
-
|
39
|
-
== Attributes
|
40
|
-
|
41
|
-
[cols=">,<,<",options="header"]
|
42
|
-
|===
|
43
|
-
|Name |Default value |Description
|
44
|
-
|actdiag |actdiag |The path to the `actdiag` executable
|
45
|
-
|fontpath |unspecified |The path to the font that should be used by blockdiag
|
46
|
-
|===
|
@@ -1,72 +0,0 @@
|
|
1
|
-
= Barcode
|
2
|
-
include::partial$uris.adoc[]
|
3
|
-
|
4
|
-
The barcode extension provides barcode rendering.
|
5
|
-
Barcode macros can be specified using blocks, block macros, or inline macros using one of the following templates.
|
6
|
-
|
7
|
-
[source, asciidoc]
|
8
|
-
------
|
9
|
-
// Barcode block
|
10
|
-
[<type>, <attributes>] <1> <2>
|
11
|
-
----
|
12
|
-
<content> <3>
|
13
|
-
----
|
14
|
-
|
15
|
-
// Barcode block macro
|
16
|
-
<type>::<content>[<attributes>]
|
17
|
-
|
18
|
-
// Barcode inline macro
|
19
|
-
<type>:<content>[<attributes>]
|
20
|
-
------
|
21
|
-
<1> Type barcode type. One of `bookland`, `codabar`, `code25`, `code25iata`, `code25interleaved`, `code39`, `code93`, `code128`, `code128a`, `code128b`, `code128c`, `ean8`, `ean13`, `gs1_128`, `qrcode`, or `upca`.
|
22
|
-
<2> <<Attributes>>
|
23
|
-
<3> The content to encode in the barcode
|
24
|
-
|
25
|
-
By default, the `content` field of the barcode macros will be interpreted as the barcode content.
|
26
|
-
This works fine for simple barcodes, but for complex data (e.g., a vCard encoded as a QR code) this is not practical.
|
27
|
-
If the `external` attribute is set on a barcode macro, the target is interpreted as a file path.
|
28
|
-
The barcode content will then be obtained by reading the contents of the referenced file.
|
29
|
-
|
30
|
-
== Example
|
31
|
-
|
32
|
-
----
|
33
|
-
Barcdodes can be written codabar:A31117013206375A[png, height=10] inline or as blocks.
|
34
|
-
|
35
|
-
[qrcode, format="png", xdim=4]
|
36
|
-
....
|
37
|
-
Hello World!
|
38
|
-
....
|
39
|
-
----
|
40
|
-
|
41
|
-
Barcode can be written image:barcode.png[] inline or as blocks.
|
42
|
-
|
43
|
-
image::barcode2.png[]
|
44
|
-
|
45
|
-
== Installation
|
46
|
-
|
47
|
-
- All barcodes types except QR codes require the https://rubygems.org/gems/barby[barby Ruby gem]
|
48
|
-
- QR codes requires the https://rubygems.org/gems/rqrcode[rqrcode Ruby gem]
|
49
|
-
- PNG image output requires the https://rubygems.org/gems/chunky_png[chunky_png gem]
|
50
|
-
|
51
|
-
Each of these dependencies will automatically get loaded as needed.
|
52
|
-
It is not necessary to require these manually using the `-r` Asciidoctor CLI option.
|
53
|
-
|
54
|
-
== Supported Image Formats
|
55
|
-
|
56
|
-
- PNG
|
57
|
-
- SVG (default)
|
58
|
-
- TXT
|
59
|
-
|
60
|
-
== Attributes
|
61
|
-
|
62
|
-
[cols=">,<,<",options="header"]
|
63
|
-
|===
|
64
|
-
|Name |Default value |Description
|
65
|
-
|external |false |When set to true the target of a barcode macro is interpreted as an external source file instead of as the contents of the barcode
|
66
|
-
|height |100 |The height of the bars. (1D only, 2D uses ydim)
|
67
|
-
|xdim |1 |The width of the narrowest bar in a barcode. Thicker bars are multiples of the xdim.
|
68
|
-
|ydim |Same as xdim |This is the same as xdim, but for the height of the blocks in a 2D barcode.
|
69
|
-
|margin |10 |The width of the quiet zone around the barcode.
|
70
|
-
|foreground |black |The color of the bars specified as a 3 or 6 digit hex RGB value or HTML color name.
|
71
|
-
|background |white |The color of the background specified as a 3 or 6 digit hex RGB value or HTML color name.
|
72
|
-
|===
|