Skip to content

Commit d66d34e

Browse files
authored
Merge pull request #167 from callowayproject/refactor-docs
Refactored the docs
2 parents 4a8fc13 + 2aa1011 commit d66d34e

37 files changed

+15
-16
lines changed
File renamed without changes.
File renamed without changes.

docsrc/LICENSE docs/LICENSE

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docsrc/explanation/mental-model.md docs/explanation/mental-model.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ A **version serialization format** is a list of format strings used to serialize
3434
### How a version spec is generated
3535

3636
<figure markdown="span" style="width: 50%; float: right;padding-left: .75rem">
37-
[![How a version spec is generated](../_static/creating-a-version-spec.svg)](../_static/creating-a-version-spec.svg)
37+
[![How a version spec is generated](../assets/creating-a-version-spec.svg)](../assets/creating-a-version-spec.svg)
3838
<figcaption>How a configuration file is used to generate a version spec.</figcaption>
3939
</figure>
4040

@@ -54,7 +54,7 @@ The _component dependency_ graph determines the order in which the _version comp
5454
### How a version is generated
5555

5656
<figure markdown="span" style="width: 50%; float: right;padding-left: .75rem">
57-
[![How a version is generated](../_static/creating-a-version.svg)](../_static/creating-a-version.svg)
57+
[![How a version is generated](../assets/creating-a-version.svg)](../assets/creating-a-version.svg)
5858
<figcaption>How a version spec is used to generate a version.</figcaption>
5959
</figure>
6060

@@ -84,7 +84,7 @@ The `serialize` method of the _version spec_ returns either the optimal serializ
8484

8585
::: card-container depth-0
8686
::: card-media
87-
[![How a version is serialized with values major=1, minor=2, and patch=3](../_static/serializing-a-version-1-2-3.svg)](../_static/serializing-a-version-1-2-3.svg)
87+
[![How a version is serialized with values major=1, minor=2, and patch=3](../assets/serializing-a-version-1-2-3.svg)](../assets/serializing-a-version-1-2-3.svg)
8888

8989
::: card-content
9090
No optional values
@@ -94,7 +94,7 @@ The `serialize` method of the _version spec_ returns either the optimal serializ
9494

9595
::: card-container depth-0
9696
::: card-media
97-
[![How a version is serialized with values major=1, minor=2, and patch=0](../_static/serializing-a-version-1-2-0.svg)](../_static/serializing-a-version-1-2-0.svg)
97+
[![How a version is serialized with values major=1, minor=2, and patch=0](../assets/serializing-a-version-1-2-0.svg)](../assets/serializing-a-version-1-2-0.svg)
9898
9999
::: card-content
100100
@@ -105,7 +105,7 @@ The `serialize` method of the _version spec_ returns either the optimal serializ
105105

106106
::: card-container depth-0
107107
::: card-media
108-
[![How a version is serialized with values major=1, minor=0, and patch=0](../_static/serializing-a-version-1-0-0.svg)](../_static/serializing-a-version-1-0-0.svg)
108+
[![How a version is serialized with values major=1, minor=0, and patch=0](../assets/serializing-a-version-1-0-0.svg)](../assets/serializing-a-version-1-0-0.svg)
109109

110110
::: card-content
111111
Two optional values
@@ -115,7 +115,7 @@ The `serialize` method of the _version spec_ returns either the optimal serializ
115115

116116
::: card-container depth-0
117117
::: card-media
118-
[![How a version is serialized with invalid serialization formats](../_static/serializing-a-version-1.svg)](../_static/serializing-a-version-1.svg)
118+
[![How a version is serialized with invalid serialization formats](../assets/serializing-a-version-1.svg)](../assets/serializing-a-version-1.svg)
119119

120120
::: card-content
121121
No valid serialization options
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docsrc/index.md docs/index.md

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

mkdocs.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ site_name: Bump My Version
22
repo_url: https://github.com/callowayproject/bump-my-version
33
edit_uri: edit/master/docs/
44
copyright: Calloway Project
5-
docs_dir: docsrc
65
watch:
76
- overrides
87
theme:
98
name: material
109
custom_dir: overrides
11-
logo: _static/bump-my-version-logo.svg
12-
favicon: _static/favicon.png
10+
logo: assets/bump-my-version-logo.svg
11+
favicon: assets/favicon.png
1312
features:
1413
- navigation.tabs
1514
- navigation.sections
@@ -78,7 +77,7 @@ plugins:
7877
nav_file: SUMMARY.md
7978
- gen-files:
8079
scripts:
81-
- docsrc/gen_doc_stubs.py
80+
- docs/gen_doc_stubs.py
8281
- mkdocstrings:
8382
custom_templates: overrides/mkdocstrings
8483
handlers:
@@ -111,10 +110,10 @@ extra_javascript:
111110
- "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML"
112111

113112
extra_css:
114-
- _static/css/custom.css
115-
- _static/css/mkdocstrings.css
116-
- _static/css/cards.css
117-
- _static/css/field-list.css
113+
- assets/css/custom.css
114+
- assets/css/mkdocstrings.css
115+
- assets/css/cards.css
116+
- assets/css/field-list.css
118117

119118
#nav:
120119
# - General: "general/"

tools/drawioexport.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ def export_file_if_needed(source: Path, page_index: int, dest_path: Path) -> Non
128128
"serializing-a-version-1-2-0.svg",
129129
"serializing-a-version-1-2-3.svg",
130130
]
131-
source_path = Path(__file__).parent.parent.joinpath("docsrc/_static/bump-my-version-model.drawio")
132-
dest_path = Path(__file__).parent.parent.joinpath("docsrc/_static/")
131+
source_path = Path(__file__).parent.parent.joinpath("docs/assets/bump-my-version-model.drawio")
132+
dest_path = Path(__file__).parent.parent.joinpath("docs/assets/")
133133
for index, filename in enumerate(output_files):
134134
filepath = dest_path.joinpath(filename)
135135
export_file_if_needed(source_path, index, filepath)

0 commit comments

Comments
 (0)