diff --git a/docs/_static/stsci_pri_combo_mark_white.png b/docs/_static/stsci_pri_combo_mark_white.png new file mode 100644 index 000000000..8fc1f5af2 Binary files /dev/null and b/docs/_static/stsci_pri_combo_mark_white.png differ diff --git a/docs/conf.py b/docs/conf.py index c90a228a6..53c05d508 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -3,21 +3,12 @@ from datetime import datetime from pathlib import Path -import stsci_rtd_theme - if sys.version_info < (3, 11): import tomli as tomllib else: import tomllib -def setup(app): - try: - app.add_css_file("stsci.css") - except AttributeError: - app.add_stylesheet("stsci.css") - - REPO_ROOT = Path(__file__).parent.parent # Modules that automodapi will document need to be available @@ -74,9 +65,11 @@ def setup(app): numpydoc_show_class_members = False autoclass_content = "both" -html_theme = "stsci_rtd_theme" -html_theme_options = {"collapse_navigation": True} -html_theme_path = [stsci_rtd_theme.get_html_theme_path()] +html_theme = "sphinx_rtd_theme" +html_logo = "_static/stsci_pri_combo_mark_white.png" +html_theme_options = { + "collapse_navigation": True, +} html_domain_indices = True html_sidebars = {"**": ["globaltoc.html", "relations.html", "searchbox.html"]} html_use_index = True diff --git a/pyproject.toml b/pyproject.toml index 7a2ff1d70..6290b45c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,11 +35,10 @@ file = "LICENSE" docs = [ "numpydoc", "packaging >=17", - "sphinx<7.0.0", + "sphinx", "sphinx-asdf", "sphinx-astropy", "sphinx-rtd-theme", - "stsci-rtd-theme", "tomli; python_version <=\"3.11\"", ] test = [