From 42935f828180a8367a770a24dc0b2ca1f71d4ac9 Mon Sep 17 00:00:00 2001 From: cananoo <2059997196@qq.com> Date: Thu, 27 Aug 2026 22:18:27 +0800 Subject: [PATCH] Fix documentation build with Sphinx 9 --- docs/source/conf.py | 6 +++--- newsfragments/200.bugfix.rst | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 newsfragments/200.bugfix.rst diff --git a/docs/source/conf.py b/docs/source/conf.py index b3627f5..8eb6864 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -58,9 +58,9 @@ # Undocumented trick: if we def setup here in conf.py, it gets called just # like an extension's setup function. def setup(app): - app.add_javascript("show-code.js") - app.add_javascript("facebox.js") - app.add_stylesheet("facebox.css") + app.add_js_file("show-code.js") + app.add_js_file("facebox.js") + app.add_css_file("facebox.css") # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/newsfragments/200.bugfix.rst b/newsfragments/200.bugfix.rst new file mode 100644 index 0000000..681040e --- /dev/null +++ b/newsfragments/200.bugfix.rst @@ -0,0 +1 @@ +Fix documentation builds with Sphinx 9 and later.