summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSandra McCann <samccann@redhat.com>2020-08-19 17:08:06 -0400
committerGitHub <noreply@github.com>2020-08-19 16:08:06 -0500
commitca0f9b9e0fbc6f7b7e06b593d25b23149803d145 (patch)
tree4d56afca269579ec4325ff585dfa7e7304003182 /docs
parent82182ee421495729c3ca73e53c64e2467c2815ba (diff)
downloadansible-ca0f9b9e0fbc6f7b7e06b593d25b23149803d145.tar.gz
Add Fest banner (#71360) (#71362)
Adds Fest banner, with fixes; updates existing banners, adds links. (cherry picked from commit 9be8d723da8380c5717235b124e08dfcb23dd792)
Diffstat (limited to 'docs')
-rw-r--r--docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html23
1 files changed, 8 insertions, 15 deletions
diff --git a/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html b/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html
index 0f1c9a6bb6..46c0dd3279 100644
--- a/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html
+++ b/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html
@@ -6,11 +6,7 @@
// Create a banner if we're not on the official docs site
if (location.host == "docs.testing.ansible.com") {
document.write('<div id="testing_banner_id" class="admonition important">');
- para = document.createElement('p');
- banner_text=document.createTextNode("This is a testing site. For the official docs go to https://docs.ansible.com/");
- para.appendChild(banner_text);
- element = document.getElementById('testing_banner_id');
- element.appendChild(para);
+ document.write('<p>This is the testing site for Ansible Documentation. Unless you are reviewing pre-production changes, please visit the <a href="https://docs.ansible.com/ansible/latest/">official documentation website</a>.</p> <p></p>');
document.write('</div>');
}
{% if (not READTHEDOCS) and (available_versions is defined) %}
@@ -18,21 +14,18 @@
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>');
+
} else if (startsWith(current_url_path, "/ansible/devel/")) {
document.write('<div id="banner_id" class="admonition caution">');
- para = document.createElement('p');
- banner_text=document.createTextNode("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.");
- para.appendChild(banner_text);
- element = document.getElementById('banner_id');
- element.appendChild(para);
+ 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('</div>');
} else {
document.write('<div id="banner_id" class="admonition caution">');
- para = document.createElement('p');
- banner_text=document.createTextNode("You are reading an older version of the Ansible documentation. Use the version selection to the left if you want the latest stable released version.");
- para.appendChild(banner_text);
- element = document.getElementById('banner_id');
- element.appendChild(para);
+ document.write('<p>You are reading an older version of the Ansible documentation. Use the version selection to the left if you want the latest stable released version.</p>');
document.write('</div>');
}
{% endif %}