Skip to content

Commit 7fa3050

Browse files
committed
fix urls to use RTD projects subfolder
1 parent 9d0ac8c commit 7fa3050

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/docsite/.templates/banner.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636

3737
var important = false;
3838
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 }}/"])) {
4242
/* temp extra banner to advertise something */
4343
banner += extra_banner;
4444

4545
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/")) {
4747
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.';
4848
} else if (startsWith(current_url_path, "/projects/ansible/devel/")) {
4949
/* temp extra banner to advertise something */

0 commit comments

Comments
 (0)