From adcae3addb8f63eebade5eace220482ccc8c1ad6 Mon Sep 17 00:00:00 2001 From: gusthoff Date: Sat, 26 Oct 2024 17:14:48 +0200 Subject: [PATCH] Sphinx: using method from Tags module Getting rid of deprecation warning for next major Sphinx version. --- frontend/sphinx/widget_extension.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/sphinx/widget_extension.py b/frontend/sphinx/widget_extension.py index 92b278346..cad480184 100644 --- a/frontend/sphinx/widget_extension.py +++ b/frontend/sphinx/widget_extension.py @@ -260,8 +260,7 @@ def run(self) -> List[Node]: widget.parseContent(self.content) # Attemping to detect HTML or Latex output by checking for 'html' in tags - if ('builder_html' in self.state.state_machine.document.settings.env.app.tags.tags - and self.state.state_machine.document.settings.env.app.tags.tags['builder_html']): + if (self.state.state_machine.document.settings.env.app.tags.eval_condition('builder_html')): jinja_env = Environment( loader=PackageLoader('widget'),