|
23 | 23 | author = 'Pavel Císař' |
24 | 24 |
|
25 | 25 | # The short X.Y version |
26 | | -version = '1.4.1' |
| 26 | +version = '1.4.2' |
27 | 27 |
|
28 | 28 | # The full version, including alpha/beta/rc tags |
29 | | -release = '1.4.1' |
| 29 | +release = '1.4.2' |
30 | 30 |
|
31 | 31 |
|
32 | 32 | # -- General configuration --------------------------------------------------- |
|
35 | 35 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
36 | 36 | # ones. |
37 | 37 | extensions = [ |
38 | | - 'sphinx.ext.autodoc', |
39 | 38 | 'sphinx.ext.intersphinx', |
| 39 | + 'sphinx.ext.autodoc', |
40 | 40 | 'sphinx.ext.napoleon', |
41 | | - 'sphinx_autodoc_typehints', |
| 41 | + 'sphinx.ext.viewcode', |
| 42 | + 'sphinx.ext.autosectionlabel', |
| 43 | + #'sphinx_autodoc_typehints', |
42 | 44 | 'sphinx.ext.todo', |
43 | | - 'sphinx.ext.coverage', |
| 45 | + #'sphinx.ext.coverage', |
44 | 46 | ] |
45 | 47 |
|
46 | 48 | # Add any paths that contain templates here, relative to this directory. |
|
61 | 63 |
|
62 | 64 | # -- Options for HTML output ------------------------------------------------- |
63 | 65 |
|
| 66 | +html_favicon = '_static/fb-favicon.png' |
| 67 | + |
64 | 68 | # The theme to use for HTML and HTML Help pages. See the documentation for |
65 | 69 | # a list of builtin themes. |
66 | 70 | # |
|
158 | 162 |
|
159 | 163 | # -- Extension configuration ------------------------------------------------- |
160 | 164 |
|
| 165 | +autosectionlabel_prefix_document = True |
| 166 | + |
161 | 167 | # Autodoc options |
162 | 168 | # --------------- |
163 | 169 | autodoc_default_options = { |
|
170 | 176 | 'no-inherited-members': True, |
171 | 177 | } |
172 | 178 | set_type_checking_flag = True |
173 | | -#always_document_param_types = True |
| 179 | +autodoc_class_signature = 'mixed' |
| 180 | +always_document_param_types = True |
| 181 | +autodoc_typehints = 'both' # default 'signature' |
| 182 | +autodoc_typehints_format = 'short' |
| 183 | +autodoc_typehints_description_target = 'all' |
| 184 | + |
| 185 | +autodoc_type_aliases = {'Item': '~firebird.base.collections.Item', |
| 186 | + 'TypeSpec': '~firebird.base.collections.TypeSpec', |
| 187 | + 'ItemExpr': '~firebird.base.collections.ItemExpr', |
| 188 | + 'FilterExpr': '~firebird.base.collections.FilterExpr', |
| 189 | + 'CheckExpr': '~firebird.base.collections.CheckExpr', |
| 190 | + } |
174 | 191 |
|
175 | 192 | # Napoleon options |
176 | 193 | # ---------------- |
177 | 194 | napoleon_include_init_with_doc = True |
178 | 195 | napoleon_include_private_with_doc = True |
179 | 196 | napoleon_include_special_with_doc = True |
180 | | -napoleon_use_admonition_for_examples = True |
| 197 | +napoleon_use_admonition_for_examples = False |
181 | 198 | napoleon_use_admonition_for_notes = True |
182 | 199 | napoleon_use_admonition_for_references = True |
183 | | -#napoleon_use_ivar = True |
| 200 | +napoleon_use_ivar = False |
| 201 | +napoleon_use_rtype = True |
| 202 | +napoleon_use_param = True |
| 203 | +napoleon_use_keyword = True |
| 204 | +napoleon_attr_annotations = True |
| 205 | +napoleon_preprocess_types = True |
184 | 206 |
|
185 | 207 | # -- Options for intersphinx extension --------------------------------------- |
186 | 208 |
|
|
0 commit comments