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>
This commit is contained in:
Stephen Finucane
2021-03-18 17:06:12 +00:00
parent b7334b5089
commit 4f1b879a68

View File

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