From 450c2ed25f1059b3ab0fbe9b4e1597b492601185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 13 Mar 2020 16:56:57 +0100 Subject: [PATCH] conf.py: Fix regression from black formatting in #3229 --- conf.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/conf.py b/conf.py index 6d34e21a9..efd830af3 100644 --- a/conf.py +++ b/conf.py @@ -5,8 +5,6 @@ import sphinx_rtd_theme import sys import os -from gdscript import GDScriptLexer -from sphinx.highlighting import lexers # -- General configuration ------------------------------------------------ @@ -51,8 +49,15 @@ is_i18n = tags.has("i18n") # noqa: F821 exclude_patterns = ["_build"] +# fmt: off +# These imports should *not* be moved to the start of the file, +# they depend on the sys.path.append call registering "extensions". # GDScript syntax highlighting +from gdscript import GDScriptLexer +from sphinx.highlighting import lexers + lexers["gdscript"] = GDScriptLexer() +# fmt: on # Pygments (syntax highlighting) style to use pygments_style = "sphinx"