text: # -*- coding: utf-8 -*-
  #
  # Configuration file for the Sphinx documentation builder.
  #
  # This file does only contain a selection of the most common options. For a
  # full list see the documentation:
  # http://www.sphinx-doc.org/en/master/config
  
  
  # -- Project information -----------------------------------------------------
  
  copyright = '2018, Nathan Klapstein, Thomas Lorincz'
  author = 'Nathan Klapstein, Thomas Lorincz'
  project = "mini-project-2"
  version = "0.0"
  release = "0.0.0"
  
  # -- 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.viewcode',
      "sphinx.ext.intersphinx",
      "sphinx_autodoc_typehints",
      "sphinxarg.ext",
  ]
  
  source_suffix = '.rst'
  
  master_doc = 'index'
  
  # 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 = None
  
  # 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 = ['_build', 'Thumbs.db', '.DS_Store']
  
  # The name of the Pygments (syntax highlighting) style to use.
  pygments_style = 'sphinx'
  
  
  # -- 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 = 'sphinx_rtd_theme'
  
  html_theme_options = {
      'logo_only': False,
      'display_version': True,
      'prev_next_buttons_location': 'bottom',
      'style_external_links': False,
      # Toc options
      'collapse_navigation': True,
      'sticky_navigation': True,
      'navigation_depth': 4,
      'includehidden': True,
      'titles_only': False
  }
  
  
  # -- Options for HTMLHelp output ---------------------------------------------
  
  # Output file base name for HTML help builder.
  htmlhelp_basename = 'mini_project_2doc'
  
  
  # -- Options for LaTeX output ------------------------------------------------
  
  latex_elements = {
      # The paper size ('letterpaper' or 'a4paper').
      #
      # 'papersize': 'letterpaper',
  
      # The font size ('10pt', '11pt' or '12pt').
      #
      # 'pointsize': '10pt',
  
      # Additional stuff for the LaTeX preamble.
      #
      # 'preamble': '',
  
      # Latex figure (float) alignment
      #
      # 'figure_align': 'htbp',
  }
  
  # Grouping the document tree into LaTeX files. List of tuples
  # (source start file, target name, title,
  #  author, documentclass [howto, manual, or own class]).
  latex_documents = [
      (master_doc, 'mini_project_2.tex', 'mini-project-2 Documentation',
       author, 'manual'),
  ]
  
  
  # -- Options for manual page output ------------------------------------------
  
  # One entry per manual page. List of tuples
  # (source start file, name, description, authors, manual section).
  man_pages = [
      (master_doc, 'mini-project-2', 'mini-project-2 Documentation', [author], 1)
  ]
  
  
  # -- Options for Texinfo output ----------------------------------------------
  
  # Grouping the document tree into Texinfo files. List of tuples
  # (source start file, target name, title, author,
  #  dir menu entry, description, category)
  texinfo_documents = [
      (master_doc, 'mini-project-2', 'mini-project-2 Documentation',
       author, 'mini_project_2', "CMPUT291PROJECTF18 mini project 2",
       'Miscellaneous'),
  ]
  
  
  # -- Extension configuration -------------------------------------------------
  
  intersphinx_mapping = {
      'python': ('https://docs.python.org/3', (None, 'python-inv.txt')),
  }
  
  
  # -- auto api docs generation --
  def run_apidoc(_):
      from sphinx.ext.apidoc import main
      import os
      import sys
      sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
      cur_dir = os.path.abspath(os.path.dirname(__file__))
      module = os.path.join(cur_dir, "..", "mini_project_2")
      main(["--module-first", "--separate", "--implicit-namespaces", module, "--output-dir", "api"])
  
  
  def setup(app):
      app.connect('builder-inited', run_apidoc)
  