summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorsmain@google.com <smain@google.com>2014-10-21 13:57:01 -0700
committersmain@google.com <smain@google.com>2014-10-22 09:55:04 -0700
commit8df21b19c425a250f59d4825ba239e1f57582099 (patch)
treedf14c28017afdd2814706b46611de06e7b51ffeb /tools
parent03eceba1ddfe6cf3ae6eb22bddc889930c097c1a (diff)
downloadbuild-8df21b19c425a250f59d4825ba239e1f57582099.zip
build-8df21b19c425a250f59d4825ba239e1f57582099.tar.gz
build-8df21b19c425a250f59d4825ba239e1f57582099.tar.bz2
add helpouts script to <head>, behind a condition that can be enabled per page
Change-Id: Ifa2364ed77a86efd6bec69dbe4f15d7f69569504
Diffstat (limited to 'tools')
-rw-r--r--tools/droiddoc/templates-sdk/head_tag.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/droiddoc/templates-sdk/head_tag.cs b/tools/droiddoc/templates-sdk/head_tag.cs
index 7ecb7f9..d54f6e3 100644
--- a/tools/droiddoc/templates-sdk/head_tag.cs
+++ b/tools/droiddoc/templates-sdk/head_tag.cs
@@ -24,8 +24,8 @@
<meta name="Description" content="<?cs var:page.metaDescription ?>"><?cs
/if ?>
<link rel="shortcut icon" type="image/x-icon" href="<?cs var:toroot ?>favicon.ico" />
-<title><?cs
- if:page.title ?><?cs
+<title><?cs
+ if:page.title ?><?cs
var:page.title ?> | <?cs
/if ?>Android Developers</title>
@@ -64,6 +64,13 @@ else
</script>
<script src="<?cs var:toroot ?>assets/js/docs.js?v=2" type="text/javascript"></script>
+<?cs if:helpoutsWidget ?>
+<script type="text/javascript" src="https://helpouts.google.com/ps/res/embed.js" defer async
+ data-helpouts-embed data-helpouts-vertical="programming"
+ data-helpouts-tags="<?cs var:page.tags ?>" data-helpouts-prefix="android"
+ data-helpouts-standalone="true"></script>
+<?cs /if ?>
+
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),