summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSandra McCann <samccann@redhat.com>2020-11-05 15:33:10 -0500
committerGitHub <noreply@github.com>2020-11-05 14:33:10 -0600
commitd3db411c892cd8df3feb21fd17528f2f49a46664 (patch)
tree140fc9182e3a552aa8e2a08e6e60faf567da877e /docs
parent6f29ab5203834e7593c02e34bae4e4013ad990e0 (diff)
downloadansible-d3db411c892cd8df3feb21fd17528f2f49a46664.tar.gz
clarify upstream release status of 2.10 (#72269) (#72490)
* clarify upstream release status of 2.10 (cherry picked from commit d76f85208daef0c6acf8b9b7e40ba88d113044a3)
Diffstat (limited to 'docs')
-rw-r--r--docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html16
1 files changed, 11 insertions, 5 deletions
diff --git a/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html b/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html
index 46c0dd3279..c07f0e06e1 100644
--- a/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html
+++ b/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html
@@ -13,15 +13,21 @@
// Create a banner if we're not the latest version
current_url_path = window.location.pathname;
if (startsWith(current_url_path, "/ansible/latest/") || startsWith(current_url_path, "/ansible/{{ latest_version }}/")) {
- // no banner for latest release
- // temp banner to advertise AnsibleFest
- document.write('<div id="banner_id" class="admonition important">');
- document.write('<p><a href="https://www.ansible.com/ansiblefest">AnsibleFest</a> is going virtual with two days of expert speakers, live demos and hands-on labs Oct 13-14!</p>');
+ document.write('<div id="banner_id" class="admonition caution">');
+ document.write('<p>You are reading the latest community version of the Ansible documentation. Red Hat subscribers, select <b>2.9</b> in the version selection to the left for the most recent Red Hat release.</p>');
document.write('</div>');
+ /* temp banner to advertise AnsibleFest
+ document.write('<div id="banner_id" class="admonition important">');
+ document.write('<p><a href="https://www.ansible.com/ansiblefest?sc_cid=7013a000002gyPxAAI">AnsibleFest</a> is going virtual with two days of expert speakers, live demos and hands-on labs Oct 13-14!</p>');
+ document.write('</div>'); */
+ } else if (startsWith(current_url_path, "/ansible/2.9/")) {
+ document.write('<div id="banner_id" class="admonition caution">');
+ document.write('<p>You are reading the latest Red Hat released version of the Ansible documentation. Community users can use this, or select any version in version selection to the left, including <b>latest</b> for the most recent community version.</p>');
+ document.write('</div>');
} else if (startsWith(current_url_path, "/ansible/devel/")) {
document.write('<div id="banner_id" class="admonition caution">');
- document.write('<p>You are reading the *devel* version of the Ansible documentation - this version is not guaranteed stable. Use the version selection to the left if you want the latest stable released version.</p>');
+ document.write('<p>You are reading the <b>devel</b> version of the Ansible documentation - this version is not guaranteed stable. Use the version selection to the left if you want the latest stable released version.</p>');
document.write('</div>');
} else {
document.write('<div id="banner_id" class="admonition caution">');