Skip to content

Commit ae938c3

Browse files
committed
Style conf.py
1 parent 8b441f1 commit ae938c3

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

docs/source/conf.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
import sys
55

66
package_path = os.path.abspath("../..")
7-
sys.path.insert(
8-
0, package_path
9-
) # Insert into sys.path so that we can import adaptive here
7+
# Insert into sys.path so that we can import adaptive here
8+
sys.path.insert(0, package_path)
109
# Insert into PYTHONPATH so that jupyter-sphinx will pick it up
1110
os.environ["PYTHONPATH"] = ":".join((package_path, os.environ.get("PYTHONPATH", "")))
12-
docs_path = os.path.abspath(
13-
".."
14-
) # Insert `docs/` such that we can run the logo scripts
11+
# Insert `docs/` such that we can run the logo scripts
12+
docs_path = os.path.abspath("..")
1513
sys.path.insert(1, docs_path)
1614

1715
import adaptive # noqa: E402, isort:skip
@@ -23,9 +21,10 @@
2321
author = "Adaptive Authors"
2422

2523
# The short X.Y version
26-
version = adaptive.__version__
24+
version = ".".join(adaptive.__version__.split(".")[:3])
25+
version = version
2726
# The full version, including alpha/beta/rc tags
28-
release = adaptive.__version__
27+
release = version
2928

3029
extensions = [
3130
"sphinx.ext.autodoc",

0 commit comments

Comments
 (0)