Skip to content

Commit

Permalink
Refs #21298. Fix pygments css inclusion
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware committed Jul 4, 2024
1 parent 758dba8 commit 6671465
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 @@ -515,10 +515,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 6671465

Please sign in to comment.