diff --git a/doc/_themes/saltstack2/layout.html b/doc/_themes/saltstack2/layout.html index b4d55e4e9e..1d91d8aa8f 100644 --- a/doc/_themes/saltstack2/layout.html +++ b/doc/_themes/saltstack2/layout.html @@ -178,13 +178,13 @@
diff --git a/doc/_themes/saltstack2/static/js/webhelp.min_v1.4.4.js b/doc/_themes/saltstack2/static/js/webhelp.min_v1.4.4.js index 92e5b1586f..3491d86384 100644 --- a/doc/_themes/saltstack2/static/js/webhelp.min_v1.4.4.js +++ b/doc/_themes/saltstack2/static/js/webhelp.min_v1.4.4.js @@ -125,7 +125,7 @@ $( document ).ready(function() { window.location.href = window.location.href.replace($currentVer.attr("href"), clickedVer); } else { - if ($currentVer.text().indexOf("Develop") == -1) { + if ($currentVer.text().indexOf("Master") == -1) { window.location.href = clickedVer + "topics/releases/" + $currentVer.text().trim() + ".html"; } else window.location.href = clickedVer + "topics/releases/"; diff --git a/doc/conf.py b/doc/conf.py index cc6a7b9c5b..6c17b8e7e9 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -263,22 +263,31 @@ if on_saltstack: copyright = time.strftime("%Y") # < --- START do not merge these settings to other branches START ---> # -build_type = 'previous' # latest, previous, develop, next -release = previous_release # version, latest_release, previous_release +build_type = 'previous' # latest, previous, master, next # < --- END do not merge these settings to other branches END ---> # # Set google custom search engine -if release == latest_release: +if build_type == 'master': + release = latest_release + search_cx = '011515552685726825874:v1had6i279q' # master + #search_cx = '011515552685726825874:x17j5zl74g8' # develop +elif build_type == 'next': + release = next_release + search_cx = '011515552685726825874:ht0p8miksrm' # latest +elif build_type == 'previous': + release = previous_release + if release.startswith('2018.3'): + search_cx = '011515552685726825874:vadptdpvyyu' # 2018.3 + elif release.startswith('2017.7'): + search_cx = '011515552685726825874:w-hxmnbcpou' # 2017.7 + elif release.startswith('2016.11'): + search_cx = '011515552685726825874:dlsj745pvhq' # 2016.11 + else: + search_cx = '011515552685726825874:ht0p8miksrm' # latest +else: # latest or something else + release = latest_release search_cx = '011515552685726825874:ht0p8miksrm' # latest -elif release.startswith('2018.3'): - search_cx = '011515552685726825874:vadptdpvyyu' # 2018.3 -elif release.startswith('2017.7'): - search_cx = '011515552685726825874:w-hxmnbcpou' # 2017.7 -elif release.startswith('2016.11'): - search_cx = '011515552685726825874:dlsj745pvhq' # 2016.11 -else: - search_cx = '011515552685726825874:x17j5zl74g8' # develop needs_sphinx = '1.3' @@ -356,7 +365,7 @@ rst_prolog = """\ # A shortcut for linking to tickets on the GitHub issue tracker extlinks = { - 'blob': ('https://github.com/saltstack/salt/blob/%s/%%s' % 'develop', None), + 'blob': ('https://github.com/saltstack/salt/blob/%s/%%s' % 'master', None), 'issue': ('https://github.com/saltstack/salt/issues/%s', 'issue #'), 'pull': ('https://github.com/saltstack/salt/pull/%s', 'PR #'), 'formula_url': ('https://github.com/saltstack-formulas/%s', ''),