mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
merge with stable
This commit is contained in:
commit
4aa4d08a0a
1
CHANGES
1
CHANGES
@ -171,6 +171,7 @@ Bugs fixed
|
||||
* PR#297, #1571: Add imgpath property to all builders. It make easier to
|
||||
develop builder extensions. Thanks to Takeshi Komiya.
|
||||
* #1584: Point to master doc in HTML "top" link.
|
||||
* #1585: Autosummary of modules broken in Sphinx-1.2.3.
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
|
@ -58,6 +58,7 @@ import re
|
||||
import sys
|
||||
import inspect
|
||||
import posixpath
|
||||
from types import ModuleType
|
||||
|
||||
from six import text_type
|
||||
from docutils.parsers.rst import directives
|
||||
@ -253,7 +254,7 @@ class Autosummary(Directive):
|
||||
|
||||
self.result = ViewList() # initialize for each documenter
|
||||
full_name = real_name
|
||||
if full_name.startswith(modname + '.'):
|
||||
if not isinstance(obj, ModuleType):
|
||||
# give explicitly separated module name, so that members
|
||||
# of inner classes can be documented
|
||||
full_name = modname + '::' + full_name[len(modname)+1:]
|
||||
|
Loading…
Reference in New Issue
Block a user