From be4fa62bd78b2d8e50e6d5698c335383d73f9279 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Wed, 18 Dec 2013 11:32:25 +0100 Subject: [PATCH] Readthedocs fixes --- README.rst | 2 +- docs/conf.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index ce24f46..49e8530 100644 --- a/README.rst +++ b/README.rst @@ -7,4 +7,4 @@ possible to be installed into an existing Django project like a regular app. You can find a live example on http://dpaste.de/ -Further documentation can be found here: +Further documentation can be found here: http://dpaste.readthedocs.org/en/latest/ diff --git a/docs/conf.py b/docs/conf.py index edbe8e6..90050b1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -96,10 +96,10 @@ pygments_style = 'sphinx' # -- Options for HTML output ---------------------------------------------- -import sphinx_rtd_theme -html_theme = "sphinx_rtd_theme" -html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] - +if not os.environ.get('READTHEDOCS', None) == 'True': + import sphinx_rtd_theme + html_theme = "sphinx_rtd_theme" + html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes.