diff --git a/doc/source/_static/js/hw.js b/doc/source/_static/js/hw.js new file mode 100644 index 000000000..0f210e8f8 --- /dev/null +++ b/doc/source/_static/js/hw.js @@ -0,0 +1,28 @@ +var path = window. location. pathname; +var page = path. split("/"). pop(); +console. log( page ); + +if (page === 'verified-commercial-hardware.html') { + + // Menu + document.getElementById('block-headersolutions').style.display = 'none'; + // Graphic + document.querySelector('.content hero').style.display = 'none'; + // Hardware ready program block + document.querySelector('.content section padding-30 no-pdb').style.display = 'none'; + // Footer + document.querySelector('.content footer').style.display = 'none'; + // Cookie policy + document.getElementById('teconsent').style.display = 'none'; + + // Strings + document.body.innerHTML = document.body.innerHTML.replace(/Studio Cloud Version/g, 'StarlingX Version'); + document.body.innerHTML = document.body.innerHTML.replace(/21.05/g, '5.0'); + document.body.innerHTML = document.body.innerHTML.replace(/21.12/g, '6.0'); + document.body.innerHTML = document.body.innerHTML.replace(/22.06/g, '7.0'); + document.body.innerHTML = document.body.innerHTML.replace(/WRCP 22.06/g, 'StarlingX 7.0'); + document.body.innerHTML = document.body.innerHTML.replace(/WRCP 21.12/g, 'StarlingX 6.0'); + document.body.innerHTML = document.body.innerHTML.replace(/WRCP 21.05/g, 'StarlingX 5.0'); + document.body.innerHTML = document.body.innerHTML.replace(/Patch \d+/g, ''); + +} diff --git a/doc/source/conf.py b/doc/source/conf.py index 9760dd698..89ed81099 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -103,10 +103,16 @@ html_theme_options = { # ... } + # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -#html_static_path = ['_static'] +html_static_path = ['_static'] + +# Edit supported HW table on load +html_js_files = [ +# 'js/hw.js', +] # Custom sidebar templates, must be a dictionary that maps document names # to template names. @@ -185,4 +191,4 @@ starlingxdocs_plus_bug_project = 'starlingx' starlingxdocs_plus_bug_tag = 'stx.docs' starlingxdocs_plus_this_version = "latest" # starlingxdocs_plus_other_versions = [("even later","even-later"),("sooner","sooner")] -starlingxdocs_plus_other_versions = [("Version 6.0","r/stx.6.0"),("Version 5.0","r/stx.5.0")] +starlingxdocs_plus_other_versions = [("Version 7.0","r/stx.7.0"),("Version 6.0","r/stx.6.0"),("Version 5.0","r/stx.5.0")] diff --git a/doc/source/planning/kubernetes/verified-commercial-hardware.rst b/doc/source/planning/kubernetes/verified-commercial-hardware.rst index 364dbe2f6..25155c10b 100755 --- a/doc/source/planning/kubernetes/verified-commercial-hardware.rst +++ b/doc/source/planning/kubernetes/verified-commercial-hardware.rst @@ -8,9 +8,6 @@ Kubernetes Verified Commercial Hardware Verified and approved hardware components for use with |prod| are listed here. -For more information see `Self-Validated and Certified Servers -`__. - .. _verified-commercial-hardware-verified-components: .. table:: Table 1. Verified Components @@ -187,3 +184,36 @@ For more information see `Self-Validated and Certified Servers | | | | | - Quanta | +--------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + +.. raw:: html + +