Skip to content

Commit 1aa5f8e

Browse files
committed
docs(fix[conf]): Fix version string slicing to produce '0.1' not '0.'
why: [:2] was applied to the joined string instead of the split list, producing "0." for version "0.1.0a0". Affects search, templates, and OpenGraph metadata. what: - Move [:2] inside split() call: split(".")[:2] instead of join()[:2]
1 parent 3045cbc commit 1aa5f8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
project = about["__title__"]
6767
project_copyright = about["__copyright__"]
6868

69-
version = "{}".format(".".join(about["__version__"].split("."))[:2])
69+
version = "{}".format(".".join(about["__version__"].split(".")[:2]))
7070
release = "{}".format(about["__version__"])
7171

7272
exclude_patterns = ["_build"]

0 commit comments

Comments
 (0)