diff options
author | Ilya Etingof <etingof@gmail.com> | 2016-04-20 00:19:10 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2016-04-20 00:19:10 +0200 |
commit | b0d77a9ed64361ffc73822ce50766d46e26d1d7c (patch) | |
tree | 93cd0a7b9020cb91977739538348be9106f1017b | |
parent | f085a36fb728fe1079d32fc07540274e2161e5ab (diff) | |
download | pysnmp-git-b0d77a9ed64361ffc73822ce50766d46e26d1d7c.tar.gz |
web page analytics files now conditionally included
-rw-r--r-- | docs/source/.templates/layout.html | 10 | ||||
-rw-r--r-- | docs/source/conf.py | 6 |
2 files changed, 12 insertions, 4 deletions
diff --git a/docs/source/.templates/layout.html b/docs/source/.templates/layout.html index 0f25e0e7..9cb875af 100644 --- a/docs/source/.templates/layout.html +++ b/docs/source/.templates/layout.html @@ -133,10 +133,14 @@ <div class="rst-content"> {% include "breadcrumbs.html" %} <div role="main" class="document"> - {% include "top.html" %} + {% if include_analytics %} + {% include "top.html" %} + {% endif %} {% block body %}{% endblock %} - {% include "bottom.html" %} - {% include "analytics.html" %} + {% if include_analytics %} + {% include "bottom.html" %} + {% include "analytics.html" %} + {% endif %} <hr/> </div> {% include "footer.html" %} diff --git a/docs/source/conf.py b/docs/source/conf.py index c78c2aa0..093bb06f 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -53,7 +53,7 @@ master_doc = 'contents' # General information about the project. project = u'PySNMP' -copyright = u'2015, Ilya Etingof <ilya@glas.net>' +copyright = u'2016, Ilya Etingof <ilya@glas.net>' author = u'Ilya Etingof <ilya@glas.net>' # The version info for the project you're documenting, acts as replacement for @@ -215,6 +215,10 @@ html_show_sphinx = False # Output file base name for HTML help builder. htmlhelp_basename = 'PySNMPdoc' +html_context = { + 'include_analytics': 'PYSNMPDEV' in os.environ +} + # -- Options for LaTeX output --------------------------------------------- latex_elements = { |