diff options
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | doc/usage/configuration.rst | 5 | ||||
-rw-r--r-- | sphinx/config.py | 3 |
3 files changed, 9 insertions, 1 deletions
@@ -13,6 +13,8 @@ Deprecated Features added -------------- +* #8132: Add :confval:`project_copyright` as an alias of :confval:`copyright` + Bugs fixed ---------- diff --git a/doc/usage/configuration.rst b/doc/usage/configuration.rst index 8165a883a..27401d82e 100644 --- a/doc/usage/configuration.rst +++ b/doc/usage/configuration.rst @@ -70,9 +70,14 @@ Project information The author name(s) of the document. The default value is ``'unknown'``. .. confval:: copyright +.. confval:: project_copyright A copyright statement in the style ``'2008, Author Name'``. + .. versionchanged:: 3.5 + + As an alias, ``project_copyright`` is also allowed. + .. confval:: version The major project version, used as the replacement for ``|version|``. For diff --git a/sphinx/config.py b/sphinx/config.py index 13159d2d2..0c3c0b5ac 100644 --- a/sphinx/config.py +++ b/sphinx/config.py @@ -98,7 +98,8 @@ class Config: # general options 'project': ('Python', 'env', []), 'author': ('unknown', 'env', []), - 'copyright': ('', 'html', []), + 'project_copyright': ('', 'html', [str]), + 'copyright': (lambda c: c.project_copyright, 'html', [str]), 'version': ('', 'env', []), 'release': ('', 'env', []), 'today': ('', 'env', []), |