Skip to content

Commit b2ea733

Browse files
authored
Docs: Add support for Adobe Analytics in documentation (#4379)
This PR does the following: * Adds analytics script to <head>. * Updates to domain and script loading to match botocore.
1 parent 13114f9 commit b2ea733

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/source/_static/js/custom.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ function setupKeyboardFriendlyNavigation() {
208208
function loadShortbread() {
209209
if (typeof AWSCShortbread !== "undefined") {
210210
const shortbread = AWSCShortbread({
211-
// If you're testing in your dev environment, use ".cloudfront.net" for domain, else ".amazonaws.com"
212-
domain: ".amazonaws.com",
211+
// If you're testing in your dev environment, use ".cloudfront.net" for domain, else "boto3.amazonaws.com"
212+
domain: "boto3.amazonaws.com",
213213
});
214214

215215
// Check for cookie consent

docs/source/_templates/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
{% extends "!page.html" %}
1313

1414
{%- block extrahead %}
15+
<script src="https://a0.awsstatic.com/s_code/js/3.0/awshome_s_code.js"></script>
1516
<script src="https://prod.assets.shortbread.aws.dev/shortbread.js"></script>
1617
<link href="https://prod.assets.shortbread.aws.dev/shortbread.css" rel="stylesheet">
1718
{% endblock %}
1819

19-
2020
{% block body -%}
2121
{% include 'partials/icons.html' %}
2222
<svg xmlns="http://www.w3.org/2000/svg" class="hidden">

0 commit comments

Comments
 (0)