diff --git a/docs/source/conf.py b/docs/source/conf.py index cc1525489df15b4a7584a6d1c65a4dda7e1c0ab2..5c588cf6493f2b811dcab393aa5f1b13fcb7f540 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -14,6 +14,14 @@ # import sys # sys.path.insert(0, os.path.abspath('.')) +import os +import sys +sys.path.insert(0, os.path.abspath( + os.path.join( + os.path.dirname(__file__), + '..', '..', 'inventory_provider'))) + + # -- Project information ----------------------------------------------------- @@ -31,6 +39,9 @@ release = '0.57' # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ + 'sphinx_rtd_theme', + 'sphinx.ext.autodoc', + 'sphinx.ext.coverage' ] # Add any paths that contain templates here, relative to this directory. @@ -52,4 +63,9 @@ html_theme = 'alabaster' # Add any paths that contain custom static files (such as style sheets) here, # 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'] \ No newline at end of file +html_static_path = ['_static'] + +# Both the class’ and the __init__ method’s docstring +# are concatenated and inserted. +autoclass_content = "both" +autodoc_typehints = "none"