Skip to content

Commit

Permalink
cleaned up configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdullahshah committed Oct 27, 2020
1 parent 4bb762e commit 7280f10
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions api-docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@
sys.path.append(os.path.abspath('.'))
sys.path.append(os.path.abspath('../'))

#sys.path.insert(0, os.path.abspath('../src2/'))
#sys.path.insert(0, os.path.abspath('../src/'))

print('Sys paths:')
for pathx in sys.path:
print(pathx)
# Temp. workaround for
# https://github.com/agronholm/sphinx-autodoc-typehints/issues/133
warnings.filterwarnings(
Expand Down Expand Up @@ -76,7 +71,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['.py', '_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

# The suffix of source filenames.
source_suffix = '.rst'
Expand All @@ -89,10 +84,6 @@
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True

# MOCK_MODULES = ['numpy', 'sqlalchemy', 'petastorm', 'sqlalchemy.orm']
# for mod_name in MOCK_MODULES:
# sys.modules[mod_name] = mock.Mock()

autodoc_mock_imports = ["numpy", "sqlalchemy", "sqlalchemy_utils",
"sqlalchemy.orm", "sqlalchemy.orm.exc",
"sqlalchemy.types",
Expand Down Expand Up @@ -121,3 +112,11 @@
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ['_static']


def autodoc_skip_member(app, what, name, obj, skip, options):
return False


def setup(app):
app.connect('autodoc-skip-member', autodoc_skip_member)

0 comments on commit 7280f10

Please sign in to comment.