From c2b9b321673d1b3c1bf9ed55f18c7c7e4186746a Mon Sep 17 00:00:00 2001 From: Ivan Dolgov Date: Wed, 4 Oct 2017 14:46:27 +0300 Subject: Add PlantUML test page --- docs/plantuml-test/ext_diagram1.puml | 3 +++ docs/plantuml-test/ext_diagram2.puml | 3 +++ docs/plantuml-test/ikiwiki.setup | 16 ++++++++++++ docs/plantuml-test/index.mdwn | 49 ++++++++++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 docs/plantuml-test/ext_diagram1.puml create mode 100644 docs/plantuml-test/ext_diagram2.puml create mode 100644 docs/plantuml-test/ikiwiki.setup create mode 100644 docs/plantuml-test/index.mdwn diff --git a/docs/plantuml-test/ext_diagram1.puml b/docs/plantuml-test/ext_diagram1.puml new file mode 100644 index 0000000..1b0da9d --- /dev/null +++ b/docs/plantuml-test/ext_diagram1.puml @@ -0,0 +1,3 @@ +@startuml +Alice -> Bob: Hello +@enduml diff --git a/docs/plantuml-test/ext_diagram2.puml b/docs/plantuml-test/ext_diagram2.puml new file mode 100644 index 0000000..9b5a372 --- /dev/null +++ b/docs/plantuml-test/ext_diagram2.puml @@ -0,0 +1,3 @@ +@startuml +Bob -> Alice: Hello +@enduml diff --git a/docs/plantuml-test/ikiwiki.setup b/docs/plantuml-test/ikiwiki.setup new file mode 100644 index 0000000..da4b876 --- /dev/null +++ b/docs/plantuml-test/ikiwiki.setup @@ -0,0 +1,16 @@ +# IkiWiki::Setup::Yaml - YAML formatted setup file + +wikiname: PlantUML test wiki +srcdir: . +destdir: . +add_plugins: +- img +- highlight +- format +disable_plugins: +- smiley +- rawhtml +- html +- tidy +timeformat: '%Y-%m-%d %H:%M' +exclude: 'favicon\.ico' diff --git a/docs/plantuml-test/index.mdwn b/docs/plantuml-test/index.mdwn new file mode 100644 index 0000000..34cf032 --- /dev/null +++ b/docs/plantuml-test/index.mdwn @@ -0,0 +1,49 @@ +[[!meta title="PlantUML test"]] + +# PlantUML test page + +Everything is OK, if you don't see source code (PlantUML or Ikiwiki) on this page. + +## Code block syntax + +Embedded PlantUML diagram generated from tab-indented source: + + @startuml + Alice -> Bob: Hello + Bob -> Alice: Hello + @enduml + +And another one with space indentation: + + @startuml + Alice -> Bob: Hello + Bob -> Alice: Hello + @enduml + +Extra whitespace in diagram code: + + @startuml + title Test + + Alice -> Bob: Hello + + + Bob -> Alice: Hello + @enduml + +Special characters (regex) in diagram code: + + @startuml + [Alice] -> [Bob]: Hello + [Bob] -> [Alice]: Hello + @enduml + +## External file syntax + +External PlantUML file: + + + +And one more with Pandoc-style triple dash: + + -- cgit v1.2.1