From 492c5524375858d46f4dd6ea97589cffef749c42 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Mon, 15 Feb 2021 14:58:59 -0800 Subject: [PATCH] Fix sphinx config for sphinx 3.5.0 (#1792) https://github.com/sphinx-doc/sphinx/issues/8885 --- Docs/sphinx_documentation/source/conf.py | 8 +++----- Docs/sphinx_tutorials/source/conf.py | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/Docs/sphinx_documentation/source/conf.py b/Docs/sphinx_documentation/source/conf.py index e5919e339fe..fc3b30b0318 100644 --- a/Docs/sphinx_documentation/source/conf.py +++ b/Docs/sphinx_documentation/source/conf.py @@ -129,11 +129,9 @@ def get_amrex_version(): # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] -html_context = { - 'css_files': [ - '_static/theme_overrides.css', # overrides for wide tables in RTD theme - ], - } +html_css_files = [ + 'theme_overrides.css', # overrides for wide tables in RTD theme +] # Custom sidebar templates, must be a dictionary that maps document names # to template names. diff --git a/Docs/sphinx_tutorials/source/conf.py b/Docs/sphinx_tutorials/source/conf.py index 2f8e351d529..22dac2d857c 100644 --- a/Docs/sphinx_tutorials/source/conf.py +++ b/Docs/sphinx_tutorials/source/conf.py @@ -112,11 +112,9 @@ def get_amrex_version(): # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] -html_context = { - 'css_files': [ - '_static/theme_overrides.css', # overrides for wide tables in RTD theme - ], - } +html_css_files = [ + 'theme_overrides.css', # overrides for wide tables in RTD theme +] # Custom sidebar templates, must be a dictionary that maps document names # to template names.