mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#41: Recognize C functions as autodocumentable.
This commit is contained in:
parent
49858b41f3
commit
85f67c22e4
@ -541,7 +541,8 @@ class RstGenerator(object):
|
||||
continue
|
||||
|
||||
if what == 'module':
|
||||
if isinstance(member, types.FunctionType):
|
||||
if isinstance(member, (types.FunctionType,
|
||||
types.BuiltinFunctionType)):
|
||||
memberwhat = 'function'
|
||||
elif isinstance(member, types.ClassType) or \
|
||||
isinstance(member, type):
|
||||
|
Loading…
Reference in New Issue
Block a user