github.com/rvaralda/deis@v1.4.1/docs/conf.py (about)

     1  # -*- coding: utf-8 -*-
     2  #
     3  # deis documentation build configuration file, created by
     4  # sphinx-quickstart on Fri Jul 26 12:12:00 2013.
     5  #
     6  # This file is execfile()d with the current directory set to its 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 os
    15  import sys
    16  
    17  # If extensions (or modules to document with autodoc) are in another directory,
    18  # add these directories to sys.path here. If the directory is relative to the
    19  # documentation root, use os.path.abspath to make it absolute, like shown here.
    20  
    21  # Some hackery here to get deis.py to be importable as client.deis
    22  open(os.path.join('..', '__init__.py'), 'a')
    23  sys.path.insert(0, os.path.abspath(os.path.join('..')))
    24  sys.path.insert(0, os.path.abspath(os.path.join('..', 'controller')))
    25  # set up Django
    26  os.environ['DJANGO_SETTINGS_MODULE'] = 'deis.settings'
    27  os.environ['DATABASE_ENGINE'] = 'sqlite3'
    28  os.environ['DATABASE_NAME'] = 'dummy.sqlite3'
    29  from django.conf import settings  # noqa
    30  
    31  # -- General configuration -----------------------------------------------------
    32  
    33  # If your documentation needs a minimal Sphinx version, state it here.
    34  #needs_sphinx = '1.0'
    35  
    36  # Add any Sphinx extension module names here, as strings. They can be extensions
    37  # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
    38  extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary',
    39                'sphinx.ext.viewcode']
    40  
    41  # default flags for auto-generated python code documetation
    42  autodoc_default_flags = ['members', 'undoc-members']
    43  
    44  # Add any paths that contain templates here, relative to this directory.
    45  templates_path = ['_templates']
    46  
    47  # The suffix of source filenames.
    48  source_suffix = '.rst'
    49  
    50  # The encoding of source files.
    51  #source_encoding = 'utf-8-sig'
    52  
    53  # The master toctree document.
    54  master_doc = 'toctree'
    55  
    56  # General information about the project.
    57  project = u'deis'
    58  copyright = u'2013, 2014 OpDemand LLC'
    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  from deis import __version__
    65  
    66  # The short X.Y version.
    67  version = __version__.rsplit('.', 1)[0]
    68  # The full version, including alpha/beta/rc tags.
    69  release = __version__
    70  
    71  # The language for content autogenerated by Sphinx. Refer to documentation
    72  # for a list of supported languages.
    73  #language = None
    74  
    75  # There are two options for replacing |today|: either, you set today to some
    76  # non-false value, then it is used:
    77  #today = ''
    78  # Else, today_fmt is used as the format for a strftime call.
    79  #today_fmt = '%B %d, %Y'
    80  
    81  # List of patterns, relative to source directory, that match files and
    82  # directories to ignore when looking for source files.
    83  exclude_patterns = ['_build', 'venv', '**/_*.rst']
    84  
    85  # The reST default role (used for this markup: `text`) to use for all documents.
    86  #default_role = None
    87  
    88  # If true, '()' will be appended to :func: etc. cross-reference text.
    89  #add_function_parentheses = True
    90  
    91  # If true, the current module name will be prepended to all description
    92  # unit titles (such as .. function::).
    93  #add_module_names = True
    94  
    95  # If true, sectionauthor and moduleauthor directives will be shown in the
    96  # output. They are ignored by default.
    97  #show_authors = False
    98  
    99  # The name of the Pygments (syntax highlighting) style to use.
   100  pygments_style = 'sphinx'
   101  
   102  # A list of ignored prefixes for module index sorting.
   103  #modindex_common_prefix = []
   104  
   105  # If true, keep warnings as "system message" paragraphs in the built documents.
   106  #keep_warnings = False
   107  
   108  
   109  # -- Options for HTML output ---------------------------------------------------
   110  
   111  # The theme to use for HTML and HTML Help pages.  See the documentation for
   112  # a list of builtin themes.
   113  html_theme = 'deis'
   114  
   115  # Theme options are theme-specific and customize the look and feel of a theme
   116  # further.  For a list of options available for each theme, see the
   117  # documentation.
   118  #html_theme_options = {}
   119  
   120  # Add any paths that contain custom themes here, relative to this directory.
   121  html_theme_path = ['theme']
   122  
   123  # The name for this set of Sphinx documents.  If None, it defaults to
   124  # "<project> v<release> documentation".
   125  #html_title = None
   126  
   127  # A shorter title for the navigation bar.  Default is the same as html_title.
   128  #html_short_title = None
   129  
   130  # The name of an image file (relative to this directory) to place at the top
   131  # of the sidebar.
   132  #html_logo = None
   133  
   134  # The name of an image file (within the static path) to use as favicon of the
   135  # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
   136  # pixels large.
   137  #html_favicon = None
   138  
   139  # Add any paths that contain custom static files (such as style sheets) here,
   140  # relative to this directory. They are copied after the builtin static files,
   141  # so a file named "default.css" will overwrite the builtin "default.css".
   142  html_static_path = ['../controller/web/static']
   143  
   144  # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
   145  # using the given strftime format.
   146  #html_last_updated_fmt = '%b %d, %Y'
   147  
   148  # If true, SmartyPants will be used to convert quotes and dashes to
   149  # typographically correct entities.
   150  html_use_smartypants = True
   151  
   152  html_add_permalinks = True
   153  
   154  # Custom sidebar templates, maps document names to template names.
   155  #html_sidebars = {}
   156  
   157  # Additional templates that should be rendered to pages, maps page names to
   158  # template names.
   159  #html_additional_pages = {}
   160  
   161  # If false, no module index is generated.
   162  #html_domain_indices = True
   163  
   164  # If false, no index is generated.
   165  #html_use_index = True
   166  
   167  # If true, the index is split into individual pages for each letter.
   168  #html_split_index = False
   169  
   170  # If true, links to the reST sources are added to the pages.
   171  #html_show_sourcelink = True
   172  
   173  # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
   174  #html_show_sphinx = True
   175  
   176  # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
   177  #html_show_copyright = True
   178  
   179  # If true, an OpenSearch description file will be output, and all pages will
   180  # contain a <link> tag referring to it.  The value of this option must be the
   181  # base URL from which the finished HTML is served.
   182  #html_use_opensearch = ''
   183  
   184  # This is the file name suffix for HTML files (e.g. ".xhtml").
   185  #html_file_suffix = None
   186  
   187  # Output file base name for HTML help builder.
   188  htmlhelp_basename = 'deisdoc'
   189  
   190  
   191  # -- Options for LaTeX output --------------------------------------------------
   192  
   193  latex_elements = {
   194      # The paper size ('letterpaper' or 'a4paper').
   195      #'papersize': 'letterpaper',
   196  
   197      # The font size ('10pt', '11pt' or '12pt').
   198      #'pointsize': '10pt',
   199  
   200      # Additional stuff for the LaTeX preamble.
   201      #'preamble': '',
   202  }
   203  
   204  # Grouping the document tree into LaTeX files. List of tuples
   205  # (source start file, target name, title, author, documentclass [howto/manual]).
   206  latex_documents = [
   207      ('index', 'deis.tex', u'deis Documentation',
   208       u'Author', 'manual'),
   209  ]
   210  
   211  # The name of an image file (relative to this directory) to place at the top of
   212  # the title page.
   213  #latex_logo = None
   214  
   215  # For "manual" documents, if this is true, then toplevel headings are parts,
   216  # not chapters.
   217  #latex_use_parts = False
   218  
   219  # If true, show page references after internal links.
   220  #latex_show_pagerefs = False
   221  
   222  # If true, show URL addresses after external links.
   223  #latex_show_urls = False
   224  
   225  # Documents to append as an appendix to all manuals.
   226  #latex_appendices = []
   227  
   228  # If false, no module index is generated.
   229  #latex_domain_indices = True
   230  
   231  
   232  # -- Options for manual page output --------------------------------------------
   233  
   234  # One entry per manual page. List of tuples
   235  # (source start file, name, description, authors, manual section).
   236  man_pages = [
   237      ('index', 'deis', u'deis Documentation',
   238       [u'Author'], 1)
   239  ]
   240  
   241  # If true, show URL addresses after external links.
   242  #man_show_urls = False
   243  
   244  
   245  # -- Options for Texinfo output ------------------------------------------------
   246  
   247  # Grouping the document tree into Texinfo files. List of tuples
   248  # (source start file, target name, title, author,
   249  #  dir menu entry, description, category)
   250  texinfo_documents = [
   251      ('index', 'deis', u'deis Documentation',
   252       u'Author', 'deis', 'One line description of project.',
   253       'Miscellaneous'),
   254  ]
   255  
   256  # Documents to append as an appendix to all manuals.
   257  #texinfo_appendices = []
   258  
   259  # If false, no module index is generated.
   260  #texinfo_domain_indices = True
   261  
   262  # How to display URL addresses: 'footnote', 'no', or 'inline'.
   263  #texinfo_show_urls = 'footnote'
   264  
   265  # If true, do not generate a @detailmenu in the "Top" node's menu.
   266  #texinfo_no_detailmenu = False
   267  
   268  
   269  # -- Options for Epub output ---------------------------------------------------
   270  
   271  # Bibliographic Dublin Core info.
   272  epub_title = u'deis'
   273  epub_author = u'OpDemand LLC'
   274  epub_publisher = u'OpDemand LLC'
   275  epub_copyright = u'2013, OpDemand LLC'
   276  
   277  # The language of the text. It defaults to the language option
   278  # or en if the language is not set.
   279  #epub_language = ''
   280  
   281  # The scheme of the identifier. Typical schemes are ISBN or URL.
   282  #epub_scheme = ''
   283  
   284  # The unique identifier of the text. This can be a ISBN number
   285  # or the project homepage.
   286  #epub_identifier = ''
   287  
   288  # A unique identification for the text.
   289  #epub_uid = ''
   290  
   291  # A tuple containing the cover image and cover page html template filenames.
   292  #epub_cover = ()
   293  
   294  # A sequence of (type, uri, title) tuples for the guide element of content.opf.
   295  #epub_guide = ()
   296  
   297  # HTML files that should be inserted before the pages created by sphinx.
   298  # The format is a list of tuples containing the path and title.
   299  #epub_pre_files = []
   300  
   301  # HTML files shat should be inserted after the pages created by sphinx.
   302  # The format is a list of tuples containing the path and title.
   303  #epub_post_files = []
   304  
   305  # A list of files that should not be packed into the epub file.
   306  #epub_exclude_files = []
   307  
   308  # The depth of the table of contents in toc.ncx.
   309  #epub_tocdepth = 3
   310  
   311  # Allow duplicate toc entries.
   312  #epub_tocdup = True
   313  
   314  # Fix unsupported image types using the PIL.
   315  #epub_fix_images = False
   316  
   317  # Scale large images.
   318  #epub_max_image_width = 0
   319  
   320  # If 'no', URL addresses will not be shown.
   321  #epub_show_urls = 'inline'
   322  
   323  # If false, no index is generated.
   324  #epub_use_index = True