Skip to content

Commit

Permalink
Docs: Adds banner for core/package split (#73552)
Browse files Browse the repository at this point in the history
Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
  • Loading branch information
acozine and acozine committed Feb 23, 2021
1 parent f4eab92 commit 29d3951
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/docsite/_themes/sphinx_rtd_theme/ansible_banner.html
Original file line number Diff line number Diff line change
Expand Up @@ -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('<div id="banner_id" class="admonition caution">');
document.write('<p>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/ansible/latest">the latest documentation</a>.</p>');
document.write('</div>');

} else if (startsWith(current_url_path, "/ansible/latest/") || startsWith(current_url_path, "/ansible/{{ latest_version }}/")) {
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>');
Expand Down

0 comments on commit 29d3951

Please sign in to comment.