A bit more testing for autodoc.

This commit is contained in:
Georg Brandl
2008-09-12 15:46:19 +00:00
parent 616cd89807
commit e943dca703
4 changed files with 12 additions and 1 deletions

1
TODO
View File

@@ -5,7 +5,6 @@ Sphinx TODO
- RSS generation
- extension autodoc directives
- files for downloading
- specify node visit functions when adding nodes to app
- decide which static files to include
- remove redundant <ul>s in tocs
- autoattribute in autodoc

View File

@@ -14,6 +14,7 @@ Contents:
includes
markup
math
autodoc
Indices and tables
==================

View File

@@ -373,3 +373,9 @@ class Class(Base):
class CustomDict(dict):
"""Docstring."""
def function(foo, *args, **kwds):
"""
Return spam.
"""
pass

View File

@@ -49,6 +49,11 @@ HTML_XPATH = {
".//pre/span[@class='s']": u'üöä',
".//pre": u'Max Strauß',
},
'autodoc.html': {
".//dt[@id='test_autodoc.Class']": '',
".//dt[@id='test_autodoc.function']/em": '**kwds',
".//dd": 'Return spam.',
},
}
class NslessParser(ET.XMLParser):