Merge "Prep Sphinx for r7"

This commit is contained in:
Zuul 2022-09-07 16:07:26 +00:00 committed by Gerrit Code Review
commit 7b244d957d
3 changed files with 69 additions and 5 deletions

View File

@ -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, '');
}

View File

@ -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")]

View File

@ -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
<https://www.windriver.com/studio/operator/self-validated-and-certified-hosts>`__.
.. _verified-commercial-hardware-verified-components:
.. table:: Table 1. Verified Components
@ -189,3 +186,36 @@ For more information see `Self-Validated and Certified Servers
| | |
| | - Quanta |
+--------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
.. raw:: html
<script type="text/javascript" defer="true">
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, '');
}
</script>