aboutsummaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 5f0e7592..e5054a15 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -142,6 +142,10 @@ html_experimental_html5_writer = True
# a list of builtin themes.
html_theme = 'basic'
+html_context = {
+ 'ON_READTHEDOCS': bool(os.environ.get('READTHEDOCS'))
+}
+
# 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.