pjkersten / plantuml-extension
MediaWiki extension which renders plantuml markup as UML diagramm graphics
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 34
Watchers: 8
Forks: 17
Open Issues: 11
Requires
- php: >=5.3.0
- mediawiki/graph-viz: *
Replaces
- mediawiki/plantuml-extension: *
This package is not auto-updated.
Last update: 2024-12-11 19:30:43 UTC
README
Hi, welcome to the PlantUML plugin for MediaWiki. The full project page for this plugin can be found on
http://www.mediawiki.org/wiki/Extension:PlantUML
Prerequisites
-
Prerequistes of GraphViz. Basically if you get the GraphViz extension running you should also be able to get PlantUML to run.
Installation
With Composer
[Composer support is in preparation] (https://www.mediawiki.org/wiki/User_talk:Legoktm#Adding_Extension_PlantUML_to_packagist)
Without Composer
-
Go to the extensions folder of your MediaWiki installation. On RedHat and derivates this will be /usr/share/mediawiki/extensions.
cd /usr/share/mediawiki/extensions
-
Create a new subdirectory PlantUML in this folder and move to this directory.
mkdir PlantUML && cd PlantUML
-
Move the all downloaded file (PlantUML.php, PlantUML.body.php, extension.json, i18n, ...) into the PlantUML directory.
mv <downloaddir>/{PlantUML.php,PlantUML.body.php,extension.json,i18n}
. -
Choose your usage style. You can either process images locally (on the server where MediaWiki was installed) or in the cloud. The local version supports SVG-images and embedded urls, at the cost of local processing. The cloud version is lightweight for your server. Default local processing is expected. If you want to use the cloud, please set to LocalSettings.php $wgPlantUmlUseCloude to true.
-
When using local processing: get the plantuml.jar from SourceForge
wget https://downloads.sourceforge.net/project/plantuml/plantuml.jar
-
(Optional) Set to LocalSettings.php the variable $wgPlantUmlFormat to your preference. Mind that SVG produces the superior graphics, but that only PNG-images and image maps are "rock solid". (defaults: svg)
-
(Optional) Adapt the getUploadPath and getUploadDirectory to your preference if you want these different from MediaWiki's standard settings. Mind that these directories must be writeable by the system user who runs MediaWiki.
-
Put the following line to your LocalSettings.php in MediaWiki's root folder to include the extension:
wfLoadExtension( 'PlantUML' );
-
When using the cloud, make sure that httpd can submit HTTP-requests. (Optional) Adapt $wgPlantUmlCloudURI to use your private PlantUml server
-
Reload http `service httpd graceful
-
Enjoy!
Issues
If you have suggestions or remarks, please file an issue!