Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#181 Add version information calls C4Version() and C4VersionDetails() #182

Merged
merged 4 commits into from
Sep 7, 2021

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
README.md Outdated Show resolved Hide resolved
@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