Ticket #54759: patch-docs-conf.py.diff

File patch-docs-conf.py.diff, 1.1 KB (added by arjanvandervelde (Arjan van der Velde), 7 years ago)

patch for docs/conf.py

  • docs/conf.py

    old new sys.path.append(os.path.abspath('pyplots')) 
    2626# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
    2727extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest',
    2828              'sphinx.ext.intersphinx', 'sphinx.ext.todo',
    29               'sphinx.ext.coverage', 'sphinx.ext.pngmath',
     29              'sphinx.ext.coverage',
    3030              'sphinx.ext.ifconfig', 'sphinx.ext.viewcode',
    3131                               'matplotlib.sphinxext.plot_directive']
    3232
    man_pages = [ 
    225225# Example configuration for intersphinx: refer to the Python standard library.
    226226intersphinx_mapping = {'bedtools': ('http://bedtools.readthedocs.org/en/latest/', None)}
    227227
    228 class Mock(object):
     228class Mock(list):
    229229    def __init__(self, *args, **kwargs):
    230230        pass
    231231
    class Mock(object): 
    241241        else:
    242242            return Mock()
    243243
     244    def setup(self, *args, **kargs):
     245        pass
     246
    244247MOCK_MODULES = ['numpy', 'matplotlib', 'matplotlib.pyplot',
    245248                'matplotlib.sphinxext', 'matplotlib.sphinxext.plot_directive']
    246249for mod_name in MOCK_MODULES: