项目作者: dkd

项目描述 :
PlantUML Plugin for Redmine
高级语言: Ruby
项目地址: git://github.com/dkd/plantuml.git
创建时间: 2015-08-05T12:20:07Z
项目社区:https://github.com/dkd/plantuml

开源协议:MIT License

下载


PlantUML Redmine plugin

This plugin will allow adding PlantUML diagrams into Redmine.

Requirements

  • Java
  • PlantUML binary

Installation

  • create a shell script in /usr/bin/plantuml
  1. #!/bin/bash
  2. /usr/bin/java -Djava.io.tmpdir=/var/tmp -Djava.awt.headless=true -jar /PATH_TO_YOUR_PLANTUML_BINARY/plantuml.jar ${@}
  • copy this plugin into the Redmine plugins directory

Usage

  • go to the plugin settings page and add the PlantUML binary path /usr/bin/plantuml
  • PlantUML diagrams can be added as follow:
  1. {{plantuml(png)
  2. Bob -> Alice : hello
  3. }}
  1. {{plantuml(svg)
  2. Bob -> Alice : hello
  3. }}
  • you can choose between PNG or SVG images by setting the plantuml macro argument to either png or svg

using !include params

Since all files are written out to the system, there is no safe way to prevent editors from using the !include command inside the code block.
Therefore every input will be sanitited before writing out the .pu files for further interpretation. You can overcome this by activating the Setting.plugin_plantuml['allow_includes']
Attention: this is dangerous, since all files will become accessible on the host system.

Known issues

TODO

  • add image caching