Skip to content

Commit 24c238d

Browse files
Fix code block not been colored after sphinx upgrade (#846) (#858)
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev> Signed-off-by: eduponz <eduardoponz@eprosima.com> (cherry picked from commit 623d032) Co-authored-by: Ricardo González <ricardo@richiware.dev>
1 parent f018cc8 commit 24c238d

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

docs/conf.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ def select_css(html_css_dir):
8282
:param html_css_dir: The directory to save the CSS stylesheet.
8383
:return: Returns a list of CSS files to be imported.
8484
"""
85-
ret = ['_static/tabs.css']
86-
common_css = '_static/css/eprosima_rtd_theme.css'
87-
local_css = '_static/css/fiware_readthedocs.css'
85+
ret = ''
86+
common_css = 'css/eprosima_rtd_theme.css'
87+
local_css = 'css/fiware_readthedocs.css'
8888
if download_css(html_css_dir):
8989
print('Applying common CSS style file: {}'.format(common_css))
90-
ret.append(common_css)
90+
ret = common_css
9191
else:
9292
print('Applying local CSS style file: {}'.format(local_css))
93-
ret.append(local_css)
93+
ret = local_css
9494

9595
return ret
9696

@@ -492,10 +492,7 @@ def configure_doxyfile(
492492
# so a file named "default.css" will overwrite the builtin "default.css".
493493
html_static_path = ['_static']
494494

495-
html_context = {
496-
'css_files': select_css(script_path),
497-
}
498-
495+
html_style = select_css(script_path)
499496

500497
# Add any extra paths that contain custom files (such as robots.txt or
501498
# .htaccess) here, relative to this directory. These files are copied

0 commit comments

Comments
 (0)