Debian Codegraph @

docs/conf.py

raw
1 from pkg_resources import get_distribution
2
3 project = "extension-helpers"
4 copyright = "2019, The Astropy Developers"
5 author = "The Astropy Developers"
6
7 # We need to get the version number from the package
8 version = release = get_distribution("extension-helpers").version
9
10 extensions = [
11 "sphinx.ext.autodoc",
12 "sphinx.ext.doctest",
13 "sphinx.ext.intersphinx",
14 "sphinx.ext.napoleon",
15 "sphinx_automodapi.automodapi",
16 ]
17
18 intersphinx_mapping = {
19 "python": ("https://docs.python.org/3/", None),
20 "setuptools": ("https://setuptools.pypa.io/en/latest/", None),
21 }
22
23 # The suffix(es) of source filenames.
24 source_suffix = ".rst"
25
26 # The master toctree document.
27 master_doc = "index"
28
29 # The language for content autogenerated by Sphinx. Refer to documentation
30 # for a list of supported languages.
31 language = "en"
32
33 # List of patterns, relative to source directory, that match files and
34 # directories to ignore when looking for source files.
35 # This pattern also affects html_static_path and html_extra_path.
36 exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
37
38 # The name of the Pygments (syntax highlighting) style to use.
39 pygments_style = "sphinx"
40
41 # The theme to use for HTML and HTML Help pages. See the documentation for
42 # a list of builtin themes.
43 html_theme = "alabaster"
44
45 html_theme_options = {
46 "description": "A build time package to simplify C/Cython extensions.",
47 "code_font_family": "'Fira Code', monospace",
48 "github_user": "astropy",
49 "github_repo": "extension-helpers",
50 "sidebar_width": "300px",
51 }
52
53 # Enable nitpicky mode to pick reference issues
54 default_role = "obj"
55 nitpicky = True