From 7adc526bcdb324325d05aafe94c4eee4ee9a4748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez?= Date: Tue, 9 Jul 2024 16:46:01 +0200 Subject: [PATCH] Fix code block not been colored after sphinx upgrade (#846) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno Signed-off-by: eduponz (cherry picked from commit 623d032db88f3d9caba37cfc22a7f2812dbca64b) --- docs/conf.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index e4d62f5bd..1f6b2ae75 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -82,15 +82,15 @@ def select_css(html_css_dir): :param html_css_dir: The directory to save the CSS stylesheet. :return: Returns a list of CSS files to be imported. """ - ret = ['_static/tabs.css'] - common_css = '_static/css/eprosima_rtd_theme.css' - local_css = '_static/css/fiware_readthedocs.css' + ret = '' + common_css = 'css/eprosima_rtd_theme.css' + local_css = 'css/fiware_readthedocs.css' if download_css(html_css_dir): print('Applying common CSS style file: {}'.format(common_css)) - ret.append(common_css) + ret = common_css else: print('Applying local CSS style file: {}'.format(local_css)) - ret.append(local_css) + ret = local_css return ret @@ -488,10 +488,7 @@ def configure_doxyfile( # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] -html_context = { - 'css_files': select_css(script_path), - } - +html_style = select_css(script_path) # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied