diff --git a/documentation/conf.py b/documentation/conf.py
index 61d0846303b392c07519a034ca58d3c77314ffab..7ed41f698c1a6c75a8ebfe1ecfc24f57b2bd4782 100644
--- a/documentation/conf.py
+++ b/documentation/conf.py
@@ -1,6 +1,12 @@
 import sys
+import subprocess, os
 
-# sys.path.append( "/software/bDreathe-4.14.2/" )
+read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
+
+if read_the_docs_build:
+
+    subprocess.call('cd ../doxygen; doxygen', shell=True)
+    
 
 # -- Project information -----------------------------------------------------