mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 13:23:09 +00:00
Find theme via html_theme_path
Seems easier
This commit is contained in:
parent
3a5b0964f0
commit
bec23967d5
1 changed files with 1 additions and 2 deletions
|
@ -29,8 +29,6 @@ def setup(app):
|
|||
os.path.join(this_dir, "fish_indent_lexer.py"), lexername="FishIndentLexer"
|
||||
)
|
||||
lexers["fish-docs-samples"] = fish_indent_lexer
|
||||
app.add_html_theme(
|
||||
'python_docs_theme', this_dir + '/python_docs_theme/')
|
||||
# add_css_file only appears in Sphinx 1.8.0
|
||||
if hasattr(app, "add_css_file"):
|
||||
app.add_css_file("custom.css")
|
||||
|
@ -114,6 +112,7 @@ pygments_style = None
|
|||
# a list of builtin themes.
|
||||
# !!! If you change this you also need to update the @import at the top
|
||||
# of _static/pygments.css
|
||||
html_theme_path = ["."]
|
||||
html_theme = "python_docs_theme"
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
|
|
Loading…
Reference in a new issue