Skip to content

Commit

Permalink
DOC: fix use of deprecated sphinx functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevdp committed Oct 13, 2021
1 parent 75cfcee commit 6aaaf88
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion altair/sphinxext/altairgallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def main(app):

def setup(app):
app.connect("builder-inited", main)
app.add_stylesheet("altair-gallery.css")
app.add_css_file("altair-gallery.css")
app.add_config_value("altair_gallery_dir", "gallery", "env")
app.add_config_value("altair_gallery_ref", "example-gallery", "env")
app.add_config_value("altair_gallery_title", "Example Gallery", "env")
Expand Down
6 changes: 3 additions & 3 deletions altair/sphinxext/schematable.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def type_description(schema):


def prepare_table_header(titles, widths):
"""Build docutil empty table """
"""Build docutil empty table"""
ncols = len(titles)
assert len(widths) == ncols

Expand All @@ -60,7 +60,7 @@ def prepare_table_header(titles, widths):


def add_class_def(node, classDef):
"""Add reference on classDef to node """
"""Add reference on classDef to node"""

ref = addnodes.pending_xref(
reftarget=classDef,
Expand All @@ -79,7 +79,7 @@ def add_class_def(node, classDef):


def add_text(node, text):
"""Add text with inline code to node """
"""Add text with inline code to node"""
is_text = True
for part in reCode.split(text):
if part:
Expand Down
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@
# and
# https://github.com/rtfd/sphinx_rtd_theme/issues/117
def setup(app):
app.add_stylesheet("theme_overrides.css")
app.add_stylesheet("custom.css")
app.add_css_file("theme_overrides.css")
app.add_css_file("custom.css")

# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
Expand Down

0 comments on commit 6aaaf88

Please sign in to comment.