diff options
author | Georg Brandl <georg@python.org> | 2009-09-07 23:18:17 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-09-07 23:18:17 +0200 |
commit | 6769daa80a8ce873072a88a751b4ecb05f66467b (patch) | |
tree | 9e95aa84a17413438719db030298f7a633bc2515 /sphinx/ext/autodoc.py | |
parent | 9101593b0183a566248bfea40232bd9328fb8004 (diff) | |
download | sphinx-git-6769daa80a8ce873072a88a751b4ecb05f66467b.tar.gz |
autodoc: generate directives including domain name.
Diffstat (limited to 'sphinx/ext/autodoc.py')
-rw-r--r-- | sphinx/ext/autodoc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py index 3501e15b9..579dcc194 100644 --- a/sphinx/ext/autodoc.py +++ b/sphinx/ext/autodoc.py @@ -390,9 +390,11 @@ class Documenter(object): def add_directive_header(self, sig): """Add the directive header and options to the generated content.""" + domain = getattr(self, 'domain', 'py') directive = getattr(self, 'directivetype', self.objtype) name = self.format_name() - self.add_line(u'.. %s:: %s%s' % (directive, name, sig), '<autodoc>') + self.add_line(u'.. %s:%s:: %s%s' % (domain, directive, name, sig), + '<autodoc>') if self.options.noindex: self.add_line(u' :noindex:', '<autodoc>') if self.objpath: |