parent
0d1424ae31
commit
aa7a40c1b8
19
doc/_templates/layout.html
vendored
Normal file
19
doc/_templates/layout.html
vendored
Normal 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 -%}
|
||||
|
||||
10
doc/conf.py
10
doc/conf.py
@ -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']
|
||||
|
||||
@ -21,3 +21,4 @@ visitedlinkcolor = #00608f
|
||||
headtextcolor = #1a1a1a
|
||||
headbgcolor = white
|
||||
headlinkcolor = #aaaaaa
|
||||
googletag = False
|
||||
|
||||
Loading…
Reference in New Issue
Block a user