summaryrefslogtreecommitdiff
path: root/doc/conf.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-06 07:34:07 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-06 07:34:07 -0400
commit865a84c1cc6eeef8f5bcf5932c148605486eae71 (patch)
tree008537b91a7fdc577b3815170c2ca678599c69d6 /doc/conf.py
parenta0dc2746333b38e280638024a1f4f1c457719690 (diff)
downloadpython-coveragepy-git-865a84c1cc6eeef8f5bcf5932c148605486eae71.tar.gz
Try the alabaster theme
Diffstat (limited to 'doc/conf.py')
-rw-r--r--doc/conf.py37
1 files changed, 33 insertions, 4 deletions
diff --git a/doc/conf.py b/doc/conf.py
index dc9fad0c..98c24238 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -108,14 +108,43 @@ pygments_style = 'sphinx'
# Sphinx are currently 'default' and 'sphinxdoc'.
#html_theme = 'default'
-if not on_rtd: # only import and set the theme if we're building docs locally
- import sphinx_rtd_theme
- html_theme = 'sphinx_rtd_theme'
- html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
+if 0:
+ if not on_rtd: # only import and set the theme if we're building docs locally
+ import sphinx_rtd_theme
+ html_theme = 'sphinx_rtd_theme'
+ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# otherwise, readthedocs.org uses their theme by default, so no need to specify it
+import alabaster
+html_theme = 'alabaster'
+html_theme_path = ['.', alabaster.get_path()]
+
+# 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 = {
+ 'description':
+ 'A quick guide to Python for experienced programmers',
+ 'show_related': True,
+ 'github_button': False,
+ 'show_powered_by': False,
+
+ 'font_family':
+ 'Georgia Pro, Georgia, '
+ 'serif',
+ 'head_font_family':
+ 'Franklin Gothic Medium, Franklin Gothic, ITC Franklin Gothic, '
+ 'Helvetica, Arial, '
+ 'sans-serif',
+ 'code_font_family':
+ 'Consolas, '
+ 'Menlo, '
+ 'monospace',
+}
+
+
# 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