Docs: Adds banner for core/package split (#73552)
Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
This commit is contained in:
parent
f4eab92aa0
commit
29d3951464
1 changed files with 7 additions and 1 deletions
|
@ -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>');
|
||||
|
|
Loading…
Reference in a new issue