def set_theme(name): global html_theme global html_theme_path if name == 'nature': html_theme = 'nature' elif name == 'rtd': import sphinx_rtd_theme html_theme = 'sphinx_rtd_theme' html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] elif name == 'pyramid': # TODO: broken? import pylons_sphinx_themes html_theme = 'pyramid' html_theme_path = [pylons_sphinx_themes.get_html_themes_path()] elif name == 'adc': import sphinx_adc_theme html_theme = 'sphinx_adc_theme' html_theme_path = [sphinx_adc_theme.get_html_theme_path()] # elif name == 'jupyter': # # TODO: should be on top of file? # from jupyter_sphinx_theme import * # init_theme() elif name == 'celery': import sphinx_celery html_theme = 'sphinx_celery' html_theme_path = [sphinx_celery.get_html_theme_path()] elif name == 'material': import sphinx_theme_pd html_theme = 'sphinx_theme_pd' html_theme_path = [sphinx_theme_pd.get_html_theme_path()] elif name == 'plone': extensions.append('sphinxjp.themecore') html_theme = 'plonetheme' elif name == 'mdn': import mdn_theme html_theme_path = [mdn_theme.get_theme_dir()] html_theme = 'mdn' else: raise Exception('Unknown theme {}'.format(name))
#man_show_urls = False # -- Options for Texinfo output ------------------------------------------------ # Grouping the document tree into Texinfo files. List of tuples # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ ('index', 'Zippy', u'Zippy Documentation', u'Mozilla', 'Zippy', 'One line description of project.', 'Miscellaneous'), ] # Documents to append as an appendix to all manuals. #texinfo_appendices = [] # If false, no module index is generated. #texinfo_domain_indices = True # How to display URL addresses: 'footnote', 'no', or 'inline'. #texinfo_show_urls = 'footnote' # If true, do not generate a @detailmenu in the "Top" node's menu. #texinfo_no_detailmenu = False import mdn_theme html_theme_path = [mdn_theme.get_theme_dir()] html_theme = 'mdn'
# If true, show page references after internal links. #latex_show_pagerefs = False # If true, show URL addresses after external links. #latex_show_urls = False # Additional stuff for the LaTeX preamble. #latex_preamble = '' # Documents to append as an appendix to all manuals. #latex_appendices = [] # If false, no module index is generated. #latex_domain_indices = True # -- Options for manual page output -------------------------------------------- # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [('index', 'solitude', 'Solitude Documentation', [u'the authors'], 1)] # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = {'http://docs.python.org/': None} import mdn_theme html_theme_path = [mdn_theme.get_theme_dir()] html_theme = 'mdn'