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 211a32b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ sphinx:
# configuration: mkdocs.yml

# Optionally build your docs in additional formats such as PDF and ePub
formats: all
formats: all
16 changes: 14 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
#
import os
import sys
sys.path.insert(0, os.path.abspath('../../framenet_tools/'))

from unittest.mock import MagicMock

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


# -- Project information -----------------------------------------------------
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 211a32b

Please sign in to comment.