github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-supply-chain-master/docs/source/conf.py (about)

     1  # -*- coding: utf-8 -*-
     2  #
     3  # Sawtooth Supply Chain documentation build configuration file.
     4  #
     5  # This file is execfile()d with the current directory set to its
     6  # containing dir.
     7  #
     8  # Note that not all possible configuration values are present in this
     9  # autogenerated file.
    10  #
    11  # All configuration values have a default; values that are commented out
    12  # serve to show the default.
    13  
    14  import sys
    15  import os
    16  import shlex
    17  
    18  # If extensions (or modules to document with autodoc) are in another directory,
    19  # add these directories to sys.path here. If the directory is relative to the
    20  # documentation root, use os.path.abspath to make it absolute, like shown here.
    21  #sys.path.insert(0, os.path.abspath('.'))
    22  
    23  # -- General configuration ------------------------------------------------
    24  
    25  # If your documentation needs a minimal Sphinx version, state it here.
    26  #needs_sphinx = '1.0'
    27  
    28  # Add any Sphinx extension module names here, as strings. They can be
    29  # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
    30  # ones.
    31  extensions = [
    32      'sphinx.ext.todo',
    33      'sphinx.ext.ifconfig',
    34      'sphinx.ext.autodoc',
    35      'sphinx.ext.viewcode',
    36      'sphinx.ext.napoleon',
    37      'sphinx.ext.imgmath'
    38  ]
    39  
    40  # Autodoc settings
    41  autodoc_member_order = 'bysource'
    42  autoclass_content = 'both'
    43  
    44  # Napoleon settings
    45  napoleon_use_ivar = True
    46  napoleon_include_special_with_doc = True
    47  
    48  # Add any paths that contain templates here, relative to this directory.
    49  templates_path = ['_templates']
    50  
    51  # The suffix(es) of source filenames.
    52  # You can specify multiple suffix as a list of string:
    53  # source_suffix = ['.rst', '.md']
    54  source_suffix = '.rst'
    55  
    56  # The encoding of source files.
    57  #source_encoding = 'utf-8-sig'
    58  
    59  # The master toctree document.
    60  master_doc = 'contents'
    61  
    62  # General information about the project.
    63  project = u'Sawtooth Supply Chain'
    64  copyright = u'2015-2017, Intel Corporation'
    65  author = u'Intel Corporation'
    66  
    67  # The version info for the project you're documenting, acts as replacement for
    68  # |version| and |release|, also used in various other places throughout the
    69  # built documents.
    70  #
    71  # The short X.Y version.
    72  version = 'latest'
    73  # The full version, including alpha/beta/rc tags.
    74  release = 'latest'
    75  
    76  # The language for content autogenerated by Sphinx. Refer to documentation
    77  # for a list of supported languages.
    78  #
    79  # This is also used if you do content translation via gettext catalogs.
    80  # Usually you set "language" from the command line for these cases.
    81  language = None
    82  
    83  # There are two options for replacing |today|: either, you set today to some
    84  # non-false value, then it is used:
    85  #today = ''
    86  # Else, today_fmt is used as the format for a strftime call.
    87  #today_fmt = '%B %d, %Y'
    88  
    89  # List of patterns, relative to source directory, that match files and
    90  # directories to ignore when looking for source files.
    91  exclude_patterns = ['community/how_to_report_issues.rst']
    92  
    93  # The reST default role (used for this markup: `text`) to use for all
    94  # documents.
    95  #default_role = None
    96  
    97  # If true, '()' will be appended to :func: etc. cross-reference text.
    98  #add_function_parentheses = True
    99  
   100  # If true, the current module name will be prepended to all description
   101  # unit titles (such as .. function::).
   102  #add_module_names = True
   103  
   104  # If true, sectionauthor and moduleauthor directives will be shown in the
   105  # output. They are ignored by default.
   106  #show_authors = False
   107  
   108  # The name of the Pygments (syntax highlighting) style to use.
   109  pygments_style = 'sphinx'
   110  
   111  # A list of ignored prefixes for module index sorting.
   112  #modindex_common_prefix = []
   113  
   114  # If true, keep warnings as "system message" paragraphs in the built documents.
   115  #keep_warnings = False
   116  
   117  # If true, `todo` and `todoList` produce output, else they produce nothing.
   118  todo_include_todos = True
   119  
   120  
   121  # -- Options for HTML output ----------------------------------------------
   122  
   123  # The theme to use for HTML and HTML Help pages.  See the documentation for
   124  # a list of builtin themes.
   125  html_theme = 'sphinx_rtd_theme'
   126  
   127  # Theme options are theme-specific and customize the look and feel of a theme
   128  # further.  For a list of options available for each theme, see the
   129  # documentation.
   130  #html_theme_options = {}
   131  
   132  # Add any paths that contain custom themes here, relative to this directory.
   133  #html_theme_path = []
   134  
   135  # The name for this set of Sphinx documents.  If None, it defaults to
   136  # "<project> v<release> documentation".
   137  #html_title = None
   138  
   139  # A shorter title for the navigation bar.  Default is the same as html_title.
   140  #html_short_title = None
   141  
   142  # A dictionary of values to pass into the template's context for all pages.
   143  # Single values can also be put in this dictionary using the -A command-line
   144  # option of sphinx-build.
   145  html_context = {
   146    'css_files': ['_static/theme_overrides.css']
   147  }
   148  
   149  # The name of an image file (relative to this directory) to place at the top
   150  # of the sidebar.
   151  #html_logo = None
   152  
   153  # The name of an image file (within the static path) to use as favicon of the
   154  # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
   155  # pixels large.
   156  #html_favicon = None
   157  
   158  # Add any paths that contain custom static files (such as style sheets) here,
   159  # relative to this directory. They are copied after the builtin static files,
   160  # so a file named "default.css" will overwrite the builtin "default.css".
   161  html_static_path = ['_static']
   162  
   163  # Add any extra paths that contain custom files (such as robots.txt or
   164  # .htaccess) here, relative to this directory. These files are copied
   165  # directly to the root of the documentation.
   166  #html_extra_path = []
   167  
   168  # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
   169  # using the given strftime format.
   170  #html_last_updated_fmt = '%b %d, %Y'
   171  
   172  # If true, SmartyPants will be used to convert quotes and dashes to
   173  # typographically correct entities.
   174  #html_use_smartypants = True
   175  
   176  # Custom sidebar templates, maps document names to template names.
   177  #html_sidebars = {}
   178  
   179  # Additional templates that should be rendered to pages, maps page names to
   180  # template names.
   181  html_additional_pages = {
   182      'index': 'indexcontent.html'
   183  }
   184  
   185  # If false, no module index is generated.
   186  #html_domain_indices = True
   187  
   188  # If false, no index is generated.
   189  #html_use_index = True
   190  
   191  # If true, the index is split into individual pages for each letter.
   192  #html_split_index = False
   193  
   194  # If true, links to the reST sources are added to the pages.
   195  #html_show_sourcelink = True
   196  
   197  # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
   198  html_show_sphinx = False
   199  
   200  # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
   201  #html_show_copyright = True
   202  
   203  # If true, an OpenSearch description file will be output, and all pages will
   204  # contain a <link> tag referring to it.  The value of this option must be the
   205  # base URL from which the finished HTML is served.
   206  #html_use_opensearch = ''
   207  
   208  # This is the file name suffix for HTML files (e.g. ".xhtml").
   209  #html_file_suffix = None
   210  
   211  # Language to be used for generating the HTML full-text search index.
   212  # Sphinx supports the following languages:
   213  #   'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
   214  #   'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
   215  #html_search_language = 'en'
   216  
   217  # A dictionary with options for the search language support, empty by default.
   218  # Now only 'ja' uses this config value
   219  #html_search_options = {'type': 'default'}
   220  
   221  # The name of a javascript file (relative to the configuration directory) that
   222  # implements a search results scorer. If empty, the default will be used.
   223  #html_search_scorer = 'scorer.js'
   224  
   225  # Output file base name for HTML help builder.
   226  htmlhelp_basename = 'SawtoothSupplyChain'
   227  
   228  PREAMBLE = ''
   229  
   230  # -- Options for LaTeX output ---------------------------------------------
   231  
   232  latex_elements = {
   233  # The paper size ('letterpaper' or 'a4paper').
   234  #'papersize': 'letterpaper',
   235  
   236  # The font size ('10pt', '11pt' or '12pt').
   237  #'pointsize': '10pt',
   238  
   239  # Additional stuff for the LaTeX preamble.
   240  'preamble': PREAMBLE,
   241  
   242  # Latex figure (float) alignment
   243  #'figure_align': 'htbp',
   244  }
   245  
   246  # Grouping the document tree into LaTeX files. List of tuples
   247  # (source start file, target name, title,
   248  #  author, documentclass [howto, manual, or own class]).
   249  latex_documents = [
   250    (master_doc, 'sawtooth.tex', u'Sawtooth Supply Chain Documentation',
   251     u'Intel Corporation', 'manual')
   252  ]
   253  
   254  # The name of an image file (relative to this directory) to place at the top of
   255  # the title page.
   256  #latex_logo = None
   257  
   258  # For "manual" documents, if this is true, then toplevel headings are parts,
   259  # not chapters.
   260  #latex_use_parts = False
   261  
   262  # If true, show page references after internal links.
   263  #latex_show_pagerefs = False
   264  
   265  # If true, show URL addresses after external links.
   266  #latex_show_urls = False
   267  
   268  # Documents to append as an appendix to all manuals.
   269  #latex_appendices = []
   270  
   271  # If false, no module index is generated.
   272  #latex_domain_indices = True
   273  
   274  
   275  # -- Options for manual page output ---------------------------------------
   276  
   277  # One entry per manual page. List of tuples
   278  # (source start file, name, description, authors, manual section).
   279  man_pages = [
   280      (master_doc,
   281       'sawtooth_supply_chain',
   282       u'Sawtooth Supply Chain Documentation',
   283       [author], 1)
   284  ]
   285  
   286  # If true, show URL addresses after external links.
   287  #man_show_urls = False
   288  
   289  
   290  # -- Options for Texinfo output -------------------------------------------
   291  
   292  # Grouping the document tree into Texinfo files. List of tuples
   293  # (source start file, target name, title, author,
   294  #  dir menu entry, description, category)
   295  texinfo_documents = [
   296    (master_doc, 'SawtoothSupplyChain', u'Sawtooth Supply Chain Documentation',
   297     author, 'SawtoothSupplyChain', 'One line description of project.',
   298     'Miscellaneous'),
   299  ]
   300  
   301  # Documents to append as an appendix to all manuals.
   302  #texinfo_appendices = []
   303  
   304  # If false, no module index is generated.
   305  #texinfo_domain_indices = True
   306  
   307  # How to display URL addresses: 'footnote', 'no', or 'inline'.
   308  #texinfo_show_urls = 'footnote'
   309  
   310  # If true, do not generate a @detailmenu in the "Top" node's menu.
   311  #texinfo_no_detailmenu = False