diff --git a/docs/source/conf.py b/docs/source/conf.py
index 47e8a0e46d47023949303f69b4b8871ca2dc82e9..5d2da9b1bfe90398e262ce8d55251d7b88a62b1e 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -100,12 +100,7 @@ html_theme = 'sphinx_rtd_theme'
 # relative to this directory. They are copied after the builtin static files,
 # so a file named "default.css" will overwrite the builtin "default.css".
 html_static_path = ['_static']
-
-html_context = {
-    'css_files': [
-        '_static/theme_overrides.css',  # overrides for wide tables in RTD theme
-        ],
-    }
+html_css_files = ['theme_overrides.css']
 
 # Custom sidebar templates, must be a dictionary that maps document names
 # to template names.