File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 4
4
import sys
5
5
6
6
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 )
10
9
# Insert into PYTHONPATH so that jupyter-sphinx will pick it up
11
10
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 (".." )
15
13
sys .path .insert (1 , docs_path )
16
14
17
15
import adaptive # noqa: E402, isort:skip
23
21
author = "Adaptive Authors"
24
22
25
23
# The short X.Y version
26
- version = adaptive .__version__
24
+ version = "." .join (adaptive .__version__ .split ("." )[:3 ])
25
+ version = version
27
26
# The full version, including alpha/beta/rc tags
28
- release = adaptive . __version__
27
+ release = version
29
28
30
29
extensions = [
31
30
"sphinx.ext.autodoc" ,
You can’t perform that action at this time.
0 commit comments