It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

plantuml - include stylesheet

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

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).

 

How can I include a file from Confluence?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

Bring information from GitHub into Confluence

I’ve got a couple of questions for you. Do you write technical documentation? What about technical documentation that references code and files from GitHub? In this article you will learn how to in...

32 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you