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.