text: # Configuration file for the Sphinx documentation builder.
  #
  # This file only contains a selection of the most common options. For a full
  # list see the documentation:
  # https://www.sphinx-doc.org/en/master/usage/configuration.html
  
  # -- Path setup --------------------------------------------------------------
  
  # If extensions (or modules to document with autodoc) are in another directory,
  # add these directories to sys.path here. If the directory is relative to the
  # documentation root, use os.path.abspath to make it absolute, like shown here.
  
  import os
  import sys
  import inspect
  import shutil
  
  __location__ = os.path.join(os.getcwd(), os.path.dirname(
      inspect.getfile(inspect.currentframe())))
      
  os.system("pip install -r requirements.txt")
  
  # If extensions (or modules to document with autodoc) are in another directory,
  # add these directories to sys.path here. If the directory is relative to the
  # documentation root, use os.path.abspath to make it absolute, like shown here.
  sys.path.insert(0, os.path.join(__location__, '../'))
  
  # -- Run sphinx-apidoc ------------------------------------------------------
  # This hack is necessary since RTD does not issue `sphinx-apidoc` before running
  # `sphinx-build -b html . _build/html`. See Issue:
  # https://github.com/rtfd/readthedocs.org/issues/1139
  # DON'T FORGET: Check the box "Install your project inside a virtualenv using
  # setup.py install" in the RTD Advanced Settings.
  # Additionally it helps us to avoid running apidoc manually
  
  try:  # for Sphinx >= 1.7
      from sphinx.ext import apidoc
  except ImportError:
      from sphinx import apidoc
  
  output_dir = os.path.join(__location__, "_api")
  module_dir = os.path.join(__location__, "../clslq")
  try:
      shutil.rmtree(output_dir)
  except FileNotFoundError:
      pass
  
  try:
      import sphinx
      from pkg_resources import parse_version
  
      cmd_line_template = "sphinx-apidoc -f -o {outputdir} {moduledir}"
      cmd_line = cmd_line_template.format(outputdir=output_dir, moduledir=module_dir)
  
      args = cmd_line.split(" ")
      if parse_version(sphinx.__version__) >= parse_version('1.7'):
          args = args[1:]
  
      apidoc.main(args)
  except Exception as e:
      print("Running `sphinx-apidoc` failed!\n{}".format(e))
  
  # Active to do rst.
  todo_include_todos=True
  
  # -- Project information -----------------------------------------------------
  
  project = 'CLSLQ'
  copyright = '2021, Connard.Lee'
  author = 'Connard.Lee'
  
  # The short X.Y version
  from clslq import __version__
  version = __version__
  
  # The full version, including alpha/beta/rc tags
  release = version
  
  
  # -- General configuration ---------------------------------------------------
  
  # Add any Sphinx extension module names here, as strings. They can be
  # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  # ones.
  extensions = [
      'sphinx.ext.autodoc',
      'sphinx.ext.intersphinx',
      'sphinx.ext.doctest',
      'sphinx.ext.imgmath',
      'sphinx.ext.todo',
      'sphinx.ext.napoleon',
      'sphinx.ext.autosummary',
      'sphinx.ext.githubpages',
      'sphinx.ext.graphviz',
      'sphinx.ext.inheritance_diagram',
      'sphinx.ext.coverage',
      'recommonmark',
      'sphinx_markdown_tables',
      'sphinx_rtd_theme'
  ]
  
  # Add any paths that contain templates here, relative to this directory.
  templates_path = ['templates']
  
  # The language for content autogenerated by Sphinx. Refer to documentation
  # for a list of supported languages.
  #
  # This is also used if you do content translation via gettext catalogs.
  # Usually you set "language" from the command line for these cases.
  language = 'en'
  
  # List of patterns, relative to source directory, that match files and
  # directories to ignore when looking for source files.
  # This pattern also affects html_static_path and html_extra_path.
  exclude_patterns = []
  
  source_suffix = {
      '.rst': 'restructuredtext',
      '.md': 'markdown',
  }
  
  add_module_names = False
  # -- Options for HTML output -------------------------------------------------
  
  # The theme to use for HTML and HTML Help pages.  See the documentation for
  # a list of builtin themes.
  #
  html_theme = 'alabaster'
  html_theme = 'sphinx_rtd_theme'
  html_logo = 'logo.png'
  html_favicon = 'favicon.ico'
  html_show_sourcelink = False
  html_show_sphinx = False
  
  # Add any paths that contain custom static files (such as style sheets) here,
  # relative to this directory. They are copied after the builtin static files,
  # so a file named "default.css" will overwrite the builtin "default.css".
  html_static_path = ['static']
  
  
  # -- Extension configuration -------------------------------------------------
  
  # -- Options for intersphinx extension ---------------------------------------
  
  # Example configuration for intersphinx: refer to the Python standard library.
  intersphinx_mapping = {
      'python': ('https://docs.python.org/3', None),
  }
  
  # -- Options for todo extension ----------------------------------------------
  
  # If true, `todo` and `todoList` produce output, else they produce nothing.
  todo_include_todos = True
  
  html_sidebars = {
      '**': ['localtoc.html', 'globaltoc.html', 'relations.html', 'sourcelink.html', 'searchbox.html'],
      'using/windows': ['windowssidebar.html', 'searchbox.html'],
  }
  
  