From 9055282a969fb92c7d28bcbf83e23c65000155df Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 3 Oct 2018 18:09:40 -0400 Subject: Remove built-in theme and start using zzzeeksphinx. this allows maintenance of the "non-standard Sphinx theme" to remain in one place. --- doc/build/conf.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'doc/build/conf.py') diff --git a/doc/build/conf.py b/doc/build/conf.py index 605af5a..89c95d6 100644 --- a/doc/build/conf.py +++ b/doc/build/conf.py @@ -30,9 +30,8 @@ import mako #extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', # 'sphinx.ext.doctest', 'builder.builders'] -extensions = ['sphinx.ext.autodoc','sphinx.ext.intersphinx', - 'changelog', 'sphinx_paramlinks', - 'builder.builders'] +extensions = ['sphinx.ext.autodoc', + 'changelog', 'sphinx_paramlinks', 'zzzeeksphinx'] changelog_render_ticket = "https://bitbucket.org/zzzeek/mako/issue/%s/" @@ -47,13 +46,14 @@ templates_path = ['templates'] nitpicky = True -site_base = "http://www.makotemplates.org" + +site_base = os.environ.get("RTD_SITE_BASE", "http://www.makotemplates.org") +site_adapter_template = "docs_adapter.mako" +site_adapter_py = "docs_adapter.py" # The suffix of source filenames. source_suffix = '.rst' -template_bridge = "builder.builders.MakoBridge" - # The encoding of source files. #source_encoding = 'utf-8-sig' @@ -112,7 +112,7 @@ pygments_style = 'sphinx' # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'default' +html_theme = 'zsmako' # 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 @@ -290,7 +290,3 @@ epub_copyright = u'Mako authors' # Allow duplicate toc entries. #epub_tocdup = True -intersphinx_mapping = { - 'dogpilecache':('http://dogpilecache.readthedocs.org/en/latest', None), - 'beaker':('http://beaker.readthedocs.org/en/latest',None), -} -- cgit v1.2.3