Skip to content

Commit

Permalink
Try to fix RTD builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nvictus committed Apr 5, 2019
1 parent f7e2318 commit 4d5b5db
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 13 deletions.
4 changes: 2 additions & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ cooler
----

cooler.create
---------
-------------

.. autofunction:: cooler.create.sanitize_pixels
.. autofunction:: cooler.create.sanitize_records

cooler.fileops
---------
--------------

.. autofunction:: cooler.fileops.is_cooler
.. autofunction:: cooler.fileops.is_multires_file
Expand Down
38 changes: 29 additions & 9 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,32 @@
#sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('..'))

autodoc_mock_imports = [
# autodoc_mock_imports = [
# 'numpy',
# 'scipy',
# 'pandas',
# 'h5py',
# 'dask',
# 'cytoolz',
# ]
import mock
MOCK_MODULES = [
'numpy',
'scipy',
'scipy.sparse',
'pandas',
'pandas.algos',
'pandas.api',
'pandas.api.types',
'h5py',
'dask',
'cytoolz',
'multiprocess',
'click',
'asciitree',
'pyyaml',
]
'dask.base',
'dask.array',
'dask.dataframe',
'dask.dataframe.core',
'dask.dataframe.utils']
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = mock.Mock()


# -- General configuration ------------------------------------------------
Expand All @@ -56,7 +70,6 @@
'sphinx.ext.viewcode',
'sphinx.ext.autosummary',
'sphinx.ext.napoleon', # 'numpydoc'
'm2r',
]

numpydoc_show_class_members = False
Expand All @@ -67,11 +80,18 @@

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
source_suffix = '.rst'
source_suffix = {
'.rst': 'restructuredtext',
'.md': 'markdown',
}

# The encoding of source files.
#source_encoding = 'utf-8-sig'

source_parsers = {
'.md': 'recommonmark.parser.CommonMarkParser'
}

# The master toctree document.
master_doc = 'index'

Expand Down
9 changes: 7 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Sphinx
Sphinx>=1.6
sphinx-rtd-theme
m2r
numpydoc
recommonmark
m2r
mock
six
multiprocess
click
asciitree
pyyaml

0 comments on commit 4d5b5db

Please sign in to comment.