Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[21299] Fix code block not been colored after sphinx upgrade (backport #846) #860

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading