diff --git a/docs/source/_static/stsci_pri_combo_mark_white.png b/docs/source/_static/stsci_pri_combo_mark_white.png new file mode 100644 index 00000000..8fc1f5af Binary files /dev/null and b/docs/source/_static/stsci_pri_combo_mark_white.png differ diff --git a/docs/source/conf.py b/docs/source/conf.py index 3cdd6d08..877b4cfa 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,8 +1,6 @@ import importlib import sys -import stsci_rtd_theme - if sys.version_info < (3, 11): import tomli as tomllib else: @@ -12,13 +10,6 @@ from pathlib import Path -def setup(app): - try: - app.add_css_file("stsci.css") - except AttributeError: - app.add_stylesheet("stsci.css") - - REPO_ROOT = Path(__file__).parent.parent.parent # Modules that automodapi will document need to be available @@ -43,17 +34,18 @@ def setup(app): extensions = [ "sphinx_automodapi.automodapi", "numpydoc", + "sphinx.ext.intersphinx", ] autosummary_generate = True numpydoc_show_class_members = False autoclass_content = "both" -html_theme = "stsci_rtd_theme" +html_theme = "sphinx_rtd_theme" +html_logo = "_static/stsci_pri_combo_mark_white.png" html_theme_options = { "collapse_navigation": True, } -html_theme_path = [stsci_rtd_theme.get_html_theme_path()] html_domain_indices = True html_sidebars = {"**": ["globaltoc.html", "relations.html", "searchbox.html"]} html_use_index = True @@ -62,3 +54,6 @@ def setup(app): # resolve. nitpicky = True nitpick_ignore = [] + +intersphinx_mapping = {} +intersphinx_mapping["python"] = ("https://docs.python.org/3", None) diff --git a/pyproject.toml b/pyproject.toml index b5386d32..44ac4cab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,6 @@ docs = [ "sphinx", "sphinx-automodapi", "sphinx-rtd-theme", - "stsci-rtd-theme", "tomli; python_version <\"3.11\"", ] test = [