diff --git a/docs/source/conf.py b/docs/source/conf.py index f1dd243..ed152a1 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -12,19 +12,15 @@ # import os import sys -sys.path.insert(0, os.path.abspath('../../')) -os.environ['PYTHONPATH'] = ':'.join((os.path.abspath('../..'), os.environ.get('PYTHONPATH', ''))) +sys.path.insert(0, os.path.abspath("../../")) +os.environ["PYTHONPATH"] = ":".join((os.path.abspath("../.."), os.environ.get("PYTHONPATH", ""))) -# -- Project information ----------------------------------------------------- -about = {} -with open('../../__about__.py') as a: - exec(a.read(), about) -project = about['__title__'] -copyright = about['__copyright__'] -author = about['__author__'] -release = about['__version__'] +# -- Project information ----------------------------------------------------- +project = "PAMtools" +copyright = "2020 Fabio D. Steffen" +author = "Fabio D. Steffen" # -- General configuration --------------------------------------------------- @@ -33,14 +29,14 @@ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ - 'sphinx.ext.autodoc', - 'sphinx.ext.todo', - 'sphinx.ext.mathjax', - 'sphinx.ext.ifconfig', - 'sphinx.ext.viewcode', - 'sphinx.ext.githubpages', - 'sphinx.ext.napoleon', - 'nbsphinx' + "sphinx.ext.autodoc", + "sphinx.ext.todo", + "sphinx.ext.mathjax", + "sphinx.ext.ifconfig", + "sphinx.ext.viewcode", + "sphinx.ext.githubpages", + "sphinx.ext.napoleon", + "nbsphinx", ] napoleon_use_ivar = True @@ -52,12 +48,12 @@ # Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] +templates_path = ["_templates"] # 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 = ['build', '**.ipynb_checkpoints'] +exclude_patterns = ["build", "**.ipynb_checkpoints"] # -- Options for HTML output ------------------------------------------------- @@ -65,17 +61,17 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'sphinx_rtd_theme' +html_theme = "sphinx_rtd_theme" # 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'] +html_static_path = ["_static"] -html_logo = '_static/PAMtools_logo.png' +html_logo = "_static/PAMtools_logo.png" -html_css_files = ['css/custom.css'] +html_css_files = ["css/custom.css"] -autoclass_content = 'both' +autoclass_content = "both" -html_theme_options = {'style_nav_header_background': '#333'} \ No newline at end of file +html_theme_options = {"style_nav_header_background": "#333"}