Merge pull request #8600 from tk0miya/8132_project_copyright

Close #8132: Add project_copyright confval as an alias of copyright
This commit is contained in:
Takeshi KOMIYA
2020-12-28 17:26:49 +09:00
committed by GitHub
3 changed files with 8 additions and 1 deletions
+1
View File
@@ -18,6 +18,7 @@ Features added
* #8022: autodoc: autodata and autoattribute directives does not show right-hand
value of the variable if docstring contains ``:meta hide-value:`` in
info-field-list
* #8132: Add :confval:`project_copyright` as an alias of :confval:`copyright`
Bugs fixed
----------
+5
View File
@@ -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
+2 -1
View File
@@ -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', []),