From 10404c478467b270b30e3390b94328a3f37ebca7 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sun, 13 Aug 2023 19:00:52 +0400 Subject: [PATCH] Bump required sphinx version from 1.7 to 1.8 and use a new name for renamed function --- docs/source/conf.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index b94ddf0884..3f61be697d 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -24,7 +24,7 @@ sys.path.insert(0, project_root) # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. -needs_sphinx = '1.7' +needs_sphinx = '1.8' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom @@ -145,11 +145,9 @@ html_theme = 'sphinx_rtd_theme' # Add any paths that contain custom themes here, relative to this directory. #html_theme_path = [] -#html_css_files = 'figures.css' use this once Sphinx 1.8 is released!!! - def setup(app): - app.add_stylesheet('figures.css') - app.add_stylesheet('luadoc.css') + app.add_css_file('figures.css') + app.add_css_file('luadoc.css') try: subprocess.call(['bash', project_root + '/docs/source/generate_luadoc.sh']) except Exception as e: