docs: Avoid deprecated app.add_stylesheet alias.

Fixes this warning:

/srv/zulip/docs/conf.py:337: RemovedInSphinx40Warning: The app.add_stylesheet() is deprecated. Please use app.add_css_file() instead.
  app.add_stylesheet('theme_overrides.css')  # path relative to _static

https://www.sphinx-doc.org/en/3.x/extdev/deprecated.html

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-06-03 18:58:10 -07:00 committed by Tim Abbott
parent cb5f738948
commit c618b3ae30
1 changed files with 1 additions and 1 deletions

View File

@ -334,4 +334,4 @@ def setup(app: Any) -> None:
app.add_transform(AutoStructify)
# overrides for wide tables in RTD theme
app.add_stylesheet('theme_overrides.css') # path relative to _static
app.add_css_file('theme_overrides.css') # path relative to _static