Skip to content

Commit

Permalink
support adobe_analytics (#2380)
Browse files Browse the repository at this point in the history
Co-authored-by: ZhangJianyu <zhang.jianyu@outlook.com>
  • Loading branch information
NeoZhangJianyu and arthw authored Aug 31, 2023
1 parent 8434981 commit 51f6563
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/build_docs/source/_templates/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% extends '!footer.html' %} {% block extrafooter %} {{super}}
<p></p><div><a href='https://www.intel.com/content/www/us/en/privacy/intel-cookie-notice.html' data-cookie-notice='true'>Cookies</a> <a href='https://www.intel.com/content/www/us/en/privacy/intel-privacy-notice.html'>| Privacy</a></div>
{% endblock %}
16 changes: 16 additions & 0 deletions docs/build_docs/source/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{%- extends "!layout.html" %}
{% block scripts %}
<script type="text/javascript">
// Configure TMS settings
window.wapProfile = 'profile-microsite'; // This is mapped by WAP authorize value
window.wapLocalCode = 'us-en'; // Dynamically set per localized site, see mapping table for values
window.wapSection = "intel-extension-for-tensorflow"; // WAP team will give you a unique section for your site
window.wapEnv = 'prod'; // environment to be use in Adobe Tags.
// Load TMS
(() => {
let url = 'https://www.intel.com/content/dam/www/global/wap/main/wap-microsite.js';
let po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = url;
let s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
}) ();
</script>
{% endblock %}
1 change: 1 addition & 0 deletions docs/build_docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
}

html_static_path = ['_static']
templates_path = ['_templates']

def setup(app):
app.add_css_file("custom.css")

0 comments on commit 51f6563

Please sign in to comment.