Changeset 8755:a46b2baaa59a in orange


Ignore:
Timestamp:
08/24/11 11:15:52 (3 years ago)
Author:
anze <anze.staric@…>
Branch:
default
Convert:
e39541590c0e8c3cdef2a3582cf1352f1a70a51a
Message:

Fixed "unknown directive - autosummary" error when numpydoc was used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/Orange/rst/conf.py

    r8068 r8755  
    3333# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. 
    3434extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.ifconfig', 'numpydoc'] 
     35 
     36 
     37# Numpydoc generates autosummary directives for all undocumented members. Orange documentation only includes documented 
     38# member, so _str_member_list is modified to return [] where a list of undocumented members is originally returned. 
     39import numpydoc 
     40numpydoc.docscrape_sphinx.SphinxDocString._str_member_list # if numpydoc changes, this line will cause an error 
     41numpydoc.docscrape_sphinx.SphinxDocString._str_member_list = lambda x, y : [] 
     42 
    3543 
    3644# Add any paths that contain templates here, relative to this directory. 
Note: See TracChangeset for help on using the changeset viewer.