PageRenderTime 52ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 1ms

/docs/source/conf.py

https://github.com/thurday/pyzmq
Python | 218 lines | 184 code | 10 blank | 24 comment | 0 complexity | 52448fd29ba219cb0cdc69a2e61520a5 MD5 | raw file
  1. # -*- coding: utf-8 -*-
  2. #
  3. # PyZMQ documentation build configuration file, created by
  4. # sphinx-quickstart on Sat Feb 20 23:31:19 2010.
  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. import sys, os
  14. import string
  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. sys.path.insert(0,os.path.abspath('../sphinxext'))
  19. # patch autodoc to work with Cython Sources
  20. import sphinx_cython
  21. # -- General configuration -----------------------------------------------------
  22. # Add any Sphinx extension module names here, as strings. They can be extensions
  23. # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
  24. extensions = ['matplotlib.sphinxext.mathmpl',
  25. 'matplotlib.sphinxext.only_directives',
  26. 'matplotlib.sphinxext.plot_directive',
  27. 'sphinx.ext.autodoc',
  28. 'sphinx.ext.doctest',
  29. 'sphinx.ext.intersphinx',
  30. 'ipython_console_highlighting',
  31. 'numpydoc']
  32. # Add any paths that contain templates here, relative to this directory.
  33. templates_path = ['_templates']
  34. # The suffix of source filenames.
  35. source_suffix = '.rst'
  36. # The encoding of source files.
  37. source_encoding = 'utf-8'
  38. # The master toctree document.
  39. master_doc = 'index'
  40. # General information about the project.
  41. project = u'PyZMQ'
  42. copyright = u"""2010-2011, Brian E. Granger & Min Ragan-Kelley.
  43. ØMQ logo © iMatix Corportation, used under the Creative Commons Attribution-Share Alike 3.0 License.
  44. Python logo of the Python Software Foundation, used by Min RK with permission from the Foundation"""
  45. intersphinx_mapping = {'python': ('http://docs.python.org/', None)}
  46. # The version info for the project you're documenting, acts as replacement for
  47. # |version| and |release|, also used in various other places throughout the
  48. # built documents.
  49. #
  50. def extract_version():
  51. """extract pyzmq version from core/version.pyx, so it's not multiply defined"""
  52. with open(os.path.join('..', '..', 'zmq', 'core', 'version.pyx')) as f:
  53. line = f.readline()
  54. while not line.startswith("__version__"):
  55. line = f.readline()
  56. exec(line)
  57. return __version__
  58. vs = extract_version()
  59. # The short X.Y version.
  60. version = vs.rstrip(string.letters)
  61. # The full version, including alpha/beta/rc tags.
  62. release = vs
  63. # The language for content autogenerated by Sphinx. Refer to documentation
  64. # for a list of supported languages.
  65. #language = None
  66. # There are two options for replacing |today|: either, you set today to some
  67. # non-false value, then it is used:
  68. #today = ''
  69. # Else, today_fmt is used as the format for a strftime call.
  70. #today_fmt = '%B %d, %Y'
  71. # List of documents that shouldn't be included in the build.
  72. #unused_docs = []
  73. # List of directories, relative to source directory, that shouldn't be searched
  74. # for source files.
  75. exclude_trees = ['build']
  76. # The reST default role (used for this markup: `text`) to use for all documents.
  77. #default_role = None
  78. # If true, '()' will be appended to :func: etc. cross-reference text.
  79. #add_function_parentheses = True
  80. # If true, the current module name will be prepended to all description
  81. # unit titles (such as .. function::).
  82. #add_module_names = True
  83. # If true, sectionauthor and moduleauthor directives will be shown in the
  84. # output. They are ignored by default.
  85. #show_authors = False
  86. # The name of the Pygments (syntax highlighting) style to use.
  87. pygments_style = 'sphinx'
  88. # A list of ignored prefixes for module index sorting.
  89. #modindex_common_prefix = []
  90. # -- Options for HTML output ---------------------------------------------------
  91. # The theme to use for HTML and HTML Help pages. Major themes that come with
  92. # Sphinx are currently 'default' and 'sphinxdoc'.
  93. html_theme = 'default'
  94. # Theme options are theme-specific and customize the look and feel of a theme
  95. # further. For a list of options available for each theme, see the
  96. # documentation.
  97. #html_theme_options = {}
  98. # Add any paths that contain custom themes here, relative to this directory.
  99. #html_theme_path = []
  100. # The name for this set of Sphinx documents. If None, it defaults to
  101. # "<project> v<release> documentation".
  102. #html_title = None
  103. # A shorter title for the navigation bar. Default is the same as html_title.
  104. #html_short_title = None
  105. # The name of an image file (relative to this directory) to place at the top
  106. # of the sidebar.
  107. #html_logo = None
  108. # The name of an image file (within the static path) to use as favicon of the
  109. # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
  110. # pixels large.
  111. html_favicon = 'zeromq.ico'
  112. # Add any paths that contain custom static files (such as style sheets) here,
  113. # relative to this directory. They are copied after the builtin static files,
  114. # so a file named "default.css" will overwrite the builtin "default.css".
  115. html_static_path = ['_static']
  116. # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
  117. # using the given strftime format.
  118. #html_last_updated_fmt = '%b %d, %Y'
  119. # If true, SmartyPants will be used to convert quotes and dashes to
  120. # typographically correct entities.
  121. #html_use_smartypants = True
  122. # Custom sidebar templates, maps document names to template names.
  123. #html_sidebars = {}
  124. # Additional templates that should be rendered to pages, maps page names to
  125. # template names.
  126. #html_additional_pages = {}
  127. # If false, no module index is generated.
  128. #html_use_modindex = True
  129. # If false, no index is generated.
  130. #html_use_index = True
  131. # If true, the index is split into individual pages for each letter.
  132. #html_split_index = False
  133. # If true, links to the reST sources are added to the pages.
  134. #html_show_sourcelink = True
  135. # If true, an OpenSearch description file will be output, and all pages will
  136. # contain a <link> tag referring to it. The value of this option must be the
  137. # base URL from which the finished HTML is served.
  138. #html_use_opensearch = ''
  139. # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
  140. #html_file_suffix = ''
  141. # Output file base name for HTML help builder.
  142. htmlhelp_basename = 'PyZMQdoc'
  143. # -- Options for LaTeX output --------------------------------------------------
  144. # The paper size ('letter' or 'a4').
  145. #latex_paper_size = 'letter'
  146. # The font size ('10pt', '11pt' or '12pt').
  147. #latex_font_size = '10pt'
  148. # Grouping the document tree into LaTeX files. List of tuples
  149. # (source start file, target name, title, author, documentclass [howto/manual]).
  150. latex_documents = [
  151. ('index', 'PyZMQ.tex', u'PyZMQ Documentation',
  152. u'Brian E. Granger \\and Min Ragan-Kelley', 'manual'),
  153. ]
  154. # The name of an image file (relative to this directory) to place at the top of
  155. # the title page.
  156. #latex_logo = None
  157. # For "manual" documents, if this is true, then toplevel headings are parts,
  158. # not chapters.
  159. #latex_use_parts = False
  160. # Additional stuff for the LaTeX preamble.
  161. #latex_preamble = ''
  162. # Documents to append as an appendix to all manuals.
  163. #latex_appendices = []
  164. # If false, no module index is generated.
  165. #latex_use_modindex = True