Quantcast

Pass PlantUML config file to asciidoctor

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Pass PlantUML config file to asciidoctor

mariocup
Hello,

I want to use a PlantUML configuration file and pass it to asciidoctor. I have a file plantuml.cfg

```
skinparam monochrome true
```

In my Asciidoctor document I set in the preamble:

```
:plantumlconfig: ./plantuml.cfg
```

However if I call

```bash
asciidoctor-pdf -r asciidoctor-diagram -a pdf-stylesdir=./themes -a pdf test.adoc
```

the config file does not seem to have effect. If I add the skinparam attribute in the source

```
[plantuml, 03_technical_context, width=800, png]
----
skinparam monochrome true
...
```

the style is used correctly.

Do you have any guidance for me how to define plantumconfig to read in the configuration file?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Pass PlantUML config file to asciidoctor

mariocup
Hi,

if I pass the attribute config instead of plantumlconfig to asciidoctor

asciidoctor -r asciidoctor-diagram -a config=plantuml.cfg

the configuration file containing the skinparam settings will be used.

Loading...