mirror of
https://github.com/Start9Labs/documentation.git
synced 2026-03-26 10:21:53 +00:00
custom js to hide non backwards compatible header in 02x docs
This commit is contained in:
16
site/source/_static/custom.js
Normal file
16
site/source/_static/custom.js
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
window.jQuery = $;
|
||||
window.$ = $;
|
||||
|
||||
const hideHeaderLinks = () => {
|
||||
const dropdownHeader = $(".scylla-dropdown--header");
|
||||
const urlVersion = window.location.pathname.includes("0.2.x");
|
||||
if (urlVersion) {
|
||||
dropdownHeader.hide();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
hideHeaderLinks();
|
||||
});
|
||||
@@ -70,7 +70,7 @@ notfound_template = "404.html"
|
||||
TAGS = []
|
||||
smv_tag_whitelist = multiversion_regex_builder(TAGS)
|
||||
# Whitelist pattern for branches (set to None to ignore all branches)
|
||||
BRANCHES = ["versioning", "master"]
|
||||
BRANCHES = ["integration/0.3.0", "master"]
|
||||
smv_branch_whitelist = multiversion_regex_builder(BRANCHES)
|
||||
# Defines which version is considered to be the latest stable version.
|
||||
# Must be listed in smv_tag_whitelist or smv_branch_whitelist.
|
||||
@@ -97,7 +97,7 @@ html_theme_options = {
|
||||
"banner_button_text": "Learn more",
|
||||
"banner_button_url": "https://docs.start9.com/latest",
|
||||
"banner_icon_path": "_static/logo.png",
|
||||
"banner_title_text": "Start9 Docs 0.3.0 is now released 🥳",
|
||||
"banner_title_text": "Start9 0.3.0 is now released 🥳",
|
||||
"hide_edit_this_page_button": "false",
|
||||
"hide_sidebar_index": "true",
|
||||
"hide_banner": "true",
|
||||
@@ -107,7 +107,6 @@ html_theme_options = {
|
||||
"site_description": "Start9 Product Documentation and Education Guides",
|
||||
}
|
||||
|
||||
|
||||
# Last updated format
|
||||
html_last_updated_fmt = "%d %b %Y"
|
||||
|
||||
@@ -118,10 +117,10 @@ templates_path = ['_templates']
|
||||
html_sidebars = {"**": ["side-nav.html"]}
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = "Start9Documentationdoc"
|
||||
htmlhelp_basename = "Start9Documentation"
|
||||
|
||||
# URL which points to the root of the HTML documentation.
|
||||
html_baseurl = "https://docs.start9.com"
|
||||
html_baseurl = "https://start9.com"
|
||||
|
||||
# Dictionary of values to pass into the template engine’s context for all pages
|
||||
html_context = {"html_baseurl": html_baseurl}
|
||||
@@ -135,4 +134,6 @@ html_logo = "_static/logo.png"
|
||||
|
||||
html_title = "Docs"
|
||||
|
||||
html_favicon = "_static/favicon.ico"
|
||||
html_favicon = "_static/favicon.ico"
|
||||
|
||||
html_js_files = ["custom.js"]
|
||||
Reference in New Issue
Block a user