mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
docs: restore compatibility with Sphinx < 1.8.0
This commit is contained in:
parent
305409a025
commit
b8a9f2f228
1 changed files with 5 additions and 1 deletions
|
@ -29,7 +29,11 @@ def setup(app):
|
||||||
os.path.join(this_dir, "fish_indent_lexer.py"), lexername="FishIndentLexer"
|
os.path.join(this_dir, "fish_indent_lexer.py"), lexername="FishIndentLexer"
|
||||||
)
|
)
|
||||||
lexers["fish-docs-samples"] = fish_indent_lexer
|
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
|
# The default language to assume
|
||||||
|
|
Loading…
Reference in a new issue