mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 22:22:44 +08:00
docs: restore compatibility with Sphinx < 1.8.0
This commit is contained in:
parent
305409a025
commit
b8a9f2f228
|
@ -29,7 +29,11 @@ def setup(app):
|
|||
os.path.join(this_dir, "fish_indent_lexer.py"), lexername="FishIndentLexer"
|
||||
)
|
||||
lexers["fish-docs-samples"] = fish_indent_lexer
|
||||
app.add_css_file("custom.css")
|
||||
# add_css_file only appears in Sphinx 1.8.0
|
||||
if hasattr(app, "add_css_file"):
|
||||
app.add_css_file("custom.css")
|
||||
else:
|
||||
app.add_stylesheet("custom.css")
|
||||
|
||||
|
||||
# The default language to assume
|
||||
|
|
Loading…
Reference in New Issue
Block a user