Debian Codegraph @

sites/docs/conf.py

raw
1 # Obtain shared config values
2 import os
3 import sys
4
5 sys.path.append(os.path.abspath(".."))
6 sys.path.append(os.path.abspath("../.."))
7 from shared_conf import *
8
9 # Enable autodoc, intersphinx
10 extensions.extend(["sphinx.ext.autodoc"])
11
12 # Autodoc settings
13 autodoc_default_options = {
14 "members": True,
15 "special-members": True,
16 }
17
18 nitpick_ignore = {
19 # stdlib, ref apparently broken w/ nothing I can do? not super relevant
20 # anyway.
21 ("py:class", "_frozen_importlib.ModuleSpec"),
22 # Lexicon has no Sphinx doc site to cross-ref
23 ("py:class", "Lexicon"),
24 # Generic type T not worth documenting
25 ("py:class", "invoke.tasks.T"),
26 }
27
28 # Sister-site links to WWW
29 html_theme_options["extra_nav_links"] = {
30 "Main website": "https://www.pyinvoke.org"
31 }