blob: 2267af0cbf69472827c49877d65445d34369347a [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = "ADBC"
copyright = "2022, Apache Arrow Developers"
author = "the Apache Arrow Developers"
release = "0.2.0"
# Needed to generate version switcher
version = release
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
exclude_patterns = []
extensions = [
"breathe",
"numpydoc",
"sphinx.ext.autodoc",
"sphinx.ext.doctest",
"sphinx.ext.intersphinx",
"sphinx_copybutton",
"sphinx_design",
]
templates_path = ["_templates"]
# -- Options for autodoc ----------------------------------------------------
try:
import adbc_driver_manager
import adbc_driver_manager.dbapi # noqa: F401
except ImportError:
autodoc_mock_imports = ["adbc_driver_manager"]
try:
import adbc_driver_postgresql
import adbc_driver_postgresql.dbapi # noqa: F401
except ImportError:
autodoc_mock_imports = ["adbc_driver_postgresql"]
try:
import adbc_driver_sqlite
import adbc_driver_sqlite.dbapi # noqa: F401
except ImportError:
autodoc_mock_imports = ["adbc_driver_sqlite"]
autodoc_default_options = {
"show-inheritance": True,
}
# -- Options for Breathe -----------------------------------------------------
breathe_default_project = "adbc"
breathe_projects = {
"adbc": "../../c/apidoc/xml/",
}
# -- Options for doctest -----------------------------------------------------
doctest_global_setup = """
try:
import adbc_driver_sqlite
import adbc_driver_sqlite.dbapi # noqa: F401
except ImportError:
adbc_driver_sqlite = None
"""
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_css_files = ["css/custom.css"]
html_static_path = ["_static"]
html_theme = "furo"
html_theme_options = {
"dark_logo": "logo-dark.png",
"light_logo": "logo-light.png",
"source_repository": "https://github.com/apache/arrow-adbc/",
"source_branch": "main",
"source_directory": "docs/source/",
}
# -- Options for Intersphinx -------------------------------------------------
intersphinx_mapping = {
"arrow": ("https://arrow.apache.org/docs/", None),
}
# -- Options for numpydoc ----------------------------------------------------
numpydoc_class_members_toctree = False