import os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if not on_rtd:  # only import and set the theme if we're building docs locally
    import 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

project = 'FIWARE-Stream-Oriented-GE'

import os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if not on_rtd:  # only import and set the theme if we're building docs locally
    import 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

project = 'FIWARE-Stream-Oriented-GE'
html_theme_options = {
  'cssfiles': ['https://fiware.org/style/fiware_readthedocs.css']
}

Add custom CSS style to FIWARE doc
Add custom CSS style to FIWARE doc

Change-Id: I74293d488e0cd762ad023b94879ee618a4016110

  import os
  on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
  
  if not on_rtd:  # only import and set the theme if we're building docs locally
      import 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
  
  project = 'FIWARE-Stream-Oriented-GE'
+ html_theme_options = {
+   'cssfiles': ['https://fiware.org/style/fiware_readthedocs.css']
+ }
  
Add custom CSS style to FIWARE doc
## Code Before:
import os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if not on_rtd:  # only import and set the theme if we're building docs locally
    import 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

project = 'FIWARE-Stream-Oriented-GE'

## Instruction:
Add custom CSS style to FIWARE doc
## Code After:
import os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if not on_rtd:  # only import and set the theme if we're building docs locally
    import 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

project = 'FIWARE-Stream-Oriented-GE'
html_theme_options = {
  'cssfiles': ['https://fiware.org/style/fiware_readthedocs.css']
}
