Skip to content

Commit cb589d8

Browse files
committed
docs: fix link warnings and minor grammar issues
1 parent 7c589be commit cb589d8

File tree

7 files changed

+26
-26
lines changed

7 files changed

+26
-26
lines changed

docs/commands/bump.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ cz bump --changelog
7272

7373
The bump is a pre-release bump, meaning that in addition to a possible version bump the new version receives a
7474
pre-release segment compatible with the bump’s version scheme, where the segment consist of a _phase_ and a
75-
non-negative number. Supported options for `--prerelease` are the following phase names `alpha`, `beta`, or
75+
non-negative number. Supported options for `--prerelease` are the following phase names `alpha`, `beta`, or
7676
`rc` (release candidate). For more details, refer to the
7777
[Python Packaging User Guide](https://packaging.python.org/en/latest/specifications/version-specifiers/#pre-releases).
7878

@@ -387,7 +387,7 @@ to skip and why.
387387
Remember to document somewhere this, because you'll forget.
388388

389389
For example if the system raises a `NoneIncrementExit` error, you look it up
390-
on the list and then you can use the exit code:
390+
on the list, and then you can use the exit code:
391391

392392
```sh
393393
cz -nr 21 bump
@@ -403,7 +403,7 @@ These are used in:
403403

404404
- `cz bump`: Find previous release tag (exact match) and generate new tag.
405405
- Find previous release tags in `cz changelog`.
406-
- If `--incremental`: Using latest version found in the changelog, scan existing Git tags with 89\% similarity match.
406+
- If `--incremental`: Using the latest version found in the changelog, scan existing Git tags with 89\% similarity match.
407407
- `--rev-range` is converted to Git tag names with `tag_format` before searching Git history.
408408
- If the `scm` `version_provider` is used, it uses different regexes to find the previous version tags:
409409
- If `tag_format` is set to `$version` (default): `VersionProtocol.parser` (allows `v` prefix)
@@ -477,7 +477,7 @@ in a line containing the `version` substring.
477477

478478
Template used to specify the commit message generated when bumping.
479479

480-
defaults to: `bump: version $current_version → $new_version`
480+
Defaults to: `bump: version $current_version → $new_version`
481481

482482
| Variable | Description |
483483
| ------------------ | ----------------------------------- |
@@ -499,7 +499,7 @@ bump_message = "release $current_version → $new_version [skip-ci]"
499499

500500
When set to `true` the changelog is always updated incrementally when running `cz bump`, so the user does not have to provide the `--changelog` flag every time.
501501

502-
defaults to: `false`
502+
Defaults to: `false`
503503

504504
```toml
505505
[tool.commitizen]

docs/config.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Default: `[ ]`
5959

6060
Legacy git tag formats, useful for old projects that changed tag format.
6161
Tags matching those formats will be recognized as version tags and be included in the changelog.
62-
Each entry use the the syntax as [`tag_format`](#tag_format). [Read more][tag_format]
62+
Each entry uses the syntax as [`tag_format`](#tag_format). [Read more][tag_format]
6363

6464
### `ignored_tag_formats`
6565

@@ -68,7 +68,7 @@ Type: `list`
6868
Default: `[ ]`
6969

7070
Tags matching those formats will be totally ignored and won't raise a warning.
71-
Each entry use the the syntax as [`tag_format`](#tag_format) with the addition of `*`
71+
Each entry uses the syntax as [`tag_format`](#tag_format) with the addition of `*`
7272
that will match everything (non-greedy). [Read more][tag_format]
7373

7474
### `update_changelog_on_bump`
@@ -101,7 +101,7 @@ Type: `str`
101101

102102
Default: `None`
103103

104-
Create custom commit message, useful to skip ci. [Read more][bump_message]
104+
Create custom commit message, useful to skip CI. [Read more][bump_message]
105105

106106
### `retry_after_failure`
107107

@@ -117,7 +117,7 @@ Type: `bool`
117117

118118
Default: `false`
119119

120-
Disallow empty commit messages, useful in ci. [Read more][allow_abort]
120+
Disallow empty commit messages, useful in CI. [Read more][allow_abort]
121121

122122
### `allowed_prefixes`
123123

@@ -195,15 +195,15 @@ Type: `bool`
195195

196196
Default: `false`
197197

198-
When true, breaking changes on a `0.x` will remain as a `0.x` version. On `false`, a breaking change will bump a `0.x` version to `1.0`. [major-version-zero]
198+
When true, breaking changes on a `0.x` will remain as a `0.x` version. On `false`, a breaking change will bump a `0.x` version to `1.0`. [Read more][major-version-zero]
199199

200200
### `prerelease_offset`
201201

202202
Type: `int`
203203

204204
Default: `0`
205205

206-
In some circumstances, a prerelease cannot start with a 0, e.g. in an embedded project individual characters are encoded as bytes. This can be done by specifying an offset from which to start counting. [prerelease-offset]
206+
In some circumstances, a prerelease cannot start with a 0, e.g. in an embedded project individual characters are encoded as bytes. This can be done by specifying an offset from which to start counting. [Read more][prerelease-offset]
207207

208208
### `pre_bump_hooks`
209209

@@ -247,7 +247,7 @@ Provide extra variables to the changelog template. [Read more][template-customiz
247247

248248
## Configuration file
249249

250-
### pyproject.toml, .cz.toml or cz.toml
250+
### `pyproject.toml`, `.cz.toml` or `cz.toml`
251251

252252
Default and recommended configuration format for a project.
253253
For a **python** project, we recommend adding an entry to your `pyproject.toml`.
@@ -278,7 +278,7 @@ style = [
278278
]
279279
```
280280

281-
### .cz.json or cz.json
281+
### `.cz.json` or `cz.json`
282282

283283
Commitizen has support for JSON configuration. Recommended for `NodeJS` projects.
284284

@@ -304,7 +304,7 @@ Commitizen has support for JSON configuration. Recommended for `NodeJS` projects
304304
}
305305
```
306306

307-
### .cz.yaml or cz.yaml
307+
### `.cz.yaml` or `cz.yaml`
308308

309309
YAML configuration is supported by Commitizen. Recommended for `Go`, `ansible`, or even `helm` charts projects.
310310

@@ -358,7 +358,7 @@ Commitizen provides some version providers for some well known formats:
358358
| `composer` | Get and set version from `composer.json` `project.version` field |
359359

360360
!!! note
361-
The `scm` provider is meant to be used with `setuptools-scm` or any packager `*-scm` plugin.
361+
The `scm` provider is meant to be used with `setuptools-scm` or any packager `*-scm` plugin.
362362

363363
An example in your `.cz.toml` or `cz.toml` would look like this:
364364

@@ -408,10 +408,10 @@ setup(
408408
[tag_format]: commands/bump.md#tag_format
409409
[bump_message]: commands/bump.md#bump_message
410410
[major-version-zero]: commands/bump.md#-major-version-zero
411-
[prerelease-offset]: commands/bump.md#-prerelease_offset
411+
[prerelease-offset]: commands/bump.md#prerelease_offset
412412
[retry_after_failure]: commands/commit.md#retry
413413
[allow_abort]: commands/check.md#allow-abort
414-
[version-scheme]: commands/bump.md#version-scheme
414+
[version-scheme]: commands/bump.md#-version-scheme
415415
[pre_bump_hooks]: commands/bump.md#pre_bump_hooks
416416
[post_bump_hooks]: commands/bump.md#post_bump_hooks
417417
[allowed_prefixes]: commands/check.md#allowed-prefixes

docs/customization.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ Users can provide their own template from their current working directory (your
490490
- setting your template path as `template` configuration
491491
- giving your template path as `--template` parameter to `bump` and `changelog` commands
492492

493-
!!! Note
493+
!!! note
494494
The path is relative to the current working directory, aka your project root most of the time.
495495

496496
### Template variables
@@ -514,7 +514,7 @@ Each `Change` has the following fields:
514514
| author | `str` | The commit author name |
515515
| author_email | `str` | The commit author email |
516516

517-
!!! Note
517+
!!! note
518518
The field values depend on the customization class and/or the settings you provide
519519

520520
The `parents` field can be used to identify merge commits and generate a changelog based on those. Another use case

docs/tutorials/github_actions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ jobs:
4141
4242
Push to master and that's it.
4343
44-
### Creating a github release
44+
### Creating a GitHub release
4545
4646
You can modify the previous action.
4747
4848
Add the variable `changelog_increment_filename` in the `commitizen-action`, specifying
4949
where to output the content of the changelog for the newly created version.
5050

51-
And then add a step using a github action to create the release: `softprops/action-gh-release`
51+
And then add a step using a GitHub action to create the release: `softprops/action-gh-release`
5252

5353
The commitizen action creates an env variable called `REVISION`, containing the
5454
newly created version.

docs/tutorials/gitlab_ci.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ _Goal_: Bump a new version every time that a change occurs on the `master` branc
1212
4. For simplification, we store the software version in a file called `VERSION`. You can use any file that you want as `commitizen` supports it.
1313
5. The commit message executed automatically by the `CI` must include `[skip-ci]` in the message; otherwise, the process will generate a loop. You can define the message structure in [commitizen](../commands/bump.md) as well.
1414

15-
### Gitlab Configuration
15+
### GitLab Configuration
1616

17-
To be able to change files and push new changes with `Gitlab CI` runners, we need to have a `ssh` key and configure a git user.
17+
To be able to change files and push new changes with `GitLab CI` runners, we need to have a `ssh` key and configure a git user.
1818

1919
First, let's create a `ssh key`. The only requirement is to create it without a passphrase:
2020

docs/tutorials/jenkins_pipeline.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def useCz(String authorName = 'Jenkins CI Server', String authorEmail = 'your-je
4747
```
4848

4949
!!! warning
50-
Using jenkins pipeline with any git plugin may require many different configurations,
50+
Using jenkins pipeline with any git plugin may require many configurations,
5151
you'll have to tinker with it until your pipelines properly detects git events. Check your
5252
webhook in your git repository and check the "behaviors" and "build strategies" in
5353
your pipeline settings.

docs/tutorials/monorepo_guidance.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ In order to filter the correct commits for each component, you'll have to come u
5656
For example:
5757

5858
- Trigger the pipeline based on the changed path, which can have some downsides, as you'll rely on the developer not including files from other files
59-
- [github actions](https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore) uses `path`
59+
- [GitHub actions](https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore) uses `path`
6060
- [Jenkins](https://www.jenkins.io/doc/book/pipeline/syntax/#built-in-conditions) uses `changeset`
61-
- [Gitlab](https://docs.gitlab.com/ee/ci/yaml/#ruleschanges) uses `rules:changes`
61+
- [GitLab](https://docs.gitlab.com/ee/ci/yaml/#ruleschanges) uses `rules:changes`
6262
- Filter certain pattern of the commit message (recommended)
6363

6464

0 commit comments

Comments
 (0)