Skip to content

Commit

Permalink
Fix code block not been colored after sphinx upgrade (#846) (#860)
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <[email protected]>
Signed-off-by: eduponz <[email protected]>
(cherry picked from commit 623d032)

Co-authored-by: Ricardo González <[email protected]>
  • Loading branch information
mergify[bot] and richiware authored Jul 19, 2024
1 parent baa84d1 commit c9ea2a0
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c9ea2a0

Please sign in to comment.