diff --git a/src/doc/conf.py b/src/doc/conf.py
index c935d2dd823c00a896aa3f35c005786be3202f78..94dbaf6663e8d2b9a39ee5475bcd4bf74cb5ebbd 100644
--- a/src/doc/conf.py
+++ b/src/doc/conf.py
@@ -19,6 +19,8 @@
 
 # -- Project information -----------------------------------------------------
 
+import sphinx_rtd_theme
+
 project = 'caosdb-server'
 copyright = '2020, IndiScale GmbH'
 author = 'Daniel Hornung'
@@ -29,9 +31,6 @@ version = '0.X.Y'
 release = '0.x.y-beta-rc2'
 
 
-import sphinx-rtd-theme
-
-
 # -- General configuration ---------------------------------------------------
 
 # If your documentation needs a minimal Sphinx version, state it here.
@@ -47,7 +46,7 @@ extensions = [
     "sphinx.ext.autodoc",
     'autoapi.extension',
     "recommonmark",            # For markdown files.
-    "sphinx-rtd-theme",
+    "sphinx_rtd_theme",
     # 'sphinx.ext.intersphinx',
     # 'sphinx.ext.napoleon',     # For Google style docstrings
 ]
@@ -85,7 +84,7 @@ pygments_style = None
 # The theme to use for HTML and HTML Help pages.  See the documentation for
 # a list of builtin themes.
 #
-html_theme = "sphinx-rtd-theme"
+html_theme = "sphinx_rtd_theme"
 
 # 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