|
15 | 15 | # sys.path.insert(0, os.path.abspath('.')) |
16 | 16 |
|
17 | 17 | import sphinx_bootstrap_theme |
| 18 | + |
18 | 19 | from firebird.base.__about__ import __version__ |
19 | 20 |
|
20 | 21 | # -- Project information ----------------------------------------------------- |
21 | 22 |
|
22 | | -project = 'Firebird-base' |
23 | | -copyright = '2020-2024, The Firebird Project' |
24 | | -author = 'Pavel Císař' |
| 23 | +project = "Firebird-base" |
| 24 | +copyright = "2020-2025, The Firebird Project" |
| 25 | +author = "Pavel Císař" |
25 | 26 |
|
26 | 27 | # The short X.Y version |
27 | 28 | version = __version__ |
|
36 | 37 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
37 | 38 | # ones. |
38 | 39 | extensions = [ |
39 | | - 'sphinx.ext.intersphinx', |
40 | | - 'sphinx.ext.autodoc', |
41 | | - 'sphinx.ext.napoleon', |
42 | | - 'sphinx.ext.viewcode', |
43 | | - 'sphinx.ext.autosectionlabel', |
| 40 | + "sphinx.ext.intersphinx", |
| 41 | + "sphinx.ext.autodoc", |
| 42 | + "sphinx.ext.napoleon", |
| 43 | + "sphinx.ext.viewcode", |
| 44 | + "sphinx.ext.autosectionlabel", |
44 | 45 | #'sphinx_autodoc_typehints', |
45 | | - 'sphinx.ext.todo', |
| 46 | + "sphinx.ext.todo", |
46 | 47 | #'sphinx.ext.coverage', |
47 | 48 | ] |
48 | 49 |
|
49 | 50 | # Add any paths that contain templates here, relative to this directory. |
50 | | -templates_path = ['_templates'] |
| 51 | +templates_path = ["_templates"] |
51 | 52 |
|
52 | 53 | # The suffix(es) of source filenames. |
53 | 54 | # You can specify multiple suffix as a list of string: |
54 | 55 | # |
55 | 56 | # source_suffix = ['.rst', '.md'] |
56 | | -source_suffix = '.txt' |
| 57 | +source_suffix = ".txt" |
57 | 58 |
|
58 | 59 | # List of patterns, relative to source directory, that match files and |
59 | 60 | # directories to ignore when looking for source files. |
60 | 61 | # This pattern also affects html_static_path and html_extra_path. |
61 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'requirements.txt'] |
| 62 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "requirements.txt"] |
62 | 63 |
|
63 | | -default_role = 'py:obj' |
| 64 | +default_role = "py:obj" |
64 | 65 |
|
65 | 66 | # -- Options for HTML output ------------------------------------------------- |
66 | 67 |
|
67 | | -html_favicon = '_static/fb-favicon.png' |
| 68 | +html_favicon = "_static/fb-favicon.png" |
68 | 69 |
|
69 | 70 | # The theme to use for HTML and HTML Help pages. See the documentation for |
70 | 71 | # a list of builtin themes. |
71 | 72 | # |
72 | 73 | #html_theme = 'alabaster' |
73 | | -html_theme = 'bootstrap' |
| 74 | +html_theme = "bootstrap" |
74 | 75 | html_theme_path = sphinx_bootstrap_theme.get_html_theme_path() |
75 | 76 |
|
76 | 77 | # Add any paths that contain custom static files (such as style sheets) here, |
77 | 78 | # relative to this directory. They are copied after the builtin static files, |
78 | 79 | # so a file named "default.css" will overwrite the builtin "default.css". |
79 | | -html_static_path = ['_static'] |
| 80 | +html_static_path = ["_static"] |
80 | 81 |
|
81 | 82 | # bootstrap theme config |
82 | 83 |
|
|
91 | 92 | #'navbar_title': "Firebird-base", |
92 | 93 |
|
93 | 94 | # Tab name for entire site. (Default: "Site") |
94 | | - 'navbar_site_name': "Site", |
| 95 | + "navbar_site_name": "Site", |
95 | 96 |
|
96 | 97 | # A list of tuples containing pages or urls to link to. |
97 | 98 | # Valid tuples should be in the following forms: |
|
100 | 101 | # (name, "http://example.com", True) # arbitrary absolute url |
101 | 102 | # Note the "1" or "True" value above as the third argument to indicate |
102 | 103 | # an arbitrary url. |
103 | | - 'navbar_links': [ |
| 104 | + "navbar_links": [ |
104 | 105 | ("Introduction", "introduction"), |
105 | 106 | ("Modules", "modules"), |
106 | 107 | ("Index", "genindex"), |
|
109 | 110 | ], |
110 | 111 |
|
111 | 112 | # Render the next and previous page links in navbar. (Default: true) |
112 | | - 'navbar_sidebarrel': False, |
| 113 | + "navbar_sidebarrel": False, |
113 | 114 |
|
114 | 115 | # Render the current pages TOC in the navbar. (Default: true) |
115 | 116 | #'navbar_pagenav': True, |
|
119 | 120 |
|
120 | 121 | # Global TOC depth for "site" navbar tab. (Default: 1) |
121 | 122 | # Switching to -1 shows all levels. |
122 | | - 'globaltoc_depth': 3, |
| 123 | + "globaltoc_depth": 3, |
123 | 124 |
|
124 | 125 | # Include hidden TOCs in Site navbar? |
125 | 126 | # |
|
128 | 129 | # will break. |
129 | 130 | # |
130 | 131 | # Values: "true" (default) or "false" |
131 | | - 'globaltoc_includehidden': "false", |
| 132 | + "globaltoc_includehidden": "false", |
132 | 133 |
|
133 | 134 | # HTML navbar class (Default: "navbar") to attach to <div> element. |
134 | 135 | # For black navbar, do "navbar navbar-inverse" |
135 | | - 'navbar_class': "navbar navbar-inverse", |
| 136 | + "navbar_class": "navbar navbar-inverse", |
136 | 137 |
|
137 | 138 | # Fix navigation bar to top of page? |
138 | 139 | # Values: "true" (default) or "false" |
139 | | - 'navbar_fixed_top': "true", |
| 140 | + "navbar_fixed_top": "true", |
140 | 141 |
|
141 | 142 | # Location of link to source. |
142 | 143 | # Options are "nav" (default), "footer" or anything else to exclude. |
143 | | - 'source_link_position': "none", |
| 144 | + "source_link_position": "none", |
144 | 145 |
|
145 | 146 | # Bootswatch (http://bootswatch.com/) theme. |
146 | 147 | # |
|
154 | 155 | # - Bootstrap 2: https://bootswatch.com/2 |
155 | 156 | # - Bootstrap 3: https://bootswatch.com/3 |
156 | 157 | #'bootswatch_theme': "united", # cerulean, flatly, lumen, materia, united, yeti |
157 | | - 'bootswatch_theme': "cerulean", |
| 158 | + "bootswatch_theme": "cerulean", |
158 | 159 |
|
159 | 160 | # Choose Bootstrap version. |
160 | 161 | # Values: "3" (default) or "2" (in quotes) |
161 | | - 'bootstrap_version': "2", |
| 162 | + "bootstrap_version": "2", |
162 | 163 | } |
163 | 164 |
|
164 | 165 | # -- Extension configuration ------------------------------------------------- |
|
168 | 169 | # Autodoc options |
169 | 170 | # --------------- |
170 | 171 | autodoc_default_options = { |
171 | | - 'content': 'both', |
172 | | - 'members': True, |
173 | | - 'member-order': 'groupwise', |
174 | | - 'undoc-members': True, |
175 | | - 'exclude-members': '__weakref__', |
176 | | - 'show-inheritance': True, |
177 | | - 'no-inherited-members': True, |
| 172 | + "content": "both", |
| 173 | + "members": True, |
| 174 | + "member-order": "groupwise", |
| 175 | + "undoc-members": True, |
| 176 | + "exclude-members": "__weakref__", |
| 177 | + "show-inheritance": True, |
| 178 | + "no-inherited-members": True, |
178 | 179 | } |
179 | 180 | set_type_checking_flag = True |
180 | | -autodoc_class_signature = 'mixed' |
| 181 | +autodoc_class_signature = "mixed" |
181 | 182 | always_document_param_types = True |
182 | | -autodoc_typehints = 'both' # default 'signature' |
183 | | -autodoc_typehints_format = 'short' |
184 | | -autodoc_typehints_description_target = 'all' |
185 | | - |
186 | | -autodoc_type_aliases = {'Item': '~firebird.base.collections.Item', |
187 | | - 'TypeSpec': '~firebird.base.collections.TypeSpec', |
188 | | - 'ItemExpr': '~firebird.base.collections.ItemExpr', |
189 | | - 'FilterExpr': '~firebird.base.collections.FilterExpr', |
190 | | - 'CheckExpr': '~firebird.base.collections.CheckExpr', |
| 183 | +autodoc_typehints = "both" # default 'signature' |
| 184 | +autodoc_typehints_format = "short" |
| 185 | +autodoc_typehints_description_target = "all" |
| 186 | + |
| 187 | +autodoc_type_aliases = {"Item": "~firebird.base.collections.Item", |
| 188 | + "TypeSpec": "~firebird.base.collections.TypeSpec", |
| 189 | + "ItemExpr": "~firebird.base.collections.ItemExpr", |
| 190 | + "FilterExpr": "~firebird.base.collections.FilterExpr", |
| 191 | + "CheckExpr": "~firebird.base.collections.CheckExpr", |
191 | 192 | } |
192 | 193 |
|
193 | 194 | # Napoleon options |
|
208 | 209 | # -- Options for intersphinx extension --------------------------------------- |
209 | 210 |
|
210 | 211 | # Example configuration for intersphinx: refer to the Python standard library. |
211 | | -intersphinx_mapping = {'python': ('https://docs.python.org/3', None)} |
| 212 | +intersphinx_mapping = {"python": ("https://docs.python.org/3", None)} |
212 | 213 |
|
213 | 214 | # -- Options for todo extension ---------------------------------------------- |
214 | 215 |
|
|
0 commit comments