Skip to content

Commit

Permalink
Fixed doc for readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
cdanger committed Feb 7, 2024
1 parent ec8ec1e commit 9166d9c
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@
# on_rtd is whether we are on readthedocs.org
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if on_rtd:
html_context = {
'css_files': [
'https://media.readthedocs.org/css/sphinx_rtd_theme.css',
'https://media.readthedocs.org/css/readthedocs-doc-embed.css',
'https://www.fiware.org/style/fiware_readthedocs.css',
'https://www.fiware.org/style/fiware_readthedocs_security.css',
],
}
else:
#if on_rtd:
html_css_files = [
'https://media.readthedocs.org/css/sphinx_rtd_theme.css',
'https://media.readthedocs.org/css/readthedocs-doc-embed.css',
'https://www.fiware.org/style/fiware_readthedocs.css',
'https://www.fiware.org/style/fiware_readthedocs_security.css',
]
# }
#else:
# import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme = 'sphinx_rtd_theme'
# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

# otherwise, readthedocs.org uses their theme by default, so no need to specify it
Expand Down

0 comments on commit 9166d9c

Please sign in to comment.