diff options
author | Sandra McCann <samccann@redhat.com> | 2020-12-08 16:46:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-08 15:46:36 -0600 |
commit | 7461f873ef2d5fac3f90238911d2c8a91789018f (patch) | |
tree | 221adbf132e8a619e9063e5023473191c3b3752e | |
parent | c72d53218ad0447f3ee3f635154ca5aaaf97810b (diff) | |
download | ansible-7461f873ef2d5fac3f90238911d2c8a91789018f.tar.gz |
add docs survey banner (#72907) (#72909)
* add docs survey banner, with date
(cherry picked from commit 609879331550a485c787880919c738b2de1eebb1)
-rw-r--r-- | docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html b/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html index c07f0e06e1..e3b6a57534 100644 --- a/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html +++ b/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html @@ -13,22 +13,29 @@ // 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 }}/")) { + /* temp banner to advertise survey */ + document.write('<div id="banner_id" class="admonition important">'); + document.write('<br><p>Please take our <a href="https://www.surveymonkey.co.uk/r/B9V3CDY">Docs survey</a> before December 31 to help us improve Ansible documentation.</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>'); */ + 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/")) { + /* temp banner to advertise survey */ + document.write('<div id="banner_id" class="admonition important">'); + document.write('<br><p>Please take our <a href="https://www.surveymonkey.co.uk/r/B9V3CDY">Docs survey</a> before December 31 to help us improve Ansible documentation.</p><br>'); + document.write('</div>'); + document.write('<div id="banner_id" class="admonition caution">'); 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">'); 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>'); |