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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.