Sphinx: Replace use of deprecated css_files

This commit is contained in:
Kovid Goyal 2021-02-15 04:37:09 +05:30
parent 4311cae31a
commit 0de82426ff
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 1 additions and 1 deletions

View File

@ -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.

View File

@ -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)