From f5fab2d9d7a91549e46ada99a9b07adea0c58afc Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 27 Jan 2015 18:52:47 +1100 Subject: [PATCH] * Switch to using sphinx_rtd_theme locally, instead of via pip install, for better control. Specifically, need to support google analytics --- docs/source/conf.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 10bb2d5fb..14e86ba04 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -15,8 +15,6 @@ import sys import os -import sphinx_rtd_theme - # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. @@ -35,7 +33,7 @@ extensions = [ 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.viewcode', - 'sphinxcontrib.napoleon' + 'sphinxcontrib.napoleon', ] # Add any paths that contain templates here, relative to this directory. @@ -54,14 +52,15 @@ master_doc = 'index' project = u'spaCy' copyright = u'2014, Matthew Honnibal' + # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = '1.0' +version = '0.31' # The full version, including alpha/beta/rc tags. -release = '1.0' +release = '0.31' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -111,10 +110,12 @@ html_theme = 'sphinx_rtd_theme' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. -#html_theme_options = {} +html_theme_options = { + 'google_analytics_id': 'UA-58931649-1' +} # Add any paths that contain custom themes here, relative to this directory. -html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +html_theme_path = ["../_themes"] # The name for this set of Sphinx documents. If None, it defaults to # " v documentation".