diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-11-01 17:22:11 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-11-01 17:22:11 +0000 |
commit | 45b756b27af13ddc74a7081d06280fda99d3ff66 (patch) | |
tree | 5be94c24f98a32ed23f72c4a9a7bbd4c3606fb1b /doc/administration | |
parent | 6ea9f0a33385e832c5a2525040f6916f120639e8 (diff) | |
parent | fab06c980ae9f67f5a867caf07f37479ce99bc0e (diff) | |
download | gitlab-ce-45b756b27af13ddc74a7081d06280fda99d3ff66.tar.gz |
Merge branch 'feature/plantuml-restructured-text-captions' into 'master'
Update gitlab-markup and PlantUML docs
See merge request gitlab-org/gitlab-ce!15120
Diffstat (limited to 'doc/administration')
-rw-r--r-- | doc/administration/integration/plantuml.md | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/doc/administration/integration/plantuml.md b/doc/administration/integration/plantuml.md index 652ca9cf454..93c3642a1f1 100644 --- a/doc/administration/integration/plantuml.md +++ b/doc/administration/integration/plantuml.md @@ -56,29 +56,34 @@ that, login with an Admin account and do following: With PlantUML integration enabled and configured, we can start adding diagrams to our AsciiDoc snippets, wikis and repos using delimited blocks: -``` -[plantuml, format="png", id="myDiagram", width="200px"] --- -Bob->Alice : hello -Alice -> Bob : Go Away --- -``` +- **Markdown** + + ```plantuml + Bob -> Alice : hello + Alice -> Bob : Go Away + ``` -And in Markdown using fenced code blocks: +- **AsciiDoc** - ```plantuml - Bob -> Alice : hello + ``` + [plantuml, format="png", id="myDiagram", width="200px"] + -- + Bob->Alice : hello Alice -> Bob : Go Away + -- ``` -And in reStructuredText using a directive: +- **reStructuredText** -``` -.. plantuml:: + ``` + .. plantuml:: + :caption: Caption with **bold** and *italic* - Bob -> Alice: hello - Alice -> Bob: Go Away -``` + Bob -> Alice: hello + Alice -> Bob: Go Away + ``` + + You can also use the `uml::` directive for compatibility with [sphinxcontrib-plantuml](https://pypi.python.org/pypi/sphinxcontrib-plantuml), but please note that we currently only support the `caption` option. The above blocks will be converted to an HTML img tag with source pointing to the PlantUML instance. If the PlantUML server is correctly configured, this should |