Skip to content

Commit

Permalink
switch to sphinx_rtd_theme (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Jun 18, 2024
2 parents 9b0e153 + 46137f0 commit 7e4d1bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 6 additions & 11 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import importlib
import sys

import stsci_rtd_theme

if sys.version_info < (3, 11):
import tomli as tomllib
else:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -62,3 +54,6 @@ def setup(app):
# resolve.
nitpicky = True
nitpick_ignore = []

intersphinx_mapping = {}
intersphinx_mapping["python"] = ("https://docs.python.org/3", None)
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ docs = [
"sphinx",
"sphinx-automodapi",
"sphinx-rtd-theme",
"stsci-rtd-theme",
"tomli; python_version <\"3.11\"",
]
test = [
Expand Down

0 comments on commit 7e4d1bd

Please sign in to comment.