From cd9755ffb3cd00cbcad36c5aba9421fc91d3e771 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 15 Feb 2021 04:35:24 +0530 Subject: [PATCH] Sphinx: replace use of deprecated css_files --- docs/conf.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 48fb2c969..2631febdb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -140,9 +140,6 @@ html_theme_options = { # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static', '../logo/kitty.png'] -html_context = { - 'css_files': ['_static/custom.css'] -} html_favicon = '../logo/kitty.png' # Custom sidebar templates, must be a dictionary that maps document names @@ -604,6 +601,7 @@ def setup(app: Any) -> None: write_cli_docs(kn) write_remote_control_protocol_docs() write_conf_docs(app, kn) + app.add_css_file('custom.css') app.add_lexer('session', SessionLexer() if version_info[0] < 3 else SessionLexer) app.add_role('link', link_role) app.add_role('iss', partial(num_role, 'issues'))