Skip to content

Commit

Permalink
Update conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fdsteffen committed Oct 28, 2024
1 parent 07923b3 commit 0cf5a2a
Showing 1 changed file with 22 additions and 26 deletions.
48 changes: 22 additions & 26 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---------------------------------------------------
Expand All @@ -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
Expand All @@ -52,30 +48,30 @@


# 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 -------------------------------------------------

# 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'}
html_theme_options = {"style_nav_header_background": "#333"}

0 comments on commit 0cf5a2a

Please sign in to comment.