docs: add google tag (#331)

Update copyright for docs.
This commit is contained in:
Kay Kim 2017-08-01 17:59:25 -04:00 committed by Shane Harvey
parent 0d1424ae31
commit aa7a40c1b8
3 changed files with 28 additions and 2 deletions

19
doc/_templates/layout.html vendored Normal file
View File

@ -0,0 +1,19 @@
{% extends "!layout.html" %}
{%- block extrahead %}
{% if theme_googletag %}
<!-- Google Tag Manager -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-JQHP"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push(
{'gtm.start': new Date().getTime(),event:'gtm.js'}
);var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-JQHP');</script>
<!-- End Google Tag Manager -->
{% endif %}
{%- endblock -%}

View File

@ -9,6 +9,8 @@ sys.path[0:0] = [os.path.abspath('..')]
import pymongo
import datetime
# -- General configuration -----------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be extensions
@ -28,7 +30,8 @@ master_doc = 'index'
# General information about the project.
project = u'PyMongo'
copyright = u'2008 - 2015, MongoDB, Inc.'
copyright = u'MongoDB, Inc. 2008-{0}. MongoDB, Mongo, and the leaf logo are registered trademarks of MongoDB, Inc'.format(datetime.date.today().year)
html_show_sphinx = False
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
@ -82,7 +85,10 @@ db = client.doctest_test
# Theme gratefully vendored from CPython source.
html_theme = "pydoctheme"
html_theme_path = ["."]
html_theme_options = {'collapsiblesidebar': True}
html_theme_options = {
'collapsiblesidebar': True,
'googletag': False
}
# Additional static files.
html_static_path = ['static']

View File

@ -21,3 +21,4 @@ visitedlinkcolor = #00608f
headtextcolor = #1a1a1a
headbgcolor = white
headlinkcolor = #aaaaaa
googletag = False