diff --git a/examples/limitedcommits.toml b/examples/limitedcommits.toml deleted file mode 100644 index 3eea64e3dc..0000000000 --- a/examples/limitedcommits.toml +++ /dev/null @@ -1,22 +0,0 @@ -# git-cliff ~ configuration file -# https://git-cliff.org/docs/configuration - -[changelog] -# template for the changelog body -# https://keats.github.io/tera/docs/#introduction -body = """ -{% if version %}\ - ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}\ -{% else %}\ - ## [unreleased]\ -{% endif %}\ -{% for group, commits in commits | group_by(attribute="group") %} - ### {{ group | upper_first }} - {% for commit in commits %}\ - - {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }} - {% endfor %}\ -{% endfor %}\n -""" - -[git] -limit_commits = 3 diff --git a/website/docs/templating/examples.md b/website/docs/templating/examples.md index a943813f2f..e483e82c3b 100644 --- a/website/docs/templating/examples.md +++ b/website/docs/templating/examples.md @@ -269,42 +269,6 @@ All notable changes to this project will be documented in this file. -#### [Limited Commits](https://github.com/orhun/git-cliff/tree/main/examples/limitedcommits.toml) - -
- Raw Output - -``` -## [unreleased] -### Feat -- Support multiple file formats -- Use cache while fetching pages - -## [1.0.1] - 2021-07-18 -### Chore -- Add release script -``` - -
- -
- Rendered Output - -## [unreleased] - -### Feat - -- Support multiple file formats -- Use cache while fetching pages - -## [1.0.1] - 2021-07-18 - -### Chore - -- Add release script - -
- #### [Detailed](https://github.com/orhun/git-cliff/tree/main/examples/detailed.toml)
diff --git a/website/docs/usage/initializing.md b/website/docs/usage/initializing.md index b46b2e63d9..c18468508b 100644 --- a/website/docs/usage/initializing.md +++ b/website/docs/usage/initializing.md @@ -31,7 +31,6 @@ Here are the list of available templates: - [`keepachangelog.toml`](https://github.com/orhun/git-cliff/tree/main/examples/keepachangelog.toml) - [`detailed.toml`](https://github.com/orhun/git-cliff/tree/main/examples/detailed.toml) -- [`limitedcommits.toml`](https://github.com/orhun/git-cliff/tree/main/examples/limitedcommits.toml) - [`minimal.toml`](https://github.com/orhun/git-cliff/tree/main/examples/minimal.toml) - [`scoped.toml`](https://github.com/orhun/git-cliff/tree/main/examples/scoped.toml) - [`scopesorted.toml`](https://github.com/orhun/git-cliff/tree/main/examples/scopesorted.toml)