Browse Source

add diagram

master
zeus 3 years ago
parent
commit
753e3faca1
  1. 80
      README.examples-adoc.md
  2. 3
      docs/site-local.yml
  3. 4
      docs/site.yml

80
README.examples-adoc.md

@ -0,0 +1,80 @@
= examples
:idprefix:
:idseparator: -
:!example-caption:
:!table-caption:
:page-pagination:
:stem:
:plantuml-server-url: http://www.plantuml.com/plantuml
:experimental:
== Diagram
[ditaa]
....
+-------------+
| Asciidoctor |-------+
| diagram | |
+-------------+ | PNG out
^ |
| ditaa in |
| v
+--------+ +--------+----+ /---------------\
| | --+ Asciidoctor +--> | |
| Text | +-------------+ | Beautiful |
|Document| | !magic! | | Output |
| {d}| | | | |
+---+----+ +-------------+ \---------------/
: ^
| Lots of work |
+-----------------------------------+
....
[plantuml, diagram-classes, png]
....
class BlockProcessor
class DiagramBlock
class DitaaBlock
class PlantUmlBlock
BlockProcessor <|-- DiagramBlock
DiagramBlock <|-- DitaaBlock
DiagramBlock <|-- PlantUmlBlock
....
== Math
[asciimath]
++++
sqrt(4) = 2
++++
latexmath:[C = \alpha + \beta Y^{\gamma} + \epsilon]
[stem]
++++
[[a,b],[c,d]]((n),(k))
sqrt(4) = 2
sqrt(9) = 3
++++
[asciimath]
++++
[[a,b],[c,d]]((n),(k))
sqrt(4) = 2
sqrt(9) = 3
++++
stem:[sqrt(4) = 2]
stem:[sqrt(9) = 2]

3
docs/site-local.yml

@ -13,5 +13,8 @@ ui:
snapshot: true
supplemental_files: ./supplemental-ui
asciidoc:
attributes:
:plantuml-server-url: http://www.plantuml.com/plantuml
extensions:
- '@djencks/asciidoctor-mathjax'
- asciidoctor-plantuml

4
docs/site.yml

@ -13,6 +13,8 @@ ui:
snapshot: true
supplemental_files: ./supplemental-ui
asciidoc:
attributes:
:plantuml-server-url: http://www.plantuml.com/plantuml
extensions:
- '@djencks/asciidoctor-mathjax'
- asciidoctor-plantuml

Loading…
Cancel
Save