Skip to content

Commit

Permalink
Code Documentation fixing, working on #5
Browse files Browse the repository at this point in the history
  • Loading branch information
AMarkard committed Aug 26, 2019
1 parent 778d977 commit 573cbe2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#
import os
import sys

from unittest.mock import MagicMock

sys.path.insert(0, os.path.abspath('../../framenet_tools/'))


Expand Down Expand Up @@ -55,4 +58,13 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

master_doc = 'index'
master_doc = 'index'


class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return MagicMock()

MOCK_MODULES = ['torch', 'torchtext', 'nltk', 'spacy', 'pyfn', 'argparse', 'numpy', 'pandas']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

0 comments on commit 573cbe2

Please sign in to comment.