Skip to content

Conversation

@kirchsth
Copy link
Member

Implementation of #181 with the version "2.3.1beta1" (it could be that in the next 5 days version 2.3.2beta1 is displayed, but this is related to the caching problem of the PlantUML online server)

Version information

Starting with v.2.3.1beta1 C4-PlantUML offers version information like PlantUML with its %version() call.

  • C4Version(): Current C4-PlantUML version (e.g. "2.3.1beta1").
  • C4VersionDetails(): (Floating) version details with the current PlantUML and C4-PlantUML version (with the alias C4VersionDetailsArea)
@startuml
' unitil merge is finished my extended branch is used in sample
' !include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Container.puml
!include https://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Container.puml

' existing plantuml version as text
%version()

' new C4-Plantuml version as text 
C4Version()

' new C4-Plantuml version details (incl. PlantUML version) as table
C4VersionDetails()

' version functions used in e.g. footer
footer drawn with PlantUML v. %version() and C4-PlantUML v. C4Version()
@enduml

version sample

@kirchsth kirchsth added this to the v2.3.1 milestone Aug 28, 2021
@Potherca Potherca modified the milestones: v2.3.1, v2.4.0 Aug 31, 2021
@kirchsth kirchsth requested a review from Potherca September 3, 2021 15:44
@Potherca Potherca merged commit 990010f into plantuml-stdlib:master Sep 7, 2021
@kirchsth kirchsth deleted the feature/181addVersion branch February 25, 2022 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add C4Version() functions which displays the PlantUML version and C4-PlantUML version

2 participants