Skip to content

Commit 1b8c6b3

Browse files
committed
Converted documentation to use MkDocs
1 parent fcfaac7 commit 1b8c6b3

19 files changed

+236
-277
lines changed

.gitignore

-5
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ instance/
7878
# Scrapy stuff:
7979
.scrapy
8080

81-
# Sphinx documentation
82-
docs
83-
docsrc/_build/
84-
docsrc/_autosummary
85-
8681
# PyBuilder
8782
.pybuilder/
8883
target/

.pre-commit-config.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ repos:
2323
- id: check-symlinks
2424
- id: check-toml
2525
- id: check-yaml
26-
exclude: test.*
26+
exclude: |
27+
(?x)^(
28+
test.*|
29+
mkdocs.yml
30+
)$
2731
args: [--allow-multiple-documents]
2832
- id: debug-statements
2933
- id: end-of-file-fixer

README.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
> - Add better configuration validation using [Pydantic](https://docs.pydantic.dev)
1616
> - Make the code and tests easier to read and maintain
1717
18+
<!--start-->
1819

1920
## Overview
2021

@@ -31,12 +32,6 @@ Bump My Version's purpose is to:
3132
- Tagging releases
3233
- Reading version numbers from tags
3334

34-
35-
## Future Direction
36-
37-
- Switch having both the version part and files to change as arguments on the command line.
38-
- Allow for multiple tags, including one that moves for having a `v2` that always points to the latest version of version 2. [For example](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md#recommendations)
39-
4035
## Installation
4136

4237
You can download and install the latest version of this software from the Python package index (PyPI) as follows:
@@ -51,10 +46,6 @@ Please find the changelog here: [CHANGELOG.md](CHANGELOG.md)
5146

5247
## Usage for version incrementing
5348

54-
> **NOTE:**
55-
>
56-
> Throughout this document, you can use `bumpversion` or `bump-my-version` interchangeably.
57-
5849
There are two modes of operation: On the command line for single-file operation and using a configuration file (`pyproject.toml` or `.bumpversion.toml`) for more complex multi-file operations.
5950

6051
> **WARNING:**
@@ -161,3 +152,5 @@ workflow, as it is intended to be very versatile.
161152
## License
162153

163154
bump-my-version is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
155+
156+
<!--end-->

docsrc/LICENSE

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
```{include} ../LICENSE
2-
```
1+
{% include-markdown "../LICENSE" %}

docsrc/Makefile

-20
This file was deleted.
+1
Loading

docsrc/_static/css/custom.css

+34-6
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,54 @@
1616
margin: 0;
1717
}
1818

19-
dl.field-list {
19+
.field-list > dl {
20+
--gap: 1rem;
21+
--line-offset: calc(var(--gap) / 2);
22+
--line-thickness: 1px;
23+
--line-color: #e0e0e0;
24+
2025
display: grid;
2126
grid-template-columns: fit-content(30%) auto;
27+
grid-gap: var(--gap);
2228
margin-bottom: 1rem;
29+
overflow: hidden;
2330
}
2431

25-
dl.field-list > dt {
32+
.field-list > dl > dt {
33+
text-align: right;
2634
font-weight: bold;
2735
word-break: break-word;
28-
padding-left: 0.5em;
29-
padding-right: 5px;
36+
position: relative;
3037
}
3138

32-
dl.field-list > dd {
33-
padding-left: 0.5em;
39+
[dir=ltr] .field-list > dl > dd {
3440
margin-top: 0;
3541
margin-left: 0;
3642
margin-bottom: 0;
43+
position: relative;
44+
}
45+
46+
/* Pseudo Element Shared Styling */
47+
.field-list > dl > dt::before,
48+
.field-list > dl > dt::after,
49+
.field-list > dl > dd::before,
50+
.field-list > dl > dd::after {
51+
content: '';
52+
position: absolute;
53+
background-color: var(--line-color);
54+
z-index: 1;
3755
}
3856

57+
/* Row Borders */
58+
.field-list > dl > dt::after,
59+
.field-list > dl > dd::after {
60+
inline-size: 100vw;
61+
block-size: var(--line-thickness);
62+
inset-inline-start: 0;
63+
inset-block-start: calc(var(--line-offset) * -1);
64+
}
65+
66+
3967
figure {
4068
padding-bottom: .75rem;
4169
padding-top: .5rem;

docsrc/changelog.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
```{include} ../CHANGELOG.md
2-
```
1+
{% include-markdown "../CHANGELOG.md" %}

docsrc/conf.py

-100
This file was deleted.

docsrc/contributing.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
```{include} ../CONTRIBUTING.md
2-
```
1+
{% include-markdown "../CONTRIBUTING.md" rewrite-relative-urls=false %}

docsrc/index.md

+7-20
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
11
# Bump My Version
22

3-
```{toctree}
4-
---
5-
maxdepth: 2
6-
caption: Contents
7-
---
8-
Introduction <readme>
9-
usage
10-
tutorials/index
11-
howtos/index
12-
reference/index
13-
explanation/index
14-
CONTRIBUTING
15-
CHANGELOG
16-
```
17-
18-
## Indices and tables
19-
20-
* {ref}`genindex`
21-
* {ref}`modindex`
22-
* {ref}`search`
3+
{%
4+
include-markdown
5+
"../README.md"
6+
start="<!--start-->"
7+
end="<!--end-->"
8+
rewrite-relative-urls=false
9+
%}

docsrc/make.bat

-36
This file was deleted.

docsrc/readme.md

-2
This file was deleted.

docsrc/reference/cli.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Command-line Interface
2+
3+
4+
::: mkdocs-click
5+
:module: bumpversion.cli
6+
:command: cli
7+
:prog_name: bump-my-version
8+
:style: table

docsrc/reference/cli.rst

-6
This file was deleted.

0 commit comments

Comments
 (0)