From a7d29a3638bdbec6e223c373a47aeb36a2e60bd5 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Wed, 2 Aug 2023 13:16:27 -0700 Subject: [PATCH] Fix documentation search (#1201) --- docs/conf.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index eb7d3df2d..aac6f2d7a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -13,9 +13,7 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. import copy, sys -import sphinx_rtd_theme from os.path import abspath, dirname, join -from recommonmark.parser import CommonMarkParser path = dirname(dirname(abspath(__file__))) sys.path.append(path) sys.path.append(join(path, 'plexapi')) @@ -25,6 +23,7 @@ 'sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon', + 'sphinx_rtd_theme', ] # -- Monkey-patch docstring to not auto-link :ivars ------------------------ @@ -71,7 +70,7 @@ def new_resolve_xref(*args): # General information about the project. project = 'Python PlexAPI' -copyright = '2017, M.Shepanski' +copyright = '2023, M.Shepanski' author = 'M.Shepanski' # The version info for the project you're documenting, acts as replacement for @@ -133,7 +132,6 @@ def new_resolve_xref(*args): # a list of builtin themes. # html_theme = 'alabaster' html_theme = "sphinx_rtd_theme" -html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] html_static_path = ['_static'] html_context = {'css_files': ['_static/custom.css']} html_theme_options = {