Skip to content

Commit

Permalink
Allow building docs with older sphinx (#764)
Browse files Browse the repository at this point in the history
The sphinx version provided by Ubuntu 18.04 doesn't have `add_css_file`. Even
without it can still produce `man` files at least.
  • Loading branch information
JelteF committed Jul 8, 2021
1 parent 626d643 commit 5e8a48e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ def __init__(self, **options):

# Add our custom CSS
def setup(app):
app.add_css_file("css/citus.css")
app.add_css_file("css/pygments.css")
if hasattr(app, "add_css_file"):
app.add_css_file("css/citus.css")
app.add_css_file("css/pygments.css")


# Add any paths that contain custom static files (such as style sheets) here,
Expand Down

0 comments on commit 5e8a48e

Please sign in to comment.