Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-12-27 12:39:48 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-12-27 12:40:06 +0300
commitc7d15368287b0205686119654b1f6dfe3a392af0 (patch)
treea147ffd6bd5622bcf21b795857d73280e7ee8cb9 /sphinx/config.py
parent4fc93ac13c14b0bc214e36099167f7501e02b342 (diff)
Close #8132: Add project_copyright confval as an alias of copyright
Avoid to pylint error, add a new config variable; project_copyright as an alias of `copyright`.
Diffstat (limited to 'sphinx/config.py')
-rw-r--r--sphinx/config.py3
1 files changed, 2 insertions, 1 deletions
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', []),