File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1818 from sphinx_polyversion .api import LoadError
1919
2020 USE_POLYVERSION = True
21+ data = load (globals ())
22+ current = data ["current" ].name
2123except ImportError :
2224 USE_POLYVERSION = False
2325 print ("sphinx_polyversion not installed, building single version" )
26+ current = "local"
2427
2528sys .path .insert (0 , os .path .abspath ("../.." ))
2629
7780
7881# Define shorthand for external links:
7982extlinks = {
80- "mainbranch" : ("https://github.com/bayesflow-org/bayesflow/blob/master /%s" , None ),
83+ "mainbranch" : (f "https://github.com/bayesflow-org/bayesflow/blob/{ current } /%s" , None ),
8184}
8285
8386coverage_show_missing_items = True
114117html_show_sourcelink = False
115118html_theme_options = {
116119 "repository_url" : "https://github.com/bayesflow-org/bayesflow" ,
117- "repository_branch" : "master" ,
120+ "repository_branch" : current ,
118121 "use_edit_page_button" : True ,
119122 "use_issues_button" : True ,
120123 "use_repository_button" : True ,
You can’t perform that action at this time.
0 commit comments