"""Sphinx configuration.""" import datetime import pkg_resources # Sphinx configuration below. project = "amazon-braket-algorithm-library" version = pkg_resources.require(project)[0].version release = version copyright = f"{datetime.datetime.now().year}, Amazon.com" extensions = [ "sphinxcontrib.apidoc", "sphinx.ext.autodoc", "sphinx.ext.viewcode", "sphinx.ext.napoleon", "sphinx.ext.todo", "sphinx.ext.coverage", ] source_suffix = ".rst" master_doc = "index" autoclass_content = "both" autodoc_member_order = "bysource" default_role = "py:obj" html_theme = "sphinx_rtd_theme" htmlhelp_basename = f"{project}doc" napoleon_use_rtype = False apidoc_module_dir = "../src/braket" apidoc_output_dir = "_apidoc" apidoc_excluded_paths = ["../test"] apidoc_separate_modules = True apidoc_module_first = True apidoc_extra_args = ["-f", "--implicit-namespaces", "-H", "API Reference"]