From 0de82426ff6d409c3c177cb65175f8c5f126fd85 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 15 Feb 2021 04:37:09 +0530 Subject: [PATCH] Sphinx: Replace use of deprecated css_files --- manual/conf.py | 1 - manual/custom.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/manual/conf.py b/manual/conf.py index 0bd6d0613d..81aa89da0f 100644 --- a/manual/conf.py +++ b/manual/conf.py @@ -148,7 +148,6 @@ html_favicon = '../icons/favicon.ico' # relative to this directory. They are copied after the built-in static files, # so a file named "default.css" will overwrite the built-in "default.css". html_static_path = ['resources', '../icons/favicon.ico'] -html_css_files = ['custom.css'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. diff --git a/manual/custom.py b/manual/custom.py index d07d7ebe6e..6db6316f78 100644 --- a/manual/custom.py +++ b/manual/custom.py @@ -373,6 +373,7 @@ def setup(app): from docutils.parsers.rst import roles monkey_patch_docutils() setup_man_pages(app) + app.add_css_file('custom.css') app.add_builder(EPUBHelpBuilder) app.add_builder(LaTeXHelpBuilder) app.connect('source-read', source_read_handler)