From 5dc1507e1ce0e21db37d2132ed373f8c8a708351 Mon Sep 17 00:00:00 2001 From: Nikita Titov Date: Sat, 27 Jul 2019 14:34:21 +0300 Subject: [PATCH] [docs] updated js file attaching mechanism (#2287) --- docs/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 99b5d1dc489..cfe3ab2442a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -220,4 +220,5 @@ def setup(app): app.connect("builder-inited", generate_doxygen_xml) else: app.add_directive('doxygenfile', IgnoredDirective) - app.add_javascript("js/script.js") + add_js_file = getattr(app, 'add_js_file', False) or app.add_javascript + add_js_file("js/script.js")