This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new d38cf86  ARROW-3076: [Website] Add Google Analytics scripts to Sphinx, 
Doxygen API docs
d38cf86 is described below

commit d38cf86abb3d4b4e6c5b15176ae430f0a81d9ef0
Author: Wes McKinney <[email protected]>
AuthorDate: Mon Oct 1 15:14:52 2018 +0900

    ARROW-3076: [Website] Add Google Analytics scripts to Sphinx, Doxygen API 
docs
    
    This is consistent with what we are already tracking in the main website.
    
    We can add the tags to JavaScript, GLib, and Java as desired -- I will 
leave it to others to submit patches to add the tag
    
    Author: Wes McKinney <[email protected]>
    
    Closes #2666 from wesm/ARROW-3076 and squashes the following commits:
    
    54432be8 <Wes McKinney> Add GA tag to Sphinx, Doxygen
---
 cpp/apidoc/Doxyfile                      |  2 +-
 cpp/apidoc/footer.html                   | 31 +++++++++++++++++++++++++++++++
 python/doc/source/_templates/layout.html | 13 +++++++++++++
 3 files changed, 45 insertions(+), 1 deletion(-)

diff --git a/cpp/apidoc/Doxyfile b/cpp/apidoc/Doxyfile
index d5fd1ac..3ec9af9 100644
--- a/cpp/apidoc/Doxyfile
+++ b/cpp/apidoc/Doxyfile
@@ -1140,7 +1140,7 @@ HTML_HEADER            =
 # that doxygen normally uses.
 # This tag requires that the tag GENERATE_HTML is set to YES.
 
-HTML_FOOTER            =
+HTML_FOOTER            = footer.html
 
 # The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
 # sheet that is used by each HTML page. It can be used to fine-tune the look of
diff --git a/cpp/apidoc/footer.html b/cpp/apidoc/footer.html
new file mode 100644
index 0000000..01f4ad2
--- /dev/null
+++ b/cpp/apidoc/footer.html
@@ -0,0 +1,31 @@
+<!-- HTML footer for doxygen 1.8.14-->
+<!-- start footer part -->
+<!--BEGIN GENERATE_TREEVIEW-->
+<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
+  <ul>
+    $navpath
+    <li class="footer">$generatedby
+    <a href="http://www.doxygen.org/index.html";>
+    <img class="footer" src="$relpath^doxygen.png" alt="doxygen"/></a> 
$doxygenversion </li>
+  </ul>
+</div>
+<!--END GENERATE_TREEVIEW-->
+<!--BEGIN !GENERATE_TREEVIEW-->
+<hr class="footer"/><address class="footer"><small>
+$generatedby &#160;<a href="http://www.doxygen.org/index.html";>
+<img class="footer" src="$relpath^doxygen.png" alt="doxygen"/>
+</a> $doxygenversion
+</small></address>
+<!--END !GENERATE_TREEVIEW-->
+
+<script async 
src="https://www.googletagmanager.com/gtag/js?id=UA-107500873-1";></script>
+<script>
+  window.dataLayer = window.dataLayer || [];
+  function gtag(){dataLayer.push(arguments);}
+  gtag('js', new Date());
+
+  gtag('config', 'UA-107500873-1');
+</script>
+
+</body>
+</html>
diff --git a/python/doc/source/_templates/layout.html 
b/python/doc/source/_templates/layout.html
new file mode 100644
index 0000000..8ee71e4
--- /dev/null
+++ b/python/doc/source/_templates/layout.html
@@ -0,0 +1,13 @@
+{# Import the theme's layout. #}
+{% extends "!layout.html" %}
+
+{%- block footer %}
+<script async 
src="https://www.googletagmanager.com/gtag/js?id=UA-107500873-1";></script>
+<script>
+  window.dataLayer = window.dataLayer || [];
+  function gtag(){dataLayer.push(arguments);}
+  gtag('js', new Date());
+
+  gtag('config', 'UA-107500873-1');
+</script>
+{% endblock %}

Reply via email to