# -*- coding: utf-8 -*- import sys import os sys.path.insert(0, os.path.abspath('..')) sys.path.insert(0, os.path.abspath('../tasks')) extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.mathjax', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode', 'sphinx.ext.intersphinx', ] intersphinx_mapping = {'python': ('http://docs.python.org/3.3', None)} templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' project = u'Text-Fabric' copyright = u'2016, Dirk Roorda' version = '5.0' release = '5.0.1' exclude_patterns = ['_build'] add_function_parentheses = True add_module_names = False pygments_style = 'sphinx' autoclass_content = 'both' # -- Options for HTML output ---------------------------------------------- on_rtd = os.environ.get('READTHEDOCS', None) == 'True' if on_rtd: html_theme = 'default' else: html_theme = 'sphinx_rtd_theme' html_theme_path = ["_themes", ] html_static_path = ['_static'] html_domain_indices = True html_use_index = True html_split_index = False html_show_sourcelink = True html_show_sphinx = True html_show_copyright = True htmlhelp_basename = 'Text-Fabric' # -- Options for LaTeX output --------------------------------------------- latex_elements = { 'papersize': 'a4paper', 'pointsize': '10pt', } latex_documents = [ ('index', 'Text_Fabric.tex', u'Text-Fabric Documentation', u'Dirk Roorda', 'manual'), ] # -- Options for manual page output --------------------------------------- man_pages = [ ('index', 'Text_Fabric', u'Text-Fabric Documentation', [u'Dirk Roorda'], 1) ] # -- Options for Texinfo output ------------------------------------------- texinfo_documents = [ ('index', 'Text_Fabric', u'Text-Fabric Documentation', u'Dirk Roorda', 'Text-Fabric', 'One line description of project_name.', 'Miscellaneous'), ] # -- Options for Epub output ---------------------------------------------- epub_title = u'Text-Fabric' epub_author = u'Dirk Roorda' epub_publisher = u'Dirk Roorda' epub_copyright = u'2016, Dirk Roorda' epub_basename = u'Text_Fabric' epub_theme = 'epub' epub_show_urls = 'footnote' epub_use_index = True