From beb75cc529771fb6a1859abb3f19ad1ad138bc41 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Tue, 27 Jul 2021 23:58:00 +0000 Subject: [PATCH] Fix doc building for sphinx 4.x Sphinx 4.x has renamed add_stylesheet to add_css_file and add_javascript to add_js_file. This patch updates the sphinx extensions in designate to use the new methods. Change-Id: I71baf9abb5566908da580d0c104831dea20c9d3c --- doc/ext/custom_css.py | 2 +- doc/ext/support_matrix.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/ext/custom_css.py b/doc/ext/custom_css.py index cbaffcaba..6dc5d9ebd 100644 --- a/doc/ext/custom_css.py +++ b/doc/ext/custom_css.py @@ -13,4 +13,4 @@ # under the License. def setup(app): - app.add_stylesheet('designate-docs.css') + app.add_css_file('designate-docs.css') diff --git a/doc/ext/support_matrix.py b/doc/ext/support_matrix.py index ecaab85ad..1631d28a9 100644 --- a/doc/ext/support_matrix.py +++ b/doc/ext/support_matrix.py @@ -442,8 +442,8 @@ def copy_assets(app, exception): def add_assets(app): - app.add_stylesheet('support-matrix.css') - app.add_javascript('support-matrix.js') + app.add_css_file('support-matrix.css') + app.add_js_file('support-matrix.js') def setup(app):