forked from pjkersten/PlantUML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
53 lines (38 loc) · 2.17 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
In order to install this plugin, please follow the steps below.
1. 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
2. Create a new subdirectory PlantUML in this folder and move to this
directory.
# mkdir PlantUML && cd PlantUML
3. Move the PlantUML.php file into the PlantUML directory.
# mv <downloaddir>/PlantUML.php .
4. 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, but does not support
embedded urls (yet) and is (still) stuck with PNG-images.
Default local processing is expected. If you want to use the cloud,
please edit the PlantUML.php file and change $usecloud to true.
5. When using local processing: get the plantuml.jar from SourceForge
# wget https://downloads.sourceforge.net/project/plantuml/plantuml.jar
Note Well: Java must be installed and in the path as well.
6. (Optional) Edit PlantUML.php and change the variable $plantumlImagetype
to your preference. Mind that SVG produces the superior graphics, but that
only PNG-images and image maps are "rock solid". If you use the cloud, it
will always generate PNG images. Local processing defaults to SVG.
7. (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.
8. Put the following line near the end of your LocalSettings.php in
MediaWiki's root folder to include the extension:
require_once('extensions/PlantUML/PlantUML.php');
9. When using the cloud, make sure that httpd can submit HTTP-requests.
10. Reload http
# service httpd graceful
11. Enjoy!
If you have suggestions or remarks, please drop a note!