Skip to content

Commit 6ab9e3e

Browse files
committed
rename
1 parent 9e6b821 commit 6ab9e3e

File tree

8 files changed

+25
-29
lines changed

8 files changed

+25
-29
lines changed

docs/commands/init.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The `cz init` command helps you set up Commitizen in your project by creating a configuration file with your preferred settings.
1+
The `cz init` command helps you set up Commitizen in your project by creating a configuration_file with your preferred settings.
22

33
## Usage
44

@@ -20,10 +20,7 @@ When you run `cz init`, Commitizen will guide you through an interactive setup p
2020

2121
The initialization process will create a configuration file in your project root.
2222

23-
Choose the configuration file format based on your project type:
24-
25-
- Use `pyproject.toml` for Python projects
26-
- Use `.cz.toml`, `.cz.yaml`, `.cz.json`, etc. for other projects.
23+
See [Configuration File][configuration_file] for more details.
2724

2825
## Configuration Options
2926

@@ -48,6 +45,8 @@ During the initialization process, you'll be prompted to configure the following
4845
7. **Alpha Versioning**: Option to keep major version at 0 for alpha/beta software
4946
8. **Pre-commit Hooks**: Set up Git pre-commit hooks for automated commit message validation
5047

48+
See [Configuration Options][configuration_options] for more details.
49+
5150
## Example
5251

5352
```sh
@@ -61,6 +60,9 @@ cz init
6160

6261
After initialization, you can:
6362

64-
1. Start using `cz commit` to create conventional commits
65-
2. Use `cz bump` to manage versioning
66-
3. Configure additional settings in your project's configuration file
63+
1. Start using [`cz commit`](./commit.md) to create conventional commits
64+
2. Use [`cz bump`](./bump.md) to manage versioning
65+
3. Configure additional settings in your project's [configuration_file][configuration_file]
66+
67+
[configuration_file]: ../config/configuration_file.md
68+
[configuration_options]: ../config/option.md

docs/config/configuration_file.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ Commitizen uses configuration files to customize its behavior for your project.
44

55
## Creating a Configuration File
66

7-
You can create a configuration file manually, or use Commitizen's interactive init command:
8-
9-
```bash
10-
cz init
11-
```
12-
13-
This command will guide you through setting up your configuration file with the appropriate settings for your project.
7+
It is recommended to create a configuration file via our [`cz init`](../commands/init.md) command. This command will guide you through setting up your configuration file with the appropriate settings for your project.
148

159
## File Location and Search Order
1610

@@ -34,8 +28,8 @@ The first valid configuration file found will be used. If no configuration file
3428
Commitizen supports three configuration file formats:
3529

3630
- **TOML** (`.toml`) - Recommended for Python projects
37-
- **JSON** (`.json`) - Recommended for Node.js projects
38-
- **YAML** (`.yaml`) - Recommended for Go, Ansible, or Helm chart projects
31+
- **JSON** (`.json`)
32+
- **YAML** (`.yaml`)
3933

4034
All formats support the same configuration options. Choose the format that best fits your project's ecosystem.
4135

@@ -220,7 +214,7 @@ commitizen:
220214
221215
## Configuration Options
222216
223-
For a complete list of all available configuration options and their descriptions, see the [Configuration Settings](../config/settings.md) documentation.
217+
For a complete list of all available configuration options and their descriptions, see the [Configuration Settings](../config/option.md) documentation.
224218
225219
Key configuration categories include:
226220

docs/config/settings.md renamed to docs/config/option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Settings
1+
# Configuration Options
22

33
TODO: categorize the following settings into bump, commit, check, changelog, etc.
44

docs/customization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ commitizen:
184184

185185
#### Shortcut keys
186186

187-
When the [`use_shortcuts`](./config/settings.md#use_shortcuts) config option is enabled, Commitizen can show and use keyboard shortcuts to select items from lists directly.
187+
When the [`use_shortcuts`](./config/option.md#use_shortcuts) config option is enabled, Commitizen can show and use keyboard shortcuts to select items from lists directly.
188188
For example, when using the `cz_conventional_commits` Commitizen template, shortcut keys are shown when selecting the commit type. Unless otherwise defined, keyboard shortcuts will be numbered automatically.
189189
To specify keyboard shortcuts for your custom choices, provide the shortcut using the `key` parameter in dictionary form for each choice you would like to customize.
190190

@@ -524,6 +524,6 @@ by:
524524
- defining them in your configuration with the [`extras` settings][extras-config]
525525
- providing them on the command line with the `--extra/-e` parameter to `bump` and `changelog` commands
526526

527-
[template-config]: config/settings.md#template
528-
[extras-config]: config/settings.md#extras
527+
[template-config]: config/option.md#template
528+
[extras-config]: config/option.md#extras
529529
[changelog-des]: ./commands/changelog.md#description

docs/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ If you would like to learn more about both schemes, there are plenty of good res
132132

133133
## How to change the tag format ?
134134

135-
You can use the [`legacy_tag_formats`](config/settings.md#legacy_tag_formats) to list old tag formats.
135+
You can use the [`legacy_tag_formats`](config/option.md#legacy_tag_formats) to list old tag formats.
136136
New bumped tags will be in the new format but old ones will still work for:
137137
- changelog generation (full, incremental and version range)
138138
- bump new version computation (automatically guessed or increment given)
@@ -151,7 +151,7 @@ legacy_tag_formats = [
151151

152152
## How to avoid warnings for expected non-version tags
153153

154-
You can explicitly ignore them with [`ignored_tag_formats`](config/settings.md#ignored_tag_formats).
154+
You can explicitly ignore them with [`ignored_tag_formats`](config/option.md#ignored_tag_formats).
155155

156156
```toml
157157
tag_format = "v${version}"

docs/tutorials/tag_format.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ As a result, the tag generated on bump will have this format: `v1.0.0` and the v
4343
Both `$version` and `${version}` syntaxes are strictly equivalent. You can use the one you prefer.
4444

4545
See [the `version_scheme` section in `bump` command documentation](../commands/bump.md#version_scheme) for more details on version schemes and how to define your own.
46-
See [`tag_format`](../config/settings.md#tag_format) and [`version_scheme`](../config/settings.md#version_scheme) settings in [Configuration reference](../config/settings.md) for more details on these settings.
46+
See [`tag_format`](../config/option.md#tag_format) and [`version_scheme`](../config/option.md#version_scheme) settings in [Configuration reference](../config/option.md) for more details on these settings.
4747

4848
## Changing convention
4949

@@ -71,7 +71,7 @@ Your new tag will be in the form `component-${version}`.
7171
Now let's say you have some known tags you want to ignore, either because they are not versions, or because they are not versions of the component you are dealing with.
7272
As a consequence, you don't want them to trigger a warning because Commitizen detected an unknown tag format.
7373

74-
Then you can tell Commitizen about it using the [`ignored_tag_formats`](../config/settings.md#ignored_tag_formats) setting:
74+
Then you can tell Commitizen about it using the [`ignored_tag_formats`](../config/option.md#ignored_tag_formats) setting:
7575

7676
```yaml
7777
[tool.commitizen]

docs/tutorials/writing_commits.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ Emojis may be added as well (e.g., see [cz-emoji][cz_emoji]), which requires the
4747
[customization]: ../customization.md
4848
[conventional_commits]: https://www.conventionalcommits.org
4949
[cz_emoji]: https://commitizen-tools.github.io/commitizen/third-party-commitizen/#cz-emoji
50-
[configuration]: ../config/settings.md#encoding
51-
[breaking-change-config]: ../config/settings.md#breaking_change_exclamation_in_title
50+
[configuration]: ../config/option.md#encoding
51+
[breaking-change-config]: ../config/option.md#breaking_change_exclamation_in_title

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ nav:
4545
- Configuration:
4646
- Configuration File: "config/configuration_file.md"
4747
- Version Provider: "config/version_provider.md"
48-
- Settings: "config/settings.md"
48+
- Settings: "config/option.md"
4949
- Customization: "customization.md"
5050
- Tutorials:
5151
- Writing commits: "tutorials/writing_commits.md"

0 commit comments

Comments
 (0)