Skip to content

Commit

Permalink
fix ReadTheDocs build
Browse files Browse the repository at this point in the history
  • Loading branch information
buzmakov committed Apr 10, 2017
1 parent 86e8112 commit 7041660
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
14 changes: 9 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,18 @@
#texinfo_no_detailmenu = False

todo_include_todos = True
autoclass_content = 'both'
import unittest
sys.path.insert(1, os.path.join('..'))
sys.path.insert(1, os.path.join('..', 'wpg'))
# autoclass_content = 'both'
# import unittest
# sys.path.insert(-1, os.path.join('..'))
# sys.path.insert(-1, os.path.join('..', 'wpg'))

import imp
wpg = imp.load_source('wpg', os.path.join('..', 'wpg', '__init__.py'))


import mock
MOCK_MODULES = ['wpg.srwlpy', 'srwlpy', 'numpy', 'h5py', 'pylab', 'scipy',
'uti_plot', 'uti_math', 'srwl_uti_cryst', 'srwl_uti_src', 'scipy.optimize']
'uti_plot', 'uti_math', 'srwl_uti_cryst', 'srwl_uti_src',
'scipy.optimize']
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = mock.Mock()
4 changes: 2 additions & 2 deletions docs/optical_elements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
:undoc-members:
:show-inheritance:

.. autoclass:: wpg.optical_elements.Aperture
.. .. autoclass:: wpg.optical_elements.Aperture
:members:
:undoc-members:
:show-inheritance:
.. autoclass:: wpg.optical_elements.WF_dist
.. .. autoclass:: wpg.optical_elements.WF_dist
:members:
:undoc-members:
:show-inheritance:
Expand Down
4 changes: 3 additions & 1 deletion reqiements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ matplotlib
h5py
pytest
jupyter
libgcc
libgcc
mock
sphinx

0 comments on commit 7041660

Please sign in to comment.