mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-08-07 11:45:10 -05:00
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:
@@ -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
|
||||
----------
|
||||
|
||||
@@ -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
@@ -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', []),
|
||||
|
||||
Reference in New Issue
Block a user