Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

plantuml - include stylesheet

Jeanne Howe
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 26, 2016

We are Confluence 5.9.12 with PlantUML plugin 5.19

We are trying to figure out how/where to include a stylesheet in our diagrams.

Currently we have the stylesheet saved in google docs and are using an include statement to include the URL in the PlantUML diagram. What we want to do is have the style sheet in Confluence, but can 't figure out how to include the stylesheet in the diagram from within Confluence.

 

Any help would be appreciated

1 answer

0 votes
Michael Griffel September 26, 2016

You can store the style sheet in Confluence either as a page or as an attachment. The syntax how to do that is documented here.

Sample:

Create a empty page e.g. "Skins" and add an attachment with the name "skin.iwsd" and the following content:

skinparam DefaultFontName "Neucha"
skinparam BackgroundColor transparent
skinparam Shadowing false
skinparam Handwritten true
skinparam Note {
 BorderColor #303030
 BackgroundColor #CEEEFE
 FontSize 12
}

Full skin sample can be found here: https://github.com/rbkmoney/plantuml-toolset/blob/master/skin.iwsd

Then you can include that style sheet (skin) in your PlantUML diagram using the !include directive:

!include "Skins^skin.iwsd"

...

 

If you want to include the style sheet on every diagram you can use the "Common Header" feature in the plugins configuration (Confluence administration -> Add-ons -> Confluence PlantUML Plugin -> Configure).

 

David Roberts August 9, 2019

How can I include a file from Confluence?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events