File tree 2 files changed +26
-1
lines changed
2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change
1
+ < p class ="caption ">
2
+ < span class ="caption-text "> Version</ span >
3
+ </ p >
4
+ < ul >
5
+ < li class ="toctree-l1 ">
6
+ < a class ="reference internal " id ="version-stable "
7
+ href ="../stable/{{ pathto('index') if '.html' in pathto('index') else 'index.html' }} "> Stable
8
+ ({{ version }})</ a >
9
+ </ li >
10
+ < li class ="toctree-l1 ">
11
+ < a class ="reference internal " id ="version-latest "
12
+ href ="../latest/{{ pathto('index') if '.html' in pathto('index') else 'index.html' }} "> Latest</ a >
13
+ </ li >
14
+ </ ul >
15
+ < script >
16
+ if ( window . location . href . indexOf ( "stable" ) > - 1 ) {
17
+ document . getElementById ( "version-stable" ) . className = "reference internal current" ;
18
+ document . getElementById ( "version-latest" ) . className = "reference internal" ;
19
+ } else {
20
+ document . getElementById ( "version-stable" ) . className = "reference internal" ;
21
+ document . getElementById ( "version-latest" ) . className = "reference internal current" ;
22
+ }
23
+ </ script >
Original file line number Diff line number Diff line change 30
30
copyright = '2020, AI4Science Group'
31
31
author = 'AI4Science Group'
32
32
33
+ version = f"{ deeptime .__version__ .split ('+' )[0 ]} "
33
34
# The full version, including alpha/beta/rc tags
34
35
release = f"{ deeptime .__version__ } "
35
36
@@ -155,9 +156,10 @@ def filter(self, record: LogRecord) -> int:
155
156
'**' : [
156
157
'about.html' ,
157
158
'navigation.html' ,
159
+ 'version.html' ,
158
160
'relations.html' ,
159
161
'searchbox.html' ,
160
- 'github_button.html'
162
+ 'github_button.html' ,
161
163
]
162
164
}
163
165
You can’t perform that action at this time.
0 commit comments