Skip to content

Commit 6544a5c

Browse files
authored
Trim down the docs banners (#1188)
1 parent 6f1cf47 commit 6544a5c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/docsite/.templates/banner.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616
var banner = '';
1717
var extra_banner = '';
1818
/*use extra_banner for when we want something extra, like a survey or Community Day notice */
19-
var extra_banner =
19+
/* var extra_banner =
2020
'<div id="latest_extra_banner_id" class="admonition important">' +
2121
'<p style="padding-bottom: 1.2rem;">' +
2222
'Discuss Ansible in the new <a href="https://forum.ansible.com/t/welcome-to-the-ansible-community/5">Ansible Forum!</a>' +
2323
'</p>' +
2424
'</div>';
25+
*/
2526
// Create a banner if we're not on the official docs site
2627
if (location.host == "docs.testing.ansible.com") {
2728
document.write('<div id="testing_banner_id" class="admonition important">' +
@@ -40,7 +41,7 @@
4041
/* temp extra banner to advertise something */
4142
banner += extra_banner;
4243

43-
msg += 'This is the <b>latest</b> (stable) community version of the Ansible documentation. For Red Hat customers, see <a href="https://www.ansible.com/compare"> the difference between Ansible community projects and Red Hat supported products</a> or <a href="https://access.redhat.com/support/policy/updates/ansible-automation-platform">Ansible Automation Platform Life Cycle</a> for subscriptions.';
44+
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.';
4445
} else if (startsWith(current_url_path, "/ansible/2.9/")) {
4546
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.';
4647
} else if (startsWith(current_url_path, "/ansible/devel/")) {

docs/docsite/rst/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,12 @@
263263
html_title = (
264264
'Ansible Core Documentation' if (
265265
tags.has('all') or tags.has('core_lang') or tags.has('core')
266-
) else 'Ansible Documentation' if tags.has('ansible')
266+
) else 'Ansible Community Documentation' if tags.has('ansible')
267267
else '<UNKNOWN>'
268268
)
269269

270270
# A shorter title for the navigation bar. Default is the same as html_title.
271-
html_short_title = 'Documentation'
271+
# html_short_title = 'Community Documentation'
272272

273273
# The name of an image file (within the static path) to place at the top of
274274
# the sidebar.

0 commit comments

Comments
 (0)