mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
Merge pull request #3268 from akien-mga/black-format-regression
conf.py: Fix regression from black formatting in #3229
This commit is contained in:
9
conf.py
9
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"
|
||||
|
||||
Reference in New Issue
Block a user