diff --git a/mvc/conf.py b/mvc/conf.py index a6ca0a3f7c..28e96cc80b 100644 --- a/mvc/conf.py +++ b/mvc/conf.py @@ -125,10 +125,11 @@ if not on_rtd: import sphinx_rtd_theme html_theme = 'sphinx_rtd_theme' html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] - + def setup(app): - app.add_stylesheet('custom.css') - app.add_javascript('wedc.js') + app.add_stylesheet('custom.css') + if on_rtd: + app.add_javascript('wedc.js') #html_theme = 'default'