Skip to content

Commit

Permalink
Merge pull request github#15112 from fossilet/upstream_main
Browse files Browse the repository at this point in the history
Fix sphinx.add_lexer.
  • Loading branch information
oscarsj authored Dec 19, 2023
2 parents 06544e9 + 795668d commit b55c299
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/codeql/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,13 @@
import os
import sys

import sphinx as sphinx_mod


def setup(sphinx):
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from qllexer import QLLexer
sphinx.add_lexer("ql", QLLexer())
sphinx.add_lexer("ql", QLLexer() if sphinx_mod.version_info[0] <= 3 else QLLexer)

# The version of CodeQL for the current release you're documenting, acts as replacement for
# |version| and |release|. Not currently used.
Expand Down

0 comments on commit b55c299

Please sign in to comment.