structurizr / cli

A command line utility for Structurizr.
https://docs.structurizr.com/cli
Apache License 2.0
491 stars 75 forks source link

Export diagrams to PlantUML without a title. #57

Closed wfouche closed 2 years ago

wfouche commented 2 years ago

I'd like to export a workspace.dsl file to PUML diagram files but without the default diagram titles that are currently created, A -notitle option would resolve this issue.

Titles could remain in the PUML file but only commented out if the -notitle option is specified.

'title ....

The diagrams I created are included in an Asciidoc document where I specify document specific titles for the diagrams.

.My diagram title.
[plantuml,bi-diag1,svg]
----
include::c4-dsl/structurizr-Containers_BI.puml[]
----
simonbrowndotje commented 2 years ago

You can now do this by adding a view set property named plantuml.title; for example:

workspace {

    model {
        user = person "User"
        softwareSystem = softwareSystem "Software System"

        user -> softwareSystem "Uses"
    }

    views {
        properties {
            plantuml.title false
        }

        systemContext softwareSystem {
            include *
            autolayout
        }

        theme default
    }

}