diff options
Diffstat (limited to 'sphinx/directives/other.py')
| -rw-r--r-- | sphinx/directives/other.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py index 448498f8c..138d10c8b 100644 --- a/sphinx/directives/other.py +++ b/sphinx/directives/other.py @@ -127,6 +127,8 @@ class Author(Directive): text = _('Section author: ') elif self.name == 'moduleauthor': text = _('Module author: ') + elif self.name == 'codeauthor': + text = _('Code author: ') else: text = _('Author: ') emph += nodes.Text(text, text) @@ -368,6 +370,7 @@ class Only(Directive): directives.register_directive('toctree', TocTree) directives.register_directive('sectionauthor', Author) directives.register_directive('moduleauthor', Author) +directives.register_directive('codeauthor', Author) directives.register_directive('index', Index) directives.register_directive('deprecated', VersionChange) directives.register_directive('versionadded', VersionChange) |
