|
8 | 8 | import sys |
9 | 9 |
|
10 | 10 | sys.path.append(os.path.abspath('.')) |
11 | | -sys.path.append(os.path.abspath('..')) |
| 11 | +sys.path.append(os.path.abspath("..")) |
12 | 12 |
|
13 | 13 | # 3rd party |
14 | 14 | import domdf_python_tools |
|
32 | 32 | slug = re.sub(r'\W+', '-', project.lower()) |
33 | 33 | release = version = __version__ |
34 | 34 | copyright = "2019-2020 Dominic Davis-Foster" # pylint: disable=redefined-builtin |
35 | | -language = 'en' |
| 35 | +language = "en" |
36 | 36 | package_root = "domdf_python_tools" |
37 | 37 |
|
38 | 38 | extensions = [ |
39 | | - 'sphinx_toolbox', |
40 | | - 'sphinx_toolbox.more_autodoc', |
41 | | - 'sphinx_toolbox.more_autosummary', |
42 | | - 'sphinx_toolbox.tweaks.param_dash', |
43 | | - 'sphinx.ext.intersphinx', |
44 | | - 'sphinx.ext.mathjax', |
45 | | - 'sphinxcontrib.httpdomain', |
46 | | - 'sphinxcontrib.extras_require', |
47 | | - 'sphinx.ext.todo', |
48 | | - 'sphinxemoji.sphinxemoji', |
49 | | - 'notfound.extension', |
50 | | - 'sphinx_copybutton', |
51 | | - 'sphinxcontrib.default_values', |
52 | | - 'sphinxcontrib.toctree_plus', |
53 | | - 'seed_intersphinx_mapping', |
54 | | - 'sphinx_autofixture', |
| 39 | + "sphinx_toolbox", |
| 40 | + "sphinx_toolbox.more_autodoc", |
| 41 | + "sphinx_toolbox.more_autosummary", |
| 42 | + "sphinx_toolbox.tweaks.param_dash", |
| 43 | + "sphinx.ext.intersphinx", |
| 44 | + "sphinx.ext.mathjax", |
| 45 | + "sphinxcontrib.httpdomain", |
| 46 | + "sphinxcontrib.extras_require", |
| 47 | + "sphinx.ext.todo", |
| 48 | + "sphinxemoji.sphinxemoji", |
| 49 | + "notfound.extension", |
| 50 | + "sphinx_copybutton", |
| 51 | + "sphinxcontrib.default_values", |
| 52 | + "sphinxcontrib.toctree_plus", |
| 53 | + "seed_intersphinx_mapping", |
| 54 | + "sphinx_autofixture", |
55 | 55 | ] |
56 | 56 |
|
57 | | -sphinxemoji_style = 'twemoji' |
| 57 | +sphinxemoji_style = "twemoji" |
58 | 58 | todo_include_todos = bool(os.environ.get("SHOW_TODOS", 0)) |
59 | 59 | gitstamp_fmt = "%d %b %Y" |
60 | 60 |
|
61 | | -templates_path = ['_templates'] |
62 | | -html_static_path = ['_static'] |
63 | | -source_suffix = '.rst' |
| 61 | +templates_path = ["_templates"] |
| 62 | +html_static_path = ["_static"] |
| 63 | +source_suffix = ".rst" |
64 | 64 | exclude_patterns = [] |
65 | 65 |
|
66 | | -master_doc = 'index' |
67 | | -suppress_warnings = ['image.nonlocal_uri'] |
68 | | -pygments_style = 'default' |
| 66 | +master_doc = "index" |
| 67 | +suppress_warnings = ["image.nonlocal_uri"] |
| 68 | +pygments_style = "default" |
69 | 69 |
|
70 | 70 | intersphinx_mapping = { |
71 | | - 'python': ('https://docs.python.org/3/', None), |
72 | | - 'sphinx': ('https://www.sphinx-doc.org/en/stable/', None), |
73 | | - 'pandas': ('https://pandas.pydata.org/docs/', None), |
74 | | - 'consolekit': ('https://consolekit.readthedocs.io/en/latest/', None), |
75 | | - 'pytest': ('https://docs.pytest.org/en/stable', None), |
| 71 | + "python": ("https://docs.python.org/3/", None), |
| 72 | + "sphinx": ("https://www.sphinx-doc.org/en/stable/", None), |
| 73 | + "pandas": ("https://pandas.pydata.org/docs/", None), |
| 74 | + "consolekit": ("https://consolekit.readthedocs.io/en/latest/", None), |
| 75 | + "pytest": ("https://docs.pytest.org/en/stable", None), |
76 | 76 | } |
77 | 77 |
|
78 | | -html_theme = 'domdf_sphinx_theme' |
79 | | -html_theme_options = { |
80 | | - 'logo_only': False, |
81 | | - } |
| 78 | +html_theme = "domdf_sphinx_theme" |
| 79 | +html_theme_options = {"logo_only": False} |
82 | 80 | html_theme_path = ["../.."] |
83 | 81 | html_show_sourcelink = True # True will show link to source |
84 | 82 |
|
85 | 83 | html_context = { |
86 | | - 'display_github': True, |
87 | | - 'github_user': 'domdfcoding', |
88 | | - 'github_repo': 'domdf_python_tools', |
89 | | - 'github_version': 'master', |
90 | | - 'conf_py_path': '/doc-source/', |
| 84 | + "display_github": True, |
| 85 | + "github_user": "domdfcoding", |
| 86 | + "github_repo": "domdf_python_tools", |
| 87 | + "github_version": "master", |
| 88 | + "conf_py_path": "/doc-source/", |
91 | 89 | } |
92 | | - |
93 | 90 | htmlhelp_basename = slug |
94 | 91 |
|
95 | | -latex_documents = [('index', f'{slug}.tex', project, author, 'manual')] |
96 | | -man_pages = [('index', slug, project, [author], 1)] |
97 | | -texinfo_documents = [('index', slug, project, author, slug, project, 'Miscellaneous')] |
| 92 | +latex_documents = [("index", f'{slug}.tex', project, author, "manual")] |
| 93 | +man_pages = [("index", slug, project, [author], 1)] |
| 94 | +texinfo_documents = [("index", slug, project, author, slug, project, "Miscellaneous")] |
98 | 95 |
|
99 | 96 | toctree_plus_types = { |
100 | 97 | "class", |
|
138 | 135 | "__hash__", |
139 | 136 | ] |
140 | 137 | autodoc_default_options = { |
141 | | - 'members': None, # Include all members (methods). |
142 | | - 'special-members': None, |
| 138 | + "members": None, # Include all members (methods). |
| 139 | + "special-members": None, |
143 | 140 | "autosummary": None, |
144 | 141 | "show-inheritance": None, |
145 | | - 'exclude-members': ','.join(autodoc_exclude_members), |
| 142 | + "exclude-members": ','.join(autodoc_exclude_members), |
146 | 143 | } |
147 | 144 |
|
148 | 145 | manpages_url = "https://manpages.debian.org/{path}" |
0 commit comments