mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:56:57 +00:00
add footer for dartdocs generated for the sdk for analytics and survey
BUG= R=sethladd@google.com, whesse@google.com Review URL: https://codereview.chromium.org//1239543002 .
This commit is contained in:
parent
930a40daa5
commit
d2a067e22b
|
@ -42,10 +42,12 @@ def BuildDartdocAPIDocs(dirname):
|
|||
packages_dir = os.path.join(bot_utils.DART_DIR,
|
||||
utils.GetBuildRoot(BUILD_OS, 'release', 'ia32'),
|
||||
'packages')
|
||||
footer_file = os.path.join(bot_utils.DART_DIR,
|
||||
'tools', 'bots', 'dartdoc_footer.html')
|
||||
with bot.BuildStep('Build API docs by dartdoc'):
|
||||
subprocess.call([dart_exe, '--package-root=' + packages_dir, dartdoc_dart,
|
||||
'--sdk-docs','--output', dirname, '--dart-sdk', dart_sdk,
|
||||
'--package-root=%s' % packages_dir],
|
||||
'--sdk-docs','--output', dirname, '--dart-sdk', dart_sdk,
|
||||
'--footer' , footer_file, '--package-root=%s' % packages_dir],
|
||||
stdout=open(os.devnull, 'wb'))
|
||||
|
||||
def CreateUploadVersionFile():
|
||||
|
|
13
tools/bots/dartdoc_footer.html
Normal file
13
tools/bots/dartdoc_footer.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<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),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-26406144-9', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
|
||||
<script async src="//survey.g.doubleclick.net/async_survey?site=4vq7qmqpfn4zjduve64c4h6lqa">
|
||||
</script>
|
Loading…
Reference in a new issue