# -*- coding: utf-8 -*-
#
# The Sphinx config values used in the CodeQL documentation that is published
# at codeql.github.com/docs
#
# Note that not all possible configuration values are present in this file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
#
# For details of all possible config values,
# see https://www.sphinx-doc.org/en/master/usage/configuration.html
#
# -- GENERAL CONFIG VALUES ------------------------------------------------
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
source_suffix = '.rst'
# The master toctree document.
master_doc = 'contents'
# General information about the project.
project = u'CodeQL documentation'
# The name for this set of Sphinx documents. If None, it defaults to
# " v documentation".
html_title = 'CodeQL'
# Output file base name for HTML help builder.
htmlhelp_basename = 'CodeQL'
# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'
# The encoding of source files.
source_encoding = 'utf-8-sig'
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# The default language for syntax highlighting. We need to explicitly set this to "none",
# otherwise Sphinx tries to highlight any unlabeled code samples as "python3".
# See https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-highlight_language.
highlight_language = "none"
# Import the QL Lexer to use for syntax highlighting
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() if sphinx_mod.version_info[0]