diff options
author | Stephen Finucane <stephenfin@redhat.com> | 2021-03-18 17:06:12 +0000 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2021-03-18 17:31:35 +0000 |
commit | 4f1b879a68e4480e6a9c4d2b23cbbfb72e3517d0 (patch) | |
tree | 9b9a928bece36f42a7e7b5b957305d56c00f7d25 /doc/ext | |
parent | b7334b508955ce99d6ae3765bf78e68572b83f56 (diff) | |
download | nova-4f1b879a68e4480e6a9c4d2b23cbbfb72e3517d0.tar.gz |
docs: Change 'add_stylesheet' to 'add_css_file'
We're seeing a warning in our docs build:
nova/doc/ext/feature_matrix.py:578: RemovedInSphinx40Warning: The
app.add_stylesheet() is deprecated. Please use app.add_css_file()
instead.
Do as it says. This deprecation happened in Sphinx v1.8.0 [1] so there's
no need to bump our minimum version.
[1] https://github.com/sphinx-doc/sphinx/commit/3afc72fba4
Change-Id: I75d7b2e1a6771ebdb05972e29033505391587512
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'doc/ext')
-rw-r--r-- | doc/ext/feature_matrix.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/ext/feature_matrix.py b/doc/ext/feature_matrix.py index caeaecfad8..3d49db9739 100644 --- a/doc/ext/feature_matrix.py +++ b/doc/ext/feature_matrix.py @@ -575,7 +575,7 @@ class FeatureMatrixDirective(rst.Directive): def setup(app): app.add_directive('feature_matrix', FeatureMatrixDirective) - app.add_stylesheet('feature-matrix.css') + app.add_css_file('feature-matrix.css') return { 'parallel_read_safe': True, 'parallel_write_safe': True, |