Skip to content

Commit 5a8a33d

Browse files
authored
Patch C4 library to v2.12.1 (add handwritten fix) (#149)
1 parent 1ccef8d commit 5a8a33d

File tree

3 files changed

+32
-6
lines changed

3 files changed

+32
-6
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,19 @@ This example renders the following image:
122122
<!-- start C4 section -->
123123
![name: C4](https://img.shields.io/badge/name-C4-black)
124124
![display_name: C4 (C4-PlantUML)](https://img.shields.io/badge/display__name-C4_(C4--PlantUML)-black)
125-
[![version: 2.12.0][Version Badge]][Version Link]
125+
[![version: 2.12.1][Version Badge]][Version Link]
126+
![patched](https://img.shields.io/badge/patched-darkred)
126127
![license: MIT](https://img.shields.io/badge/license-MIT-green)
127128
![author: Ricardo Niepel, kirchsth and contributors](https://img.shields.io/badge/author-Ricardo_Niepel,_kirchsth_and_contributors-black)
128129
[![all properties see: ./stdlib/C4/README.md][See Badge]][See Link]
129130

130-
[Version Badge]: https://img.shields.io/badge/version-2.12.0-blue
131+
[Version Badge]: https://img.shields.io/badge/version-2.12.1-blue
131132
[Version Link]: https://github.com/plantuml-stdlib/C4-PlantUML/tree/release/v2.12.0
132133
[See Badge]: https://img.shields.io/badge/all_stdlib_specific_properties_see-./stdlib/C4/README.md-blue
133134
[See Link]: ./stdlib/C4/README.md
135+
136+
> [!INFORMATION]
137+
> **C4 library is patched to version 2.12.1:** This version contains the [Fix for "Use !option handwritten true" warning](https://github.com/plantuml-stdlib/C4-PlantUML/pull/397) too.
134138
<!-- end C4 section -->
135139
136140
The C4 library enables a simple way of describing and communicate software architectures with an intuitive language.

stdlib/C4/C4.puml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
' ##################################
2424
!function C4Version()
2525
' 2 spaces and ' are used as unique marker, that the release scripts makes the correct version update
26-
!$c4Version = "2.12.0"
26+
!$c4Version = "2.12.1"
2727
!return $c4Version
2828
!end function
2929

@@ -1392,7 +1392,25 @@ hide stereotype
13921392
!endprocedure
13931393

13941394
!procedure LAYOUT_AS_SKETCH()
1395+
!$counter=0
1396+
!foreach $versionPart in %splitstr(%version(), ".")
1397+
!$counter=$counter+1
1398+
1399+
!if ($counter == 2)
1400+
!$year=$versionPart
1401+
!endif
1402+
1403+
!if ($counter == 3)
1404+
!$minor=$versionPart
1405+
!endif
1406+
!endfor
1407+
1408+
!if ($year < 2025) || ($year == 2025 && $minor == 0)
13951409
skinparam handwritten true
1410+
!else
1411+
!option handwritten true
1412+
!endif
1413+
13961414
!if $SKETCH_BG_COLOR > ""
13971415
skinparam backgroundColor $SKETCH_BG_COLOR
13981416
!endif

stdlib/C4/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: C4
33
display_name: C4 (C4-PlantUML)
44
description: The C4 library enables a simple way of describing and communicate software architectures with an intuitive language.
55
author: Ricardo Niepel, kirchsth and contributors
6-
version: 2.12.0
6+
version: 2.12.1
77
release: https://github.com/plantuml-stdlib/C4-PlantUML/tree/release/v2.12.0
88
license: MIT
99
source: https://github.com/plantuml-stdlib/C4-PlantUML
@@ -12,8 +12,9 @@ origin: https://c4model.com
1212
**C4 specific stdlib properties:**
1313
![name: C4](https://img.shields.io/badge/name-C4-black)
1414
![display_name: C4 (C4-PlantUML)](https://img.shields.io/badge/display__name-C4_(C4--PlantUML)-black)
15-
![version: 2.12.0](https://img.shields.io/badge/version-2.12.0-black)
16-
[![release: https://github.com/plantuml-stdlib/C4-PlantUML/tree/release/v2.12.0][Release Badge]][Release Link]
15+
![version: 2.12.1](https://img.shields.io/badge/version-2.12.1-black)
16+
[![release: https://github.com/plantuml-stdlib/C4-PlantUML/tree/release/v2.12.0][Release Badge]][Release Link]
17+
![patched](https://img.shields.io/badge/patched-darkred)
1718
![description: The C4 library enables a simple way of describing and communicate software architectures with an intuitive language.](https://img.shields.io/badge/description-The_C4_library_enables_a_simple_way_of_describing_and_communicate_software_architectures_with_an_intuitive_language.-black)
1819
[![license: MIT][License Badge]][License Link]
1920
![author: Ricardo Niepel, kirchsth and contributors](https://img.shields.io/badge/author-Ricardo_Niepel,_kirchsth_and_contributors-black)
@@ -41,6 +42,9 @@ origin: https://c4model.com
4142
[Discussions Badge]: https://img.shields.io/badge/discussions-https://github.com/plantuml--stdlib/C4--PlantUML/discussions-orange
4243
[Discussions Link]: https://github.com/plantuml-stdlib/C4-PlantUML/discussions
4344

45+
> [!INFORMATION]
46+
> **C4 library is patched to version 2.12.1:** This version contains the [Fix for "Use !option handwritten true" warning](https://github.com/plantuml-stdlib/C4-PlantUML/pull/397) too.
47+
4448
# C4 library (C4-PlantUML) [C4]
4549

4650
The C4 library enables a simple way of describing and communicate software architectures with an intuitive language.

0 commit comments

Comments
 (0)