github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/docs/source/conf.py (about) 1 # -*- coding: utf-8 -*- 2 # 3 # hyperledger-fabricdocs documentation build configuration file, created by 4 # sphinx-quickstart on Mon Feb 20 16:11:53 2017. 5 # 6 # This file is execfile()d with the current directory set to its 7 # containing dir. 8 # 9 # Note that not all possible configuration values are present in this 10 # autogenerated file. 11 # 12 # All configuration values have a default; values that are commented out 13 # serve to show the default. 14 15 # If extensions (or modules to document with autodoc) are in another directory, 16 # add these directories to sys.path here. If the directory is relative to the 17 # documentation root, use os.path.abspath to make it absolute, like shown here. 18 # 19 import os 20 import sys 21 sys.path.insert(0, os.path.abspath('.')) 22 23 24 import sphinx_rtd_theme 25 26 # -- General configuration ------------------------------------------------ 27 28 # If your documentation needs a minimal Sphinx version, state it here. 29 # 30 # needs_sphinx = '1.0' 31 32 # Add any Sphinx extension module names here, as strings. They can be 33 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom 34 # ones. 35 extensions = ['sphinx.ext.autodoc', 36 'sphinx.ext.doctest', 37 'sphinx.ext.intersphinx', 38 'sphinx.ext.todo', 39 'sphinx.ext.imgmath', 40 'sphinx.ext.ifconfig', 41 'sphinx.ext.viewcode'] 42 43 # Add any paths that contain templates here, relative to this directory. 44 templates_path = ['_templates'] 45 46 # The suffix(es) of source filenames. 47 # You can specify multiple suffix as a list of string: 48 # 49 # source_suffix = ['.rst', '.md'] 50 source_suffix = '.rst' 51 52 # The master toctree document. 53 master_doc = 'index' 54 55 # General information about the project. 56 project = u'hyperledger-fabricdocs' 57 copyright = u'2017, hyperledger' 58 author = u'hyperledger' 59 60 # The version info for the project you're documenting, acts as replacement for 61 # |version| and |release|, also used in various other places throughout the 62 # built documents. 63 # 64 # The short X.Y version. 65 version = u'master' 66 # The full version, including alpha/beta/rc tags. 67 release = u'master' 68 69 # The language for content autogenerated by Sphinx. Refer to documentation 70 # for a list of supported languages. 71 # 72 # This is also used if you do content translation via gettext catalogs. 73 # Usually you set "language" from the command line for these cases. 74 language = None 75 76 # List of patterns, relative to source directory, that match files and 77 # directories to ignore when looking for source files. 78 # This patterns also effect to html_static_path and html_extra_path 79 exclude_patterns = [] 80 81 # The name of the Pygments (syntax highlighting) style to use. 82 pygments_style = 'sphinx' 83 84 # If true, `todo` and `todoList` produce output, else they produce nothing. 85 todo_include_todos = True 86 87 88 # -- Options for HTML output ---------------------------------------------- 89 90 # The theme to use for HTML and HTML Help pages. See the documentation for 91 # a list of builtin themes. 92 # 93 html_theme = 'sphinx_rtd_theme' 94 95 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] 96 97 html_add_permalinks = True 98 99 # Theme options are theme-specific and customize the look and feel of a theme 100 # further. For a list of options available for each theme, see the 101 # documentation. 102 # 103 # html_theme_options = {} 104 105 # Add any paths that contain custom static files (such as style sheets) here, 106 # relative to this directory. They are copied after the builtin static files, 107 # so a file named "default.css" will overwrite the builtin "default.css". 108 html_static_path = ['_static'] 109 110 def setup(app): 111 app.add_stylesheet('css/custom.css') 112 113 # -- Options for HTMLHelp output ------------------------------------------ 114 115 # Output file base name for HTML help builder. 116 htmlhelp_basename = 'hyperledger-fabricdocsdoc' 117 118 119 # -- Options for LaTeX output --------------------------------------------- 120 121 latex_elements = { 122 # The paper size ('letterpaper' or 'a4paper'). 123 # 124 # 'papersize': 'letterpaper', 125 126 # The font size ('10pt', '11pt' or '12pt'). 127 # 128 # 'pointsize': '10pt', 129 130 # Additional stuff for the LaTeX preamble. 131 # 132 # 'preamble': '', 133 134 # Latex figure (float) alignment 135 # 136 # 'figure_align': 'htbp', 137 } 138 139 # Grouping the document tree into LaTeX files. List of tuples 140 # (source start file, target name, title, 141 # author, documentclass [howto, manual, or own class]). 142 latex_documents = [ 143 (master_doc, 'hyperledger-fabricdocs.tex', u'hyperledger-fabricdocs Documentation', 144 u'hyperledger', 'manual'), 145 ] 146 147 148 # -- Options for manual page output --------------------------------------- 149 150 # One entry per manual page. List of tuples 151 # (source start file, name, description, authors, manual section). 152 man_pages = [ 153 (master_doc, 'hyperledger-fabricdocs', u'hyperledger-fabricdocs Documentation', 154 [author], 1) 155 ] 156 157 158 # -- Options for Texinfo output ------------------------------------------- 159 160 # Grouping the document tree into Texinfo files. List of tuples 161 # (source start file, target name, title, author, 162 # dir menu entry, description, category) 163 texinfo_documents = [ 164 (master_doc, 'hyperledger-fabricdocs', u'hyperledger-fabricdocs Documentation', 165 author, 'hyperledger-fabricdocs', 'One line description of project.', 166 'Miscellaneous'), 167 ] 168 169 170 171 # -- Options for Epub output ---------------------------------------------- 172 173 # Bibliographic Dublin Core info. 174 epub_title = project 175 epub_author = author 176 epub_publisher = author 177 epub_copyright = copyright 178 179 # The unique identifier of the text. This can be a ISBN number 180 # or the project homepage. 181 # 182 # epub_identifier = '' 183 184 # A unique identification for the text. 185 # 186 # epub_uid = '' 187 188 # A list of files that should not be packed into the epub file. 189 epub_exclude_files = ['search.html'] 190 191 192 193 # Example configuration for intersphinx: refer to the Python standard library. 194 intersphinx_mapping = {'https://docs.python.org/': None}