From 6be52afb721d022a2fa2b86293180860c91063f0 Mon Sep 17 00:00:00 2001 From: Chang-Hung Liang Date: Fri, 23 Dec 2016 21:10:10 +0800 Subject: [PATCH] Add analytics code to docs --- docs/_templates/analytics.html | 4 ++++ docs/_templates/layout.html | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 docs/_templates/analytics.html create mode 100644 docs/_templates/layout.html diff --git a/docs/_templates/analytics.html b/docs/_templates/analytics.html new file mode 100644 index 0000000..388e206 --- /dev/null +++ b/docs/_templates/analytics.html @@ -0,0 +1,4 @@ + diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html new file mode 100644 index 0000000..0a964f4 --- /dev/null +++ b/docs/_templates/layout.html @@ -0,0 +1,8 @@ +{%- extends "!layout.html" %} + +{% block extrahead %} + {{ super() }} + {% if READTHEDOCS %} + {% include "analytics.html" %} + {% endif %} +{% endblock %}