~ubuntu-branches/ubuntu/wily/pyzmq/wily

« back to all changes in this revision

Viewing changes to docs/source/conf.py

  • Committer: Package Import Robot
  • Author(s): Julian Taylor
  • Date: 2013-02-24 19:23:15 UTC
  • mfrom: (1.2.1) (9 sid)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: package-import@ubuntu.com-20130224192315-qhmwp3m3ymk8r60d
Tags: 2.2.0.1-1
* New upstream release
* relicense debian packaging to LGPL-3
* update watch file to use github directly
  thanks to Bart Martens for the file
* add autopkgtests
* drop obsolete DM-Upload-Allowed
* bump standard to 3.9.4, no changes required

Show diffs side-by-side

added added

removed removed

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