|
1 | 1 | {% if is_eol %} |
2 | 2 | {# Creates a banner at the top of the page for EOL versions. #} |
3 | 3 | <div id='banner' class='Admonition caution'> |
4 | | - <p>You are reading an unmaintained version of the Ansible community documentation. Unmaintained Ansible versions can contain security vulnerabilities (CVEs). Please upgrade to a maintained version. See <a href="/ansible/latest/">the latest Ansible documentation</a>. Note that this statement does not apply to Red Hat Ansible Automation Platform subscriptions. See the <a href="https://access.redhat.com/support/policy/updates/ansible-automation-platform">Ansible Automation Platform Life Cycle</a>.</p> |
| 4 | + <p>You are reading an unmaintained version of the Ansible community documentation. Unmaintained Ansible versions can contain security vulnerabilities (CVEs). Please upgrade to a maintained version. See <a href="https://docs.ansible.com/projects/ansible/latest/">the latest Ansible documentation</a>. Note that this statement does not apply to Red Hat Ansible Automation Platform subscriptions. See the <a href="https://access.redhat.com/support/policy/updates/ansible-automation-platform">Ansible Automation Platform Life Cycle</a>.</p> |
5 | 5 | </div> |
6 | 6 | {% else %} |
7 | 7 | <script> |
|
27 | 27 | // Create a banner if we're not on the official docs site |
28 | 28 | if (location.host == "docs.testing.ansible.com") { |
29 | 29 | document.write('<div id="testing_banner_id" class="admonition important">' + |
30 | | - '<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>' + |
| 30 | + '<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/projects/ansible/latest/">official documentation website</a>.</p> <p></p>' + |
31 | 31 | '</div>'); |
32 | 32 | } |
33 | 33 | {% if available_versions is defined %} |
|
36 | 36 |
|
37 | 37 | var important = false; |
38 | 38 | var msg = '<p>'; |
39 | | - if (startsWith(current_url_path, "/ansible-core/")) { |
40 | | - msg += 'You are reading documentation for Ansible Core, which contains no plugins except for those in ansible.builtin. For documentation of the Ansible package, go to <a href="/ansible/latest">the latest documentation</a>.'; |
41 | | - } else if (startsWithOneOf(current_url_path, ["/ansible/latest/", "/ansible/{{ latest_version }}/"])) { |
| 39 | + if (startsWith(current_url_path, "/projects/ansible-core/")) { |
| 40 | + msg += 'You are reading documentation for Ansible Core, which contains no plugins except for those in ansible.builtin. For documentation of the Ansible package, go to <a href="https://docs.ansible.com/projects/ansible/latest/">the latest documentation</a>.'; |
| 41 | + } else if (startsWithOneOf(current_url_path, ["/projects/ansible/latest/", "/projects/ansible/{{ latest_version }}/"])) { |
42 | 42 | /* temp extra banner to advertise something */ |
43 | 43 | banner += extra_banner; |
44 | 44 |
|
45 | 45 | msg += 'This is the <b>latest</b> (stable) Ansible community documentation. For Red Hat Ansible Automation Platform subscriptions, see <a href="https://access.redhat.com/support/policy/updates/ansible-automation-platform">Life Cycle</a> for version details.'; |
46 | | - } else if (startsWith(current_url_path, "/ansible/2.9/")) { |
| 46 | + } else if (startsWith(current_url_path, "/projects/ansible/2.9/")) { |
47 | 47 | msg += 'You are reading the latest Red Hat released version of the Ansible documentation. Community users can use this version, or select <b>latest</b> from the version selector to the left for the most recent community version.'; |
48 | | - } else if (startsWith(current_url_path, "/ansible/devel/")) { |
| 48 | + } else if (startsWith(current_url_path, "/projects/ansible/devel/")) { |
49 | 49 | /* temp extra banner to advertise something */ |
50 | 50 | banner += extra_banner; |
51 | 51 |
|
|
0 commit comments