From 1984a34c2b2ba6ead09ebe14ef9aaf8b8203ddd6 Mon Sep 17 00:00:00 2001 From: Sandra McCann Date: Wed, 19 Aug 2020 16:41:37 -0400 Subject: [PATCH] Add Fest banner (#71360) (#71361) Adds Fest banner, with fixes; updates existing banners, adds links. (cherry picked from commit 9be8d723da8380c5717235b124e08dfcb23dd792) --- .../sphinx_rtd_theme/ansible_banner.html | 23 +++++++------------ 1 file 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 0f1c9a6bb68..46c0dd3279a 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('
'); - 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('

This is the testing site for Ansible Documentation. Unless you are reviewing pre-production changes, please visit the official documentation website.

'); document.write('
'); } {% 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(''); + } else if (startsWith(current_url_path, "/ansible/devel/")) { document.write(''); } else { document.write(''); } {% endif %}