html_theme = 'standard' on_rtd = os.environ.get("READTHEDOCS", None) == True if not on_rtd: import sphinx_rtd_theme html_theme = 'sphinx_rtd_theme' html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] else: html_theme = "default" # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. # the user theme contains the otpions 'homepage', which is populated here #html_theme_options = {'homepage': init_sphinx.url} # Add any paths that contain custom themes here, relative to this directory. html_theme_path = [get_path_sphinx_themes()] # The name for this set of Sphinx documents. If None, it defaults to # "<project> v<release> documentation". #html_title = None # A shorter title for the navigation bar. Default is the same as html_title. #html_short_title = None # The name of an image file (relative to this directory) to place at the top # of the sidebar. #html_logo = None # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large.
# -- Options for HTML output --------------------------------------------------- # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. html_theme = 'standard' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. # the user theme contains the otpions 'homepage', which is populated here #html_theme_options = {'homepage': init_sphinx.url} # Add any paths that contain custom themes here, relative to this directory. html_theme_path = [get_path_sphinx_themes()] # The name for this set of Sphinx documents. If None, it defaults to # "<project> v<release> documentation". #html_title = None # A shorter title for the navigation bar. Default is the same as html_title. #html_short_title = None # The name of an image file (relative to this directory) to place at the top # of the sidebar. #html_logo = None # The name of an image file (within the static path) to use as favicon of the
# Sphinx are currently 'default' and 'sphinxdoc'. if not on_rtd: import sphinx_rtd_theme html_theme = 'sphinx_rtd_theme' html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] else: html_theme = "default" # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. # the user theme contains the otpions 'homepage', which is populated here #html_theme_options = {'homepage': init_sphinx.url} # Add any paths that contain custom themes here, relative to this directory. html_theme_path = [easydev.get_path_sphinx_themes()] # The name for this set of Sphinx documents. If None, it defaults to # "<project> v<release> documentation". #html_title = "spectrum" + ' ('+version +')' # A shorter title for the navigation bar. Default is the same as html_title. #html_short_title = "spectrum" # The name of an image file (relative to this directory) to place at the top # of the sidebar. html_logo = os.path.join('logo.png') # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large.
# -- Options for HTML output --------------------------------------------------- # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. html_theme = "standard" # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. # the user theme contains the otpions 'homepage', which is populated here #html_theme_options = {'homepage': init_sphinx.url} # Add any paths that contain custom themes here, relative to this directory. html_theme_path = [easydev.get_path_sphinx_themes()] # The name for this set of Sphinx documents. If None, it defaults to # "<project> v<release> documentation". #html_title = "spectrum" + ' ('+version +')' # A shorter title for the navigation bar. Default is the same as html_title. #html_short_title = "spectrum" # The name of an image file (relative to this directory) to place at the top # of the sidebar. #html_logo = os.path.join(openalea, 'images', 'wiki_logo_openalea.png') # The name of an image file (within the static path) to use as favicon of the
def test_path(): p = easydev.get_path_sphinx_themes() import os dirs = os.listdir(p) assert 'standard' in dirs