Skip to content

Commit 5593d33

Browse files
committed
Deploying to gh-pages from @ 9e6830c 🚀
1 parent 4d6df6d commit 5593d33

File tree

3 files changed

+147
-78
lines changed

3 files changed

+147
-78
lines changed

config/index.html

Lines changed: 146 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,137 +1779,206 @@
17791779
<h1 id="configuration">Configuration<a class="headerlink" href="#configuration" title="Permanent link">&para;</a></h1>
17801780
<h2 id="settings">Settings<a class="headerlink" href="#settings" title="Permanent link">&para;</a></h2>
17811781
<h3 id="name"><code>name</code><a class="headerlink" href="#name" title="Permanent link">&para;</a></h3>
1782-
<p>Type: <code>str</code></p>
1783-
<p>Default: <code>"cz_conventional_commits"</code></p>
1784-
<p>Name of the committing rules to use</p>
1782+
<ul>
1783+
<li>Type: <code>str</code></li>
1784+
<li>Default: <code>"cz_conventional_commits"</code></li>
1785+
</ul>
1786+
<p>Name of the committing rules to use.</p>
17851787
<h3 id="version"><code>version</code><a class="headerlink" href="#version" title="Permanent link">&para;</a></h3>
1786-
<p>Type: <code>str</code></p>
1787-
<p>Default: <code>None</code></p>
1788-
<p>Current version. Example: "0.1.2". Required if you use <code>version_provider = "commitizen"</code>.</p>
1788+
<ul>
1789+
<li>Type: <code>str</code></li>
1790+
<li>Default: <code>None</code></li>
1791+
</ul>
1792+
<p>Current version. Example: <code>"0.1.2"</code>. Required if you use <code>version_provider = "commitizen"</code>.</p>
17891793
<h3 id="version_files"><code>version_files</code><a class="headerlink" href="#version_files" title="Permanent link">&para;</a></h3>
1790-
<p>Type: <code>list</code></p>
1791-
<p>Default: <code>[ ]</code></p>
1794+
<ul>
1795+
<li>Type: <code>list</code></li>
1796+
<li>Default: <code>[]</code></li>
1797+
</ul>
17921798
<p>Files (or glob patterns) where the version will be updated. A pattern to match a line, can also be specified, separated by <code>:</code> <a href="../commands/bump/#version_files">Read more</a></p>
17931799
<h3 id="version_provider"><code>version_provider</code><a class="headerlink" href="#version_provider" title="Permanent link">&para;</a></h3>
1794-
<p>Type: <code>str</code></p>
1795-
<p>Default: <code>commitizen</code></p>
1796-
<p>Version provider used to read and write version <a href="#version-providers">Read more</a></p>
1800+
<ul>
1801+
<li>Type: <code>str</code></li>
1802+
<li>Default: <code>commitizen</code></li>
1803+
</ul>
1804+
<p>Version provider used to read and write version. <a href="#version-providers">Read more</a></p>
17971805
<h3 id="version_scheme"><code>version_scheme</code><a class="headerlink" href="#version_scheme" title="Permanent link">&para;</a></h3>
1798-
<p>Type: <code>str</code></p>
1799-
<p>Default: <code>pep440</code></p>
1800-
<p>Select a version scheme from the following options [<code>pep440</code>, <code>semver</code>, <code>semver2</code>].
1801-
Useful for non-python projects. <a href="../commands/bump/#-version-scheme">Read more</a></p>
1806+
<ul>
1807+
<li>Type: <code>str</code></li>
1808+
<li>Default: <code>pep440</code></li>
1809+
</ul>
1810+
<p>Select a version scheme from the following options:</p>
1811+
<ul>
1812+
<li><code>pep440</code></li>
1813+
<li><code>semver</code></li>
1814+
<li><code>semver2</code></li>
1815+
</ul>
1816+
<p>Useful for non-python projects. <a href="../commands/bump/#-version-scheme">Read more</a></p>
18021817
<h3 id="tag_format"><code>tag_format</code><a class="headerlink" href="#tag_format" title="Permanent link">&para;</a></h3>
1803-
<p>Type: <code>str</code></p>
1804-
<p>Default: <code>$version</code></p>
1818+
<ul>
1819+
<li>Type: <code>str</code></li>
1820+
<li>Default: <code>$version</code></li>
1821+
</ul>
18051822
<p>Format for the git tag, useful for old projects, that use a convention like <code>"v1.2.1"</code>. <a href="../commands/bump/#tag_format">Read more</a></p>
18061823
<h3 id="legacy_tag_formats"><code>legacy_tag_formats</code><a class="headerlink" href="#legacy_tag_formats" title="Permanent link">&para;</a></h3>
1807-
<p>Type: <code>list</code></p>
1808-
<p>Default: <code>[ ]</code></p>
1824+
<ul>
1825+
<li>Type: <code>list</code></li>
1826+
<li>Default: <code>[]</code></li>
1827+
</ul>
18091828
<p>Legacy git tag formats, useful for old projects that changed tag format.
18101829
Tags matching those formats will be recognized as version tags and be included in the changelog.
18111830
Each entry uses the syntax as <a href="#tag_format"><code>tag_format</code></a>. <a href="../commands/bump/#tag_format">Read more</a></p>
18121831
<h3 id="ignored_tag_formats"><code>ignored_tag_formats</code><a class="headerlink" href="#ignored_tag_formats" title="Permanent link">&para;</a></h3>
1813-
<p>Type: <code>list</code></p>
1814-
<p>Default: <code>[ ]</code></p>
1832+
<ul>
1833+
<li>Type: <code>list</code></li>
1834+
<li>Default: <code>[]</code></li>
1835+
</ul>
18151836
<p>Tags matching those formats will be totally ignored and won't raise a warning.
18161837
Each entry uses the syntax as <a href="#tag_format"><code>tag_format</code></a> with the addition of <code>*</code>
18171838
that will match everything (non-greedy). <a href="../commands/bump/#tag_format">Read more</a></p>
18181839
<h3 id="update_changelog_on_bump"><code>update_changelog_on_bump</code><a class="headerlink" href="#update_changelog_on_bump" title="Permanent link">&para;</a></h3>
1819-
<p>Type: <code>bool</code></p>
1820-
<p>Default: <code>false</code></p>
1821-
<p>Create changelog when running <code>cz bump</code></p>
1840+
<ul>
1841+
<li>Type: <code>bool</code></li>
1842+
<li>Default: <code>False</code></li>
1843+
</ul>
1844+
<p>Create changelog when running <code>cz bump</code>.</p>
18221845
<h3 id="gpg_sign"><code>gpg_sign</code><a class="headerlink" href="#gpg_sign" title="Permanent link">&para;</a></h3>
1823-
<p>Type: <code>bool</code></p>
1824-
<p>Default: <code>false</code></p>
1846+
<ul>
1847+
<li>Type: <code>bool</code></li>
1848+
<li>Default: <code>False</code></li>
1849+
</ul>
18251850
<p>Use gpg signed tags instead of lightweight tags.</p>
18261851
<h3 id="annotated_tag"><code>annotated_tag</code><a class="headerlink" href="#annotated_tag" title="Permanent link">&para;</a></h3>
1827-
<p>Type: <code>bool</code></p>
1828-
<p>Default: <code>false</code></p>
1852+
<ul>
1853+
<li>Type: <code>bool</code></li>
1854+
<li>Default: <code>False</code></li>
1855+
</ul>
18291856
<p>Use annotated tags instead of lightweight tags. <a href="https://stackoverflow.com/a/11514139/2047185">See difference</a></p>
18301857
<h3 id="bump_message"><code>bump_message</code><a class="headerlink" href="#bump_message" title="Permanent link">&para;</a></h3>
1831-
<p>Type: <code>str</code></p>
1832-
<p>Default: <code>None</code></p>
1833-
<p>Create custom commit message, useful to skip CI. <a href="../commands/bump/#bump_message">Read more</a></p>
1858+
<ul>
1859+
<li>Type: <code>str</code></li>
1860+
<li>Default: <code>None</code></li>
1861+
</ul>
1862+
<p>Create custom commit message. Useful to skip CI. <a href="../commands/bump/#bump_message">Read more</a></p>
18341863
<h3 id="retry_after_failure"><code>retry_after_failure</code><a class="headerlink" href="#retry_after_failure" title="Permanent link">&para;</a></h3>
1835-
<p>Type: <code>bool</code></p>
1836-
<p>Default: <code>false</code></p>
1864+
<ul>
1865+
<li>Type: <code>bool</code></li>
1866+
<li>Default: <code>False</code></li>
1867+
</ul>
18371868
<p>Automatically retry failed commit when running <code>cz commit</code>. <a href="../commands/commit/#retry">Read more</a></p>
18381869
<h3 id="allow_abort"><code>allow_abort</code><a class="headerlink" href="#allow_abort" title="Permanent link">&para;</a></h3>
1839-
<p>Type: <code>bool</code></p>
1840-
<p>Default: <code>false</code></p>
1841-
<p>Disallow empty commit messages, useful in CI. <a href="../commands/check/#allow-abort">Read more</a></p>
1870+
<ul>
1871+
<li>Type: <code>bool</code></li>
1872+
<li>Default: <code>False</code></li>
1873+
</ul>
1874+
<p>Disallow empty commit messages. Useful in CI. <a href="../commands/check/#allow-abort">Read more</a></p>
18421875
<h3 id="allowed_prefixes"><code>allowed_prefixes</code><a class="headerlink" href="#allowed_prefixes" title="Permanent link">&para;</a></h3>
1843-
<p>Type: <code>list</code>
1844-
Default: <code>[ "Merge", "Revert", "Pull request", "fixup!", "squash!"]</code>
1845-
Allow some prefixes and do not try to match the regex when checking the message <a href="../commands/check/#allowed-prefixes">Read more</a></p>
1876+
<ul>
1877+
<li>Type: <code>list</code></li>
1878+
<li>Default: <code>["Merge", "Revert", "Pull request", "fixup!", "squash!"]</code></li>
1879+
</ul>
1880+
<p>List of prefixes that commitizen ignores when verifying messages. <a href="../commands/check/#allowed-prefixes">Read more</a></p>
18461881
<h3 id="changelog_file"><code>changelog_file</code><a class="headerlink" href="#changelog_file" title="Permanent link">&para;</a></h3>
1847-
<p>Type: <code>str</code></p>
1848-
<p>Default: <code>CHANGELOG.md</code></p>
1882+
<ul>
1883+
<li>Type: <code>str</code></li>
1884+
<li>Default: <code>CHANGELOG.md</code></li>
1885+
</ul>
18491886
<p>Filename of exported changelog</p>
18501887
<h3 id="changelog_format"><code>changelog_format</code><a class="headerlink" href="#changelog_format" title="Permanent link">&para;</a></h3>
1851-
<p>Type: <code>str</code></p>
1852-
<p>Default: None</p>
1853-
<p>Format used to parse and generate the changelog, If not specified, guessed from <a href="#changelog_file"><code>changelog_file</code></a>.</p>
1888+
<ul>
1889+
<li>Type: <code>str</code></li>
1890+
<li>Default: <code>None</code></li>
1891+
</ul>
1892+
<p>Format used to parse and generate the changelog. If not specified, guessed from <a href="#changelog_file"><code>changelog_file</code></a>.</p>
18541893
<h3 id="changelog_incremental"><code>changelog_incremental</code><a class="headerlink" href="#changelog_incremental" title="Permanent link">&para;</a></h3>
1855-
<p>Type: <code>bool</code></p>
1856-
<p>Default: <code>false</code></p>
1857-
<p>Update changelog with the missing versions. This is good if you don't want to replace previous versions in the file. Note: when doing <code>cz bump --changelog</code> this is automatically set to <code>true</code></p>
1894+
<ul>
1895+
<li>Type: <code>bool</code></li>
1896+
<li>Default: <code>False</code></li>
1897+
</ul>
1898+
<p>Update changelog with the missing versions. This is good if you don't want to replace previous versions in the file.</p>
1899+
<div class="admonition note">
1900+
<p class="admonition-title">Note</p>
1901+
<p>When doing <code>cz bump --changelog</code> this is automatically set to <code>True</code></p>
1902+
</div>
18581903
<h3 id="changelog_start_rev"><code>changelog_start_rev</code><a class="headerlink" href="#changelog_start_rev" title="Permanent link">&para;</a></h3>
1859-
<p>Type: <code>str</code></p>
1860-
<p>Default: <code>None</code></p>
1904+
<ul>
1905+
<li>Type: <code>str</code></li>
1906+
<li>Default: <code>None</code></li>
1907+
</ul>
18611908
<p>Start from a given git rev to generate the changelog</p>
18621909
<h3 id="changelog_merge_prerelease"><code>changelog_merge_prerelease</code><a class="headerlink" href="#changelog_merge_prerelease" title="Permanent link">&para;</a></h3>
1863-
<p>Type: <code>bool</code></p>
1864-
<p>Default: <code>false</code></p>
1910+
<ul>
1911+
<li>Type: <code>bool</code></li>
1912+
<li>Default: <code>False</code></li>
1913+
</ul>
18651914
<p>Collect all changes of prerelease versions into the next non-prerelease version when creating the changelog.</p>
18661915
<h3 id="style"><code>style</code><a class="headerlink" href="#style" title="Permanent link">&para;</a></h3>
1867-
<p>Type: <code>list</code></p>
1868-
<p>see above</p>
1916+
<ul>
1917+
<li>Type: <code>list</code></li>
1918+
<li>Default: <code>[]</code></li>
1919+
</ul>
18691920
<p>Style for the prompts (It will merge this value with default style.) <a href="https://github.com/tmbo/questionary#additional-features">See More (Styling your prompts with your favorite colors)</a></p>
18701921
<h3 id="customize"><code>customize</code><a class="headerlink" href="#customize" title="Permanent link">&para;</a></h3>
1871-
<p>Type: <code>dict</code></p>
1872-
<p>Default: <code>None</code></p>
1922+
<ul>
1923+
<li>Type: <code>dict</code></li>
1924+
<li>Default: <code>None</code></li>
1925+
</ul>
18731926
<p><strong>This is only supported when config through <code>toml</code>.</strong> Custom rules for committing and bumping. <a href="../customization/">Read more</a></p>
18741927
<h3 id="use_shortcuts"><code>use_shortcuts</code><a class="headerlink" href="#use_shortcuts" title="Permanent link">&para;</a></h3>
1875-
<p>Type: <code>bool</code></p>
1876-
<p>Default: <code>false</code></p>
1928+
<ul>
1929+
<li>Type: <code>bool</code></li>
1930+
<li>Default: <code>False</code></li>
1931+
</ul>
18771932
<p>If enabled, Commitizen will show keyboard shortcuts when selecting from a list. Define a <code>key</code> for each of your choices to set the key. <a href="../customization/#shortcut-keys">Read more</a></p>
18781933
<h3 id="major_version_zero"><code>major_version_zero</code><a class="headerlink" href="#major_version_zero" title="Permanent link">&para;</a></h3>
1879-
<p>Type: <code>bool</code></p>
1880-
<p>Default: <code>false</code></p>
1881-
<p>When true, breaking changes on a <code>0.x</code> will remain as a <code>0.x</code> version. On <code>false</code>, a breaking change will bump a <code>0.x</code> version to <code>1.0</code>. <a href="../commands/bump/#-major-version-zero">Read more</a></p>
1934+
<ul>
1935+
<li>Type: <code>bool</code></li>
1936+
<li>Default: <code>False</code></li>
1937+
</ul>
1938+
<p>If enabled, breaking changes on a <code>0.x</code> will remain as a <code>0.x</code> version. Otherwise, a breaking change will bump a <code>0.x</code> version to <code>1.0</code>. <a href="../commands/bump/#-major-version-zero">Read more</a></p>
18821939
<h3 id="prerelease_offset"><code>prerelease_offset</code><a class="headerlink" href="#prerelease_offset" title="Permanent link">&para;</a></h3>
1883-
<p>Type: <code>int</code></p>
1884-
<p>Default: <code>0</code></p>
1885-
<p>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. <a href="../commands/bump/#prerelease_offset">Read more</a></p>
1940+
<ul>
1941+
<li>Type: <code>int</code></li>
1942+
<li>Default: <code>0</code></li>
1943+
</ul>
1944+
<p>In some circumstances, a prerelease cannot start with <code>0</code>-for example, in embedded projects where individual characters are encoded as bytes. You can specify an offset from which to start counting. <a href="../commands/bump/#prerelease_offset">Read more</a></p>
18861945
<h3 id="pre_bump_hooks"><code>pre_bump_hooks</code><a class="headerlink" href="#pre_bump_hooks" title="Permanent link">&para;</a></h3>
1887-
<p>Type: <code>list[str]</code></p>
1888-
<p>Default: <code>[]</code></p>
1946+
<ul>
1947+
<li>Type: <code>list[str]</code></li>
1948+
<li>Default: <code>[]</code></li>
1949+
</ul>
18891950
<p>Calls the hook scripts <strong>before</strong> bumping version. <a href="../commands/bump/#pre_bump_hooks">Read more</a></p>
18901951
<h3 id="post_bump_hooks"><code>post_bump_hooks</code><a class="headerlink" href="#post_bump_hooks" title="Permanent link">&para;</a></h3>
1891-
<p>Type: <code>list[str]</code></p>
1892-
<p>Default: <code>[]</code></p>
1952+
<ul>
1953+
<li>Type: <code>list[str]</code></li>
1954+
<li>Default: <code>[]</code></li>
1955+
</ul>
18931956
<p>Calls the hook scripts <strong>after</strong> bumping the version. <a href="../commands/bump/#post_bump_hooks">Read more</a></p>
18941957
<h3 id="encoding"><code>encoding</code><a class="headerlink" href="#encoding" title="Permanent link">&para;</a></h3>
1895-
<p>Type: <code>str</code></p>
1896-
<p>Default: <code>utf-8</code></p>
1958+
<ul>
1959+
<li>Type: <code>str</code></li>
1960+
<li>Default: <code>"utf-8"</code></li>
1961+
</ul>
18971962
<p>Sets the character encoding to be used when parsing commit messages. <a href="../tutorials/writing_commits/#writing-commits">Read more</a></p>
18981963
<h3 id="template"><code>template</code><a class="headerlink" href="#template" title="Permanent link">&para;</a></h3>
1899-
<p>Type: <code>str</code></p>
1900-
<p>Default: <code>None</code> (provided by plugin)</p>
1964+
<ul>
1965+
<li>Type: <code>str</code></li>
1966+
<li>Default: <code>None</code> (provided by plugin)</li>
1967+
</ul>
19011968
<p>Provide custom changelog jinja template path relative to the current working directory. <a href="../customization/#customizing-the-changelog-template">Read more</a></p>
19021969
<h3 id="extras"><code>extras</code><a class="headerlink" href="#extras" title="Permanent link">&para;</a></h3>
1903-
<p>Type: <code>dict[str, Any]</code></p>
1904-
<p>Default: <code>{}</code></p>
1970+
<ul>
1971+
<li>Type: <code>dict[str, Any]</code></li>
1972+
<li>Default: <code>{}</code></li>
1973+
</ul>
19051974
<p>Provide extra variables to the changelog template. <a href="../customization/#customizing-the-changelog-template">Read more</a></p>
19061975
<h2 id="configuration-file">Configuration file<a class="headerlink" href="#configuration-file" title="Permanent link">&para;</a></h2>
19071976
<h3 id="pyprojecttoml-cztoml-or-cztoml"><code>pyproject.toml</code>, <code>.cz.toml</code> or <code>cz.toml</code><a class="headerlink" href="#pyprojecttoml-cztoml-or-cztoml" title="Permanent link">&para;</a></h3>
19081977
<p>Default and recommended configuration format for a project.
19091978
For a <strong>python</strong> project, we recommend adding an entry to your <code>pyproject.toml</code>.
19101979
You can also create a <code>.cz.toml</code> or <code>cz.toml</code> file at the root of your project folder.</p>
19111980
<p>Example configuration:</p>
1912-
<div class="highlight"><pre><span></span><code><span class="k">[tool.commitizen]</span>
1981+
<div class="highlight"><span class="filename">.cz.toml</span><pre><span></span><code><span class="k">[tool.commitizen]</span>
19131982
<span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">&quot;cz_conventional_commits&quot;</span>
19141983
<span class="n">version</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">&quot;0.1.0&quot;</span>
19151984
<span class="n">version_files</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">[</span>
@@ -1932,7 +2001,7 @@ <h3 id="pyprojecttoml-cztoml-or-cztoml"><code>pyproject.toml</code>, <code>.cz.t
19322001
</code></pre></div>
19332002
<h3 id="czjson-or-czjson"><code>.cz.json</code> or <code>cz.json</code><a class="headerlink" href="#czjson-or-czjson" title="Permanent link">&para;</a></h3>
19342003
<p>Commitizen has support for JSON configuration. Recommended for <code>NodeJS</code> projects.</p>
1935-
<div class="highlight"><pre><span></span><code><span class="p">{</span>
2004+
<div class="highlight"><span class="filename">.cz.json</span><pre><span></span><code><span class="p">{</span>
19362005
<span class="w"> </span><span class="nt">&quot;commitizen&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
19372006
<span class="w"> </span><span class="nt">&quot;name&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;cz_conventional_commits&quot;</span><span class="p">,</span>
19382007
<span class="w"> </span><span class="nt">&quot;version&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;0.1.0&quot;</span><span class="p">,</span>
@@ -1954,7 +2023,7 @@ <h3 id="czjson-or-czjson"><code>.cz.json</code> or <code>cz.json</code><a class=
19542023
</code></pre></div>
19552024
<h3 id="czyaml-or-czyaml"><code>.cz.yaml</code> or <code>cz.yaml</code><a class="headerlink" href="#czyaml-or-czyaml" title="Permanent link">&para;</a></h3>
19562025
<p>YAML configuration is supported by Commitizen. Recommended for <code>Go</code>, <code>ansible</code>, or even <code>helm</code> charts projects.</p>
1957-
<div class="highlight"><pre><span></span><code><span class="nt">commitizen</span><span class="p">:</span>
2026+
<div class="highlight"><span class="filename">.cz.yaml</span><pre><span></span><code><span class="nt">commitizen</span><span class="p">:</span>
19582027
<span class="w"> </span><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">cz_conventional_commits</span>
19592028
<span class="w"> </span><span class="nt">version</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">0.1.0</span>
19602029
<span class="w"> </span><span class="nt">version_files</span><span class="p">:</span>
@@ -2039,7 +2108,7 @@ <h2 id="version-providers">Version providers<a class="headerlink" href="#version
20392108
</code></pre></div>
20402109
<h3 id="custom-version-provider">Custom version provider<a class="headerlink" href="#custom-version-provider" title="Permanent link">&para;</a></h3>
20412110
<p>You can add your own version provider by extending <code>VersionProvider</code> and exposing it on the <code>commitizen.provider</code> entrypoint.</p>
2042-
<p>Here is a quick example of a <code>my-provider</code> provider reading and writing version in a <code>VERSION</code> file.</p>
2111+
<p>Here is a quick example of a provider <code>my_provider.py</code>, reading and writing version in a <code>VERSION</code> file.</p>
20432112
<div class="highlight"><span class="filename">my_provider.py</span><pre><span></span><code><span class="kn">from</span><span class="w"> </span><span class="nn">pathlib</span><span class="w"> </span><span class="kn">import</span> <span class="n">Path</span>
20442113
<span class="kn">from</span><span class="w"> </span><span class="nn">commitizen.providers</span><span class="w"> </span><span class="kn">import</span> <span class="n">VersionProvider</span>
20452114

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

sitemap.xml.gz

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)