Skip to content

Commit 411ee07

Browse files
committed
wip
1 parent 3323689 commit 411ee07

File tree

6 files changed

+50
-55
lines changed

6 files changed

+50
-55
lines changed

docs/config/bump.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Bump Options
22

3+
<!-- When adding a new option, please keep the alphabetical order. -->
4+
35
## `annotated_tag`
46

57
When set to `true`, `cz bump` is equivalent to `cz bump --annotated-tag`.

docs/config/changelog.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1+
# Changelog Options
12

2-
### `changelog_file`
3+
<!-- When adding a new option, please keep the alphabetical order. -->
4+
5+
## `changelog_file`
36

47
- Type: `str`
58
- Default: `CHANGELOG.md`
69

710
Filename of exported changelog
811

9-
### `changelog_format`
12+
## `changelog_format`
1013

1114
- Type: `str`
1215
- Default: `None`
1316

14-
Format used to parse and generate the changelog. If not specified, guessed from [`changelog_file`](#changelog_file).
17+
Format used to parse and generate the changelog. If not specified, resolved from [`changelog_file`](#changelog_file).
1518

16-
### `changelog_incremental`
19+
## `changelog_incremental`
1720

1821
- Type: `bool`
1922
- Default: `False`
@@ -23,31 +26,30 @@ Update changelog with the missing versions. This is good if you don't want to re
2326
!!! note
2427
When doing `cz bump --changelog` this is automatically set to `True`
2528

26-
### `changelog_start_rev`
29+
## `changelog_start_rev`
2730

2831
- Type: `str`
2932
- Default: `None`
3033

3134
Start from a given git rev to generate the changelog
3235

33-
### `changelog_merge_prerelease`
36+
## `changelog_merge_prerelease`
3437

3538
- Type: `bool`
3639
- Default: `False`
3740

3841
Collect all changes of prerelease versions into the next non-prerelease version when creating the changelog.
3942

40-
41-
### `template`
43+
## `template`
4244

4345
- Type: `str`
4446
- Default: `None` (provided by plugin)
4547

46-
Provide custom changelog jinja template path relative to the current working directory. [Read more][template-customization]
48+
Provide custom changelog jinja template path relative to the current working directory. See [template customization](../customization.md#customizing-the-changelog-template) for more details.
4749

48-
### `extras`
50+
## `extras`
4951

5052
- Type: `dict[str, Any]`
5153
- Default: `{}`
5254

53-
Provide extra variables to the changelog template. [Read more][template-customization]
55+
Provide extra variables to the changelog template. See [template customization](../customization.md#customizing-the-changelog-template) for more details.

docs/config/check.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1+
# Check Options
12

2-
### `allow_abort`
3+
<!-- When adding a new option, please keep the alphabetical order. -->
4+
5+
## `allow_abort`
36

47
- Type: `bool`
58
- Default: `False`
69

7-
Disallow empty commit messages. Useful in CI. [Read more][allow_abort]
10+
Disallow empty commit messages. Useful in CI.
11+
12+
## `allowed_prefixes`
13+
14+
- Type: `list`
15+
- Default: `["Merge", "Revert", "Pull request", "fixup!", "squash!"]`
816

17+
List of prefixes that commitizen ignores when verifying messages.
918

10-
### `message_length_limit`
19+
## `message_length_limit`
1120

1221
Type: `int`
1322

1423
Default: `0`
1524

1625
Maximum length of the commit message. Setting it to `0` disables the length limit. It can be overridden by the `-l/--message-length-limit` command line argument.
1726

18-
19-
### `allowed_prefixes`
20-
21-
- Type: `list`
22-
- Default: `["Merge", "Revert", "Pull request", "fixup!", "squash!"]`
23-
24-
List of prefixes that commitizen ignores when verifying messages. [Read more][allowed_prefixes]

docs/config/commit.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
1+
# Commit Options
12

2-
### `breaking_change_exclamation_in_title`
3+
<!-- When adding a new option, please keep the alphabetical order. -->
34

4-
- Type: `bool`
5-
- Default: `False`
6-
7-
When true, breaking changes will be also indicated by an exclamation mark in the commit title (e.g., `feat!: breaking change`).
8-
When false, breaking changes will be only indicated by `BREAKING CHANGE:` in the footer. [Read more][writing_commits]
9-
10-
### `retry_after_failure`
5+
## `breaking_change_exclamation_in_title`
116

127
- Type: `bool`
138
- Default: `False`
149

15-
Automatically retry failed commit when running `cz commit`. [Read more][retry_after_failure]
10+
When true, breaking changes will be also indicated by an exclamation mark in the commit title (e.g., `feat!: breaking change`).
1611

12+
When false, breaking changes will be only indicated by `BREAKING CHANGE:` in the footer. See [writing commits](../tutorials/writing_commits.md) for more details.
1713

18-
### `encoding`
14+
## `encoding`
1915

2016
- Type: `str`
2117
- Default: `"utf-8"`
2218

2319
Sets the character encoding to be used when parsing commit messages. [Read more][encoding]
20+
21+
## `retry_after_failure`
22+
23+
- Type: `bool`
24+
- Default: `False`
25+
26+
Automatically retry failed commit when running `cz commit`. [Read more][retry_after_failure]
27+

docs/config/option.md

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,37 +19,18 @@ Current version. Example: `"0.1.2"`. Required if you use `version_provider = "co
1919
- Type: `list`
2020
- Default: `[]`
2121

22-
Style for the prompts (It will merge this value with default style.) [See More (Styling your prompts with your favorite colors)][additional-features]
22+
Style for the prompts (It will merge this value with default style.) See [Styling your prompts with your favorite colors](https://github.com/tmbo/questionary#additional-features) for more details.
2323

2424
### `customize`
2525

2626
- Type: `dict`
2727
- Default: `None`
2828

29-
**This is only supported when config through `toml`.** Custom rules for committing and bumping. [Read more][customization]
29+
**This is only supported when config through `toml`.** Custom rules for committing and bumping. See [customization](../customization.md) for more details.
3030

3131
### `use_shortcuts`
3232

3333
- Type: `bool`
3434
- Default: `False`
3535

36-
If enabled, Commitizen will show keyboard shortcuts when selecting from a list. Define a `key` for each of your choices to set the key. [Read more][shortcuts]
37-
38-
39-
[tag_format]: ../commands/bump.md#tag_format
40-
[bump_message]: ../commands/bump.md#bump_message
41-
[major-version-zero]: ../commands/bump.md#-major-version-zero
42-
[prerelease-offset]: ../commands/bump.md#prerelease_offset
43-
[retry_after_failure]: ../commands/commit.md#retry
44-
[allow_abort]: ../commands/check.md#allow-abort
45-
[version-scheme]: ../commands/bump.md#version-schemes-version-scheme
46-
[pre_bump_hooks]: ../commands/bump.md#pre_bump_hooks
47-
[post_bump_hooks]: ../commands/bump.md#post_bump_hooks
48-
[allowed_prefixes]: ../commands/check.md#allowed-prefixes
49-
[additional-features]: https://github.com/tmbo/questionary#additional-features
50-
[customization]: ../customization.md
51-
[shortcuts]: ../customization.md#shortcut-keys
52-
[template-customization]: ../customization.md#customizing-the-changelog-template
53-
[annotated-tags-vs-lightweight]: https://stackoverflow.com/a/11514139/2047185
54-
[encoding]: ../tutorials/writing_commits.md#writing-commits
55-
[writing_commits]: ../tutorials/writing_commits.md#conventional-commits
36+
If enabled, Commitizen will show keyboard shortcuts when selecting from a list. Define a `key` for each of your choices to set the key. See [shortcut keys](../customization.md#shortcut-keys) for more details.

docs/config/version_provider.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Version Providers
22

3-
Version providers are the mechanism by which Commitizen reads and writes version information in your project. They abstract away the details of where and how version numbers are stored, allowing Commitizen to work seamlessly with different project types and package management systems.
3+
Version providers are the mechanism by which Commitizen reads and writes version information in your project.
4+
5+
They abstract away the details of where and how version numbers are stored, allowing Commitizen to work seamlessly with different project types and package management systems.
46

57
## Overview
68

7-
By default, Commitizen uses the `commitizen` provider, which stores the version in your Commitizen configuration file. However, you can configure Commitizen to use any available provider that matches your project's setup. This is particularly useful when you want Commitizen to manage versions in the same location as your package manager (e.g., `package.json` for Node.js projects, `pyproject.toml` for Python projects).
9+
By default, Commitizen uses the `commitizen` provider, which stores the version in your Commitizen configuration file.
10+
However, you can configure Commitizen to use any available provider that matches your project's setup.
11+
This is particularly useful when you want Commitizen to manage versions in the same location as your package manager (e.g., `package.json` for Node.js projects, `pyproject.toml` for Python projects).
812

913
## Built-in Providers
1014

0 commit comments

Comments
 (0)