|
12 | 12 | # |
13 | 13 | import os |
14 | 14 | import sys |
15 | | -sys.path.insert(0, os.path.abspath(os.path.join('..'))) |
| 15 | + |
| 16 | +sys.path.insert(0, os.path.abspath(os.path.join(".."))) |
16 | 17 |
|
17 | 18 | import tuf |
18 | 19 |
|
19 | 20 | # -- Project information ----------------------------------------------------- |
20 | 21 |
|
21 | | -project = 'TUF' |
22 | | -copyright = '2021, New York University and the TUF contributors' |
23 | | -author = 'New York University and the TUF contributors' |
| 22 | +project = "TUF" |
| 23 | +copyright = "2021, New York University and the TUF contributors" |
| 24 | +author = "New York University and the TUF contributors" |
24 | 25 |
|
25 | 26 |
|
26 | 27 | # -- General configuration --------------------------------------------------- |
27 | 28 |
|
28 | | -master_doc = 'index' |
| 29 | +master_doc = "index" |
29 | 30 |
|
30 | 31 | # Add any Sphinx extension module names here, as strings. They can be |
31 | 32 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
32 | 33 | # ones. |
33 | 34 | extensions = [ |
34 | | - 'sphinx.ext.napoleon', 'sphinx.ext.autosummary', |
35 | | - 'sphinx.ext.autosectionlabel' |
| 35 | + "sphinx.ext.napoleon", |
| 36 | + "sphinx.ext.autosummary", |
| 37 | + "sphinx.ext.autosectionlabel", |
36 | 38 | ] |
37 | 39 |
|
38 | 40 | autosectionlabel_prefix_document = True |
39 | 41 |
|
40 | 42 | # Add any paths that contain templates here, relative to this directory. |
41 | | -templates_path = ['_templates'] |
| 43 | +templates_path = ["_templates"] |
42 | 44 |
|
43 | 45 | # -- Options for HTML output ------------------------------------------------- |
44 | 46 |
|
45 | 47 | # The theme to use for HTML and HTML Help pages. See the documentation for |
46 | 48 | # a list of builtin themes. |
47 | 49 | # |
48 | | -html_theme = 'sphinx_rtd_theme' |
49 | | -html_theme_options = { |
50 | | - 'logo_only': True |
51 | | -} |
52 | | -html_logo = 'tuf-horizontal-white.png' |
53 | | -html_favicon = 'tuf-icon-32.png' |
| 50 | +html_theme = "sphinx_rtd_theme" |
| 51 | +html_theme_options = {"logo_only": True} |
| 52 | +html_logo = "tuf-horizontal-white.png" |
| 53 | +html_favicon = "tuf-icon-32.png" |
54 | 54 |
|
55 | 55 |
|
56 | 56 | # Add any paths that contain custom static files (such as style sheets) here, |
57 | 57 | # relative to this directory. They are copied after the builtin static files, |
58 | 58 | # so a file named "default.css" will overwrite the builtin "default.css". |
59 | | -#html_static_path = ['_static'] |
| 59 | +# html_static_path = ['_static'] |
60 | 60 |
|
61 | 61 | # -- Autodoc configuration --------------------------------------------------- |
62 | 62 | # https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html |
63 | 63 |
|
64 | | -autodoc_mock_imports = ['securesystemslib'] |
| 64 | +autodoc_mock_imports = ["securesystemslib"] |
65 | 65 |
|
66 | 66 | # Tone down the "tuf.api.metadata." repetition |
67 | 67 | add_module_names = False |
|
71 | 71 | autodoc_typehints = "description" |
72 | 72 |
|
73 | 73 | autodoc_default_options = { |
74 | | - 'members': True, |
75 | | - 'inherited-members': 'Exception', # excl. members inherited from 'Exception' |
76 | | - 'exclude-members': 'to_dict, from_dict' |
| 74 | + "members": True, |
| 75 | + "inherited-members": "Exception", # excl. members inherited from 'Exception' |
| 76 | + "exclude-members": "to_dict, from_dict", |
77 | 77 | } |
| 78 | + |
| 79 | +# Version |
| 80 | +version = tuf.__version__ |
0 commit comments