summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Dolgov <ivan@qvarnlabs.com>2017-10-04 14:46:27 +0300
committerIvan Dolgov <ivan@qvarnlabs.com>2017-10-04 14:46:27 +0300
commitc2b9b321673d1b3c1bf9ed55f18c7c7e4186746a (patch)
tree21820737b8463b418c65e3dd8b71f50c3f6e6e06
parent64ab6c3c6ecc27a3e95c72e57a9e50204a207533 (diff)
downloadql-ikiwiki-publish-c2b9b321673d1b3c1bf9ed55f18c7c7e4186746a.tar.gz
Add PlantUML test page
-rw-r--r--docs/plantuml-test/ext_diagram1.puml3
-rw-r--r--docs/plantuml-test/ext_diagram2.puml3
-rw-r--r--docs/plantuml-test/ikiwiki.setup16
-rw-r--r--docs/plantuml-test/index.mdwn49
4 files changed, 71 insertions, 0 deletions
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:
+
+<!-- INCLUDE_UML: ext_diagram1.puml -->
+
+And one more with Pandoc-style triple dash:
+
+<!--- INCLUDE_UML: ext_diagram2.puml -->