Skip to content

Commit b249bf9

Browse files
committed
docs: update examples page
Signed-off-by: Shingo OKAWA <[email protected]>
1 parent bf4cda2 commit b249bf9

File tree

2 files changed

+145
-1
lines changed

2 files changed

+145
-1
lines changed

examples/statistics.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ body = """
1919
{% for group, commits in commits | group_by(attribute="group") %}
2020
### {{ group | upper_first }}
2121
{% for commit in commits %}
22-
- {{ commit.message | split(pat="\n") | first | trim_end }}\
22+
- {{ commit.message | split(pat="\n") | first | upper_first | trim_end }}\
2323
{% endfor %}
2424
{% endfor %}
2525
### Commit Statistics\n

website/docs/templating/examples.md

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,3 +1038,147 @@ All notable changes to this project will be documented in this file. See [conven
10381038
<!-- generated by git-cliff -->
10391039

10401040
</details>
1041+
1042+
#### [Statistics](https://github.com/orhun/git-cliff/tree/main/examples/statistics.toml)
1043+
1044+
<details>
1045+
<summary>Raw Output</summary>
1046+
1047+
```
1048+
# Changelog
1049+
1050+
All notable changes to this project will be documented in this file.
1051+
1052+
## Unreleased
1053+
1054+
### Features
1055+
1056+
- Support multiple file formats
1057+
- Use cache while fetching pages
1058+
1059+
### Commit Statistics
1060+
1061+
* 2 commit(s) contributed to the release.
1062+
* 0 day(s) passed between the first and last commit.
1063+
* 2 commit(s) were parsed as conventional.
1064+
* 0 issue(s) like '(#ID)' were seen in commit messages.
1065+
* 1426 day(s) passed between releases.
1066+
1067+
## 1.0.1 - 2021-07-18
1068+
1069+
### Miscellaneous Tasks
1070+
1071+
- Add release script
1072+
1073+
### Refactor
1074+
1075+
- Expose string functions
1076+
1077+
### Commit Statistics
1078+
1079+
* 2 commit(s) contributed to the release.
1080+
* 0 day(s) passed between the first and last commit.
1081+
* 2 commit(s) were parsed as conventional.
1082+
* 0 issue(s) like '(#ID)' were seen in commit messages.
1083+
* 0 day(s) passed between releases.
1084+
1085+
## 1.0.0 - 2021-07-18
1086+
1087+
### Bug Fixes
1088+
1089+
- Rename help argument due to conflict
1090+
1091+
### Documentation
1092+
1093+
- Add README.md
1094+
- Add tested usage example
1095+
1096+
### Features
1097+
1098+
- Add ability to parse arrays
1099+
1100+
### Other (unconventional)
1101+
1102+
- Initial commit
1103+
1104+
### Commit Statistics
1105+
1106+
* 5 commit(s) contributed to the release.
1107+
* 4 day(s) passed between the first and last commit.
1108+
* 4 commit(s) were parsed as conventional.
1109+
* 0 issue(s) like '(#ID)' were seen in commit messages.
1110+
1111+
<!-- generated by git-cliff -->
1112+
```
1113+
1114+
</details>
1115+
1116+
<details>
1117+
<summary>Rendered Output</summary>
1118+
1119+
# Changelog
1120+
1121+
All notable changes to this project will be documented in this file.
1122+
1123+
## Unreleased
1124+
1125+
### Features
1126+
1127+
- Support multiple file formats
1128+
- Use cache while fetching pages
1129+
1130+
### Commit Statistics
1131+
1132+
* 2 commit(s) contributed to the release.
1133+
* 0 day(s) passed between the first and last commit.
1134+
* 2 commit(s) were parsed as conventional.
1135+
* 0 issue(s) like '(#ID)' were seen in commit messages.
1136+
* 1426 day(s) passed between releases.
1137+
1138+
## 1.0.1 - 2021-07-18
1139+
1140+
### Miscellaneous Tasks
1141+
1142+
- Add release script
1143+
1144+
### Refactor
1145+
1146+
- Expose string functions
1147+
1148+
### Commit Statistics
1149+
1150+
* 2 commit(s) contributed to the release.
1151+
* 0 day(s) passed between the first and last commit.
1152+
* 2 commit(s) were parsed as conventional.
1153+
* 0 issue(s) like '(#ID)' were seen in commit messages.
1154+
* 0 day(s) passed between releases.
1155+
1156+
## 1.0.0 - 2021-07-18
1157+
1158+
### Bug Fixes
1159+
1160+
- Rename help argument due to conflict
1161+
1162+
### Documentation
1163+
1164+
- Add README.md
1165+
- Add tested usage example
1166+
1167+
### Features
1168+
1169+
- Add ability to parse arrays
1170+
1171+
### Other (unconventional)
1172+
1173+
- Initial commit
1174+
1175+
### Commit Statistics
1176+
1177+
* 5 commit(s) contributed to the release.
1178+
* 4 day(s) passed between the first and last commit.
1179+
* 4 commit(s) were parsed as conventional.
1180+
* 0 issue(s) like '(#ID)' were seen in commit messages.
1181+
1182+
<!-- generated by git-cliff -->
1183+
1184+
</details>

0 commit comments

Comments
 (0)