asciidoctor-diagram 2.2.10 → 2.2.12.next1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.adoc +13 -0
  3. data/lib/asciidoctor-diagram/diagram_source.rb +2 -2
  4. data/lib/asciidoctor-diagram/plantuml/converter.rb +1 -0
  5. data/lib/asciidoctor-diagram/structurizr/renderers.rb +5 -0
  6. data/lib/asciidoctor-diagram/version.rb +1 -1
  7. metadata +5 -132
  8. data/Rakefile +0 -9
  9. data/docs/antora.yml +0 -5
  10. data/docs/modules/ROOT/images/a2s.svg +0 -44
  11. data/docs/modules/ROOT/images/actdiag.png +0 -0
  12. data/docs/modules/ROOT/images/asciidoctor-diagram-classes.png +0 -0
  13. data/docs/modules/ROOT/images/asciidoctor-diagram-process.png +0 -0
  14. data/docs/modules/ROOT/images/barcode.png +0 -0
  15. data/docs/modules/ROOT/images/barcode2.png +0 -0
  16. data/docs/modules/ROOT/images/blockdiag.png +0 -0
  17. data/docs/modules/ROOT/images/d2.png +0 -0
  18. data/docs/modules/ROOT/images/lilypond.png +0 -0
  19. data/docs/modules/ROOT/images/penrose.png +0 -0
  20. data/docs/modules/ROOT/nav.adoc +0 -41
  21. data/docs/modules/ROOT/pages/blocks.adoc +0 -140
  22. data/docs/modules/ROOT/pages/diagram_types/a2s.adoc +0 -47
  23. data/docs/modules/ROOT/pages/diagram_types/actdiag.adoc +0 -46
  24. data/docs/modules/ROOT/pages/diagram_types/barcode.adoc +0 -72
  25. data/docs/modules/ROOT/pages/diagram_types/blockdiag.adoc +0 -38
  26. data/docs/modules/ROOT/pages/diagram_types/bpmn.adoc +0 -21
  27. data/docs/modules/ROOT/pages/diagram_types/bytefield.adoc +0 -16
  28. data/docs/modules/ROOT/pages/diagram_types/d2.adoc +0 -43
  29. data/docs/modules/ROOT/pages/diagram_types/dbml.adoc +0 -16
  30. data/docs/modules/ROOT/pages/diagram_types/diagrams.adoc +0 -20
  31. data/docs/modules/ROOT/pages/diagram_types/ditaa.adoc +0 -31
  32. data/docs/modules/ROOT/pages/diagram_types/dpic.adoc +0 -16
  33. data/docs/modules/ROOT/pages/diagram_types/erd.adoc +0 -17
  34. data/docs/modules/ROOT/pages/diagram_types/gnuplot.adoc +0 -27
  35. data/docs/modules/ROOT/pages/diagram_types/graphviz.adoc +0 -21
  36. data/docs/modules/ROOT/pages/diagram_types/lilypond.adoc +0 -27
  37. data/docs/modules/ROOT/pages/diagram_types/meme.adoc +0 -34
  38. data/docs/modules/ROOT/pages/diagram_types/mermaid.adoc +0 -28
  39. data/docs/modules/ROOT/pages/diagram_types/msc.adoc +0 -23
  40. data/docs/modules/ROOT/pages/diagram_types/nomnoml.adoc +0 -16
  41. data/docs/modules/ROOT/pages/diagram_types/nwdiag.adoc +0 -22
  42. data/docs/modules/ROOT/pages/diagram_types/penrose.adoc +0 -50
  43. data/docs/modules/ROOT/pages/diagram_types/pikchr.adoc +0 -16
  44. data/docs/modules/ROOT/pages/diagram_types/plantuml.adoc +0 -24
  45. data/docs/modules/ROOT/pages/diagram_types/seqdiag.adoc +0 -18
  46. data/docs/modules/ROOT/pages/diagram_types/shaape.adoc +0 -18
  47. data/docs/modules/ROOT/pages/diagram_types/smcat.adoc +0 -18
  48. data/docs/modules/ROOT/pages/diagram_types/structurizr.adoc +0 -29
  49. data/docs/modules/ROOT/pages/diagram_types/svgbob.adoc +0 -21
  50. data/docs/modules/ROOT/pages/diagram_types/symbolator.adoc +0 -19
  51. data/docs/modules/ROOT/pages/diagram_types/syntrax.adoc +0 -28
  52. data/docs/modules/ROOT/pages/diagram_types/tikz.adoc +0 -21
  53. data/docs/modules/ROOT/pages/diagram_types/umlet.adoc +0 -19
  54. data/docs/modules/ROOT/pages/diagram_types/vega.adoc +0 -28
  55. data/docs/modules/ROOT/pages/diagram_types/wavedrom.adoc +0 -17
  56. data/docs/modules/ROOT/pages/enabling.adoc +0 -25
  57. data/docs/modules/ROOT/pages/generate.adoc +0 -15
  58. data/docs/modules/ROOT/pages/index.adoc +0 -12
  59. data/docs/modules/ROOT/pages/installation.adoc +0 -32
  60. data/docs/modules/ROOT/pages/output.adoc +0 -19
  61. data/docs/modules/ROOT/partials/shared-attrs.adoc +0 -12
  62. data/docs/modules/ROOT/partials/uris.adoc +0 -48
  63. data/examples/Gemfile +0 -3
  64. data/examples/README.adoc +0 -18
  65. data/examples/design.adoc +0 -78
  66. data/examples/features.adoc +0 -189
  67. data/spec/a2s_spec.rb +0 -33
  68. data/spec/barcode_spec.rb +0 -176
  69. data/spec/blockdiag_spec.rb +0 -20
  70. data/spec/bpmn_spec.rb +0 -60
  71. data/spec/bytefield_spec.rb +0 -96
  72. data/spec/d2_spec.rb +0 -87
  73. data/spec/dbml_spec.rb +0 -32
  74. data/spec/diagrams_spec.rb +0 -27
  75. data/spec/ditaa_spec.rb +0 -191
  76. data/spec/dpic_spec.rb +0 -23
  77. data/spec/erd_spec.rb +0 -96
  78. data/spec/gnuplot_spec.rb +0 -229
  79. data/spec/graphviz_py_spec.rb +0 -33
  80. data/spec/graphviz_spec.rb +0 -24
  81. data/spec/lilypond_spec.rb +0 -17
  82. data/spec/man.jpg +0 -0
  83. data/spec/meme_spec.rb +0 -67
  84. data/spec/mermaid_spec.rb +0 -161
  85. data/spec/msc_spec.rb +0 -37
  86. data/spec/nomnoml_spec.rb +0 -36
  87. data/spec/pikchr_spec.rb +0 -73
  88. data/spec/plantuml_spec.rb +0 -800
  89. data/spec/shaape_spec.rb +0 -20
  90. data/spec/shared_examples.rb +0 -766
  91. data/spec/smcat_spec.rb +0 -30
  92. data/spec/structurizr_spec.rb +0 -41
  93. data/spec/svgbob_spec.rb +0 -33
  94. data/spec/symbolator_spec.rb +0 -27
  95. data/spec/syntrax_spec.rb +0 -22
  96. data/spec/test_helper_methods.rb +0 -118
  97. data/spec/tikz_spec.rb +0 -181
  98. data/spec/umlet_spec.rb +0 -32
  99. data/spec/vega_spec.rb +0 -133
  100. data/spec/wavedrom_spec.rb +0 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca17eb17dfa0460b23a06aa9efbec40bce21c4a12fc3eacffcb6422cf43100ba
4
- data.tar.gz: 7d6c03ee9a647962125c5e028d261e2d0398dba97b3e3f5ac893d1edb2102ccb
3
+ metadata.gz: 285fe6d6554c17944c1b5ed1744faf565b1d132e7f5931496c55b159dab9f235
4
+ data.tar.gz: 556c4ed9ad80a6aa7c65de419d2c8d39b23909f03446e7015fdab97c924b427e
5
5
  SHA512:
6
- metadata.gz: b8a3906a528bf749c5faaaa7913abdb4dd5f0410c8cdb797e13f801fbb0f2bbeafe143ddb58a1089482777bca4ab6a9821f331b0ed76611e9d27f1fd472aaf8c
7
- data.tar.gz: 7745fabe95ef74bdc650230e031578890defb0359e1acf0ee470fb8d68b0de75511007752991adbd43b1a281c9b1926fd10ab091dae7308536053664b2bca116
6
+ metadata.gz: 85dbce105ec1a70a9b5219691c7e63f7b08062db34152af9f907d16c5a736e67bff69ab0917e65ca0f3db1f1e2f6ae8506e9036d0e8f354b20d83cab783e2f67
7
+ data.tar.gz: 1e682aca72f1df8d4c7a4f106c91d617c8c05c951996b982773add1c28884695c61956cb45781ccd05b8328b2d9239ba8ea7783f27ce6cecf378df900ef97b70
data/CHANGELOG.adoc CHANGED
@@ -1,5 +1,18 @@
1
1
  = Asciidoctor-diagram Changelog
2
2
 
3
+ == 2.2.12
4
+
5
+ Enhancements::
6
+
7
+ * Issue #431: Reduce gem file size
8
+ * Resolve loading errors when loading the PlantUML and Struturizr extensions individually
9
+
10
+ == 2.2.11
11
+
12
+ Bugfixes::
13
+
14
+ * Issue #424: avoid invalid filename characters on Windows
15
+
3
16
  == 2.2.10
4
17
 
5
18
  Enhancements::
@@ -226,7 +226,7 @@ module Asciidoctor
226
226
  end
227
227
 
228
228
  def checksum
229
- @checksum ||= "#{config[:type]}:#{compute_checksum(code)}"
229
+ @checksum ||= "#{diagram_type.to_s}-#{compute_checksum(code)}"
230
230
  end
231
231
 
232
232
  protected
@@ -248,7 +248,7 @@ module Asciidoctor
248
248
  md5 << k.to_s if k
249
249
  md5 << v.to_s if v
250
250
  end
251
- "md5:#{md5.hexdigest}"
251
+ "md5-#{md5.hexdigest}"
252
252
  end
253
253
  end
254
254
 
@@ -1,4 +1,5 @@
1
1
  require_relative '../diagram_converter'
2
+ require_relative '../util/java'
2
3
  require 'delegate'
3
4
  require 'uri'
4
5
 
@@ -1,3 +1,8 @@
1
+ require_relative '../d2/extension'
2
+ require_relative '../graphviz/extension'
3
+ require_relative '../mermaid/extension'
4
+ require_relative '../plantuml/extension'
5
+
1
6
  module Asciidoctor
2
7
  module Diagram
3
8
  class Renderers
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module Diagram
3
- VERSION = "2.2.10"
3
+ VERSION = "2.2.12.next1"
4
4
  end
5
5
  end
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.10
4
+ version: 2.2.12.next1
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-07-28 00:00:00.000000000 Z
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
@@ -361,9 +268,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
361
268
  version: '0'
362
269
  required_rubygems_version: !ruby/object:Gem::Requirement
363
270
  requirements:
364
- - - ">="
271
+ - - ">"
365
272
  - !ruby/object:Gem::Version
366
- version: '0'
273
+ version: 1.3.1
367
274
  requirements: []
368
275
  rubygems_version: 3.2.22
369
276
  signing_key:
@@ -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
@@ -1,9 +0,0 @@
1
- require 'rubygems/package_task'
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:test)
5
-
6
- task :default => :test
7
-
8
- spec = Gem::Specification.load('asciidoctor-diagram.gemspec')
9
- Gem::PackageTask.new(spec) { |task| }
data/docs/antora.yml DELETED
@@ -1,5 +0,0 @@
1
- name: diagram-extension
2
- title: Asciidoctor Diagram
3
- version: '2.2'
4
- nav:
5
- - modules/ROOT/nav.adoc
@@ -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
@@ -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
- |===