Not logged in. · Lost password · Register
Forum: General Help and Support Templates and Layout RSS
External Plantuml Style
Avatar
kennyloeffler #1
Member for 2 weeks · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: External Plantuml Style
Hi everyone!

Is it possible to have an extra style file in DokuWiki? I´m using Plantuml Parser to generate diagrams, and currently my styles look like this:

<uml>

skinparam backgroundColor transparent
skinparam monochrome true
.....

</uml>

Can i have an extra file, e.g style.iuml where i can write all my style code?
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4722 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
If the html output for uml has distinct identifiers, you can just place a stylesheet for uml in that plugin's directory.

Another option is the cssperpage plugin: https://www.dokuwiki.org/plugin:cssperpage
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
kennyloeffler #3
Member for 2 weeks · 2 posts
Group memberships: Members
Show profile · Link to this post
Thanks for your answer Myron!

I tried to include my Stylesheet like this:


!include style.iuml

The file is in the same directory as the index.html, but it won´t work. What am I doing wrong? Some other people also have the same problem.

I also tried out your Plugin but it seems like i have to re-structure my code with "div tags"?

Thanks for your help.
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 4722 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
!include style.iuml

Where did you put this?  In any event, you don't need to 'include' the style sheet.  If you put it into the plugin directory it will be automatically picked up by dokuwiki.  Another option is to create a file called userstyle.css in the conf directory and place your styles there.  You might want to mark as !important any styles that override those that appear in the plugin's directory.  But looking at your example, it seems that the plugin uses its own styling markup.  If so, it might be complicated, maybe not even or possible, to override.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-11-12, 05:51:09 (UTC +01:00)