From 29d395146462757aee8b16117099b31e98112eac Mon Sep 17 00:00:00 2001 From: Alicia Cozine <879121+acozine@users.noreply.github.com> Date: Tue, 23 Feb 2021 14:54:17 -0600 Subject: [PATCH] Docs: Adds banner for core/package split (#73552) Co-authored-by: Alicia Cozine --- docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html b/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html index 1a2b998f229..6684a0313c4 100644 --- a/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html +++ b/docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html @@ -12,7 +12,13 @@ {% if (not READTHEDOCS) and (available_versions is defined) %} // Create a banner current_url_path = window.location.pathname; - if (startsWith(current_url_path, "/ansible/latest/") || startsWith(current_url_path, "/ansible/{{ latest_version }}/")) { + + if (startsWith(current_url_path, "/ansible-core/")) { + document.write(''); + + } else if (startsWith(current_url_path, "/ansible/latest/") || startsWith(current_url_path, "/ansible/{{ latest_version }}/")) { document.write('');