|
10 | 10 | # All configuration values have a default; values that are commented out
|
11 | 11 | # serve to show the default.
|
12 | 12 |
|
| 13 | +import datetime |
13 | 14 | import os
|
14 | 15 | import sys
|
15 | 16 |
|
|
30 | 31 | "nbsphinx",
|
31 | 32 | "sphinx_gallery.load_style",
|
32 | 33 | "sphinx.ext.autodoc",
|
33 |
| - "sphinx_autodoc_typehints", |
34 |
| - "sphinx.ext.doctest", |
35 | 34 | "sphinx.ext.viewcode",
|
36 | 35 | "sphinx.ext.autosectionlabel",
|
| 36 | + "sphinx.ext.napoleon", |
37 | 37 | ]
|
38 | 38 |
|
| 39 | +# Napoleon settings. We only accept Google-style docstrings. |
| 40 | +napoleon_google_docstring = True |
| 41 | +napoleon_numpy_docstring = False |
| 42 | + |
39 | 43 | # AutosectionLabel settings.
|
40 | 44 | # Uses a <page>:<label> schema which doesn't work for duplicate sub-section
|
41 | 45 | # labels, so set max depth.
|
42 | 46 | autosectionlabel_prefix_document = True
|
43 | 47 | autosectionlabel_maxdepth = 2
|
44 | 48 |
|
45 | 49 | # AutodocTypehints settings.
|
| 50 | +autodoc_typehints = 'description' |
46 | 51 | always_document_param_types = True
|
47 | 52 | typehints_defaults = "comma"
|
48 | 53 |
|
|
60 | 65 |
|
61 | 66 | # General information about the project.
|
62 | 67 | project = "redis-py"
|
63 |
| -copyright = "2023, Redis Inc" |
| 68 | +current_year = datetime.datetime.now().year |
| 69 | +copyright = f"{current_year}, Redis Inc" |
64 | 70 |
|
65 | 71 | # The version info for the project you're documenting, acts as replacement for
|
66 | 72 | # |version| and |release|, also used in various other places throughout the
|
|
0 commit comments