From 8b42a66eaaa0e3dfc874cb471c832c494099de93 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Mon, 26 Sep 2016 00:54:44 -0700 Subject: [PATCH] Improved docs theme --- docs/conf.py | 11 ++++++++--- docs/requirements.txt | 2 ++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 docs/requirements.txt diff --git a/docs/conf.py b/docs/conf.py index 20b228c..d729246 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -133,9 +133,14 @@ todo_include_todos = True # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'alabaster' -if on_rtd: - html_theme = 'sphinx_rtd_theme' +# html_theme = 'alabaster' +# if on_rtd: +# html_theme = 'sphinx_rtd_theme' +import sphinx_graphene_theme + +html_theme = "sphinx_graphene_theme" + +html_theme_path = [sphinx_graphene_theme.get_html_theme_path()] # Theme options are theme-specific and customize the look and feel of a theme diff --git a/docs/requirements.txt b/docs/requirements.txt new file mode 100644 index 0000000..5de8cc6 --- /dev/null +++ b/docs/requirements.txt @@ -0,0 +1,2 @@ +# Docs template +https://github.com/graphql-python/graphene-python.org/archive/docs.zip