Skip to content

Commit

Permalink
Update removed API call.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Jan 31, 2024
1 parent 9a372bf commit 807231c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
import sys

import django
import sphinx_rtd_theme
from django.utils.encoding import force_text
from django.utils.html import strip_tags

import sphinx_rtd_theme

# If extensions (or modules to document with autodoc) are in another
# directory, add these directories to sys.path here. If the directory is
# relative to the documentation root, use os.path.abspath to make it
Expand Down Expand Up @@ -171,6 +170,7 @@ def process_docstring(app, what, name, obj, options, lines):
html_theme = "sphinx_rtd_theme"
html_theme_path = [".", sphinx_rtd_theme.get_html_theme_path()]


# Approach 2 for custom stylesheet:
# adapted from: http://rackerlabs.github.io/docs-rackspace/tools/rtd-tables.html
# and https://github.com/altair-viz/altair/pull/418/files
Expand All @@ -179,7 +179,7 @@ def setup(app):
# Register the docstring processor with sphinx
app.connect("autodoc-process-docstring", process_docstring)
# Add our custom CSS overrides
app.add_stylesheet("theme_overrides.css")
app.add_css_file("theme_overrides.css")


# Theme options are theme-specific and customize the look and feel of a
Expand Down

0 comments on commit 807231c

Please sign in to comment.