Salome HOME
Producing compressed PDF with sphinx
[modules/adao.git] / doc / conf.py
1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2008-2012 EDF R&D
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20 # Author: AndrĂ© Ribes, andre.ribes@edf.fr, EDF R&D
21
22 #
23 # ADAO documentation build configuration file, created by
24 # sphinx-quickstart on Wed Jun 16 15:48:00 2010.
25 #
26 # This file is execfile()d with the current directory set to its containing dir.
27 #
28 # Note that not all possible configuration values are present in this
29 # autogenerated file.
30 #
31 # All configuration values have a default; values that are commented out
32 # serve to show the default.
33
34 import sys, os
35
36 # If extensions (or modules to document with autodoc) are in another directory,
37 # add these directories to sys.path here. If the directory is relative to the
38 # documentation root, use os.path.abspath to make it absolute, like shown here.
39 #sys.path.append(os.path.abspath('.'))
40
41 # -- General configuration -----------------------------------------------------
42
43 # Add any Sphinx extension module names here, as strings. They can be extensions
44 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
45 extensions = ["sphinx.ext.pngmath"]
46
47 # Add any paths that contain templates here, relative to this directory.
48 templates_path = ['_templates']
49
50 # The suffix of source filenames.
51 source_suffix = '.rst'
52
53 # The encoding of source files.
54 #source_encoding = 'utf-8'
55
56 # The master toctree document.
57 master_doc = 'index'
58
59 # General information about the project.
60 project = u'ADAO'
61 copyright = u'2008-2012, Jean-Philippe ARGAUD'
62
63 # The version info for the project you're documenting, acts as replacement for
64 # |version| and |release|, also used in various other places throughout the
65 # built documents.
66 #
67 # The short X.Y version.
68 version = '7.main'
69 # The full version, including alpha/beta/rc tags.
70 release = '7.main'
71
72 # The language for content autogenerated by Sphinx. Refer to documentation
73 # for a list of supported languages.
74 #language = None
75
76 # There are two options for replacing |today|: either, you set today to some
77 # non-false value, then it is used:
78 #today = ''
79 # Else, today_fmt is used as the format for a strftime call.
80 #today_fmt = '%B %d, %Y'
81
82 # List of documents that shouldn't be included in the build.
83 #unused_docs = []
84
85 # List of directories, relative to source directory, that shouldn't be searched
86 # for source files.
87 exclude_trees = []
88
89 # The reST default role (used for this markup: `text`) to use for all documents.
90 #default_role = None
91
92 # If true, '()' will be appended to :func: etc. cross-reference text.
93 #add_function_parentheses = True
94
95 # If true, the current module name will be prepended to all description
96 # unit titles (such as .. function::).
97 #add_module_names = True
98
99 # If true, sectionauthor and moduleauthor directives will be shown in the
100 # output. They are ignored by default.
101 #show_authors = False
102
103 # The name of the Pygments (syntax highlighting) style to use.
104 pygments_style = 'sphinx'
105
106 # A list of ignored prefixes for module index sorting.
107 #modindex_common_prefix = []
108
109
110 # -- Options for HTML output ---------------------------------------------------
111
112 # The theme to use for HTML and HTML Help pages.  Major themes that come with
113 # Sphinx are currently 'default' and 'sphinxdoc'.
114 html_theme = 'default'
115
116 # Theme options are theme-specific and customize the look and feel of a theme
117 # further.  For a list of options available for each theme, see the
118 # documentation.
119 #html_theme_options = {}
120
121 # Add any paths that contain custom themes here, relative to this directory.
122 #html_theme_path = []
123
124 # The name for this set of Sphinx documents.  If None, it defaults to
125 # "<project> v<release> documentation".
126 #html_title = None
127
128 # A shorter title for the navigation bar.  Default is the same as html_title.
129 #html_short_title = None
130
131 # The name of an image file (relative to this directory) to place at the top
132 # of the sidebar.
133 #html_logo = None
134
135 # The name of an image file (within the static path) to use as favicon of the
136 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
137 # pixels large.
138 #html_favicon = None
139
140 # Add any paths that contain custom static files (such as style sheets) here,
141 # relative to this directory. They are copied after the builtin static files,
142 # so a file named "default.css" will overwrite the builtin "default.css".
143 html_static_path = ['_static']
144
145 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
146 # using the given strftime format.
147 #html_last_updated_fmt = '%b %d, %Y'
148
149 # If true, SmartyPants will be used to convert quotes and dashes to
150 # typographically correct entities.
151 #html_use_smartypants = True
152
153 # Custom sidebar templates, maps document names to template names.
154 #html_sidebars = {}
155
156 # Additional templates that should be rendered to pages, maps page names to
157 # template names.
158 #html_additional_pages = {}
159
160 # If false, no module index is generated.
161 #html_use_modindex = True
162
163 # If false, no index is generated.
164 #html_use_index = True
165
166 # If true, the index is split into individual pages for each letter.
167 #html_split_index = False
168
169 # If true, links to the reST sources are added to the pages.
170 html_show_sourcelink = False
171
172 # If true, an OpenSearch description file will be output, and all pages will
173 # contain a <link> tag referring to it.  The value of this option must be the
174 # base URL from which the finished HTML is served.
175 #html_use_opensearch = ''
176
177 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
178 #html_file_suffix = ''
179
180 # Output file base name for HTML help builder.
181 htmlhelp_basename = 'ADAOdoc'
182
183
184 # -- Options for LaTeX output --------------------------------------------------
185
186 # The paper size ('letter' or 'a4').
187 latex_paper_size = 'a4'
188
189 # The font size ('10pt', '11pt' or '12pt').
190 latex_font_size = '10pt'
191
192 # Grouping the document tree into LaTeX files. List of tuples
193 # (source start file, target name, title, author, documentclass [howto/manual]).
194 latex_documents = [
195   ('index', 'ADAO.tex', u'ADAO Documentation',
196    u'Jean-Philippe ARGAUD', 'manual'),
197 ]
198
199 # The name of an image file (relative to this directory) to place at the top of
200 # the title page.
201 #latex_logo = None
202
203 # For "manual" documents, if this is true, then toplevel headings are parts,
204 # not chapters.
205 #latex_use_parts = False
206
207 # Additional stuff for the LaTeX preamble.
208 #latex_preamble = ''
209
210 # Documents to append as an appendix to all manuals.
211 #latex_appendices = []
212
213 # If false, no module index is generated.
214 #latex_use_modindex = True
215
216 source_encoding = 'iso-8859-15'
217
218 # -- Options for Epub output ---------------------------------------------------
219
220 # Bibliographic Dublin Core info.
221 epub_title = u'ADAO'
222 epub_author = u'Jean-Philippe ARGAUD'
223 epub_publisher = u'Jean-Philippe ARGAUD'
224 epub_copyright = u'2008-2012, Jean-Philippe ARGAUD'
225
226 # The language of the text. It defaults to the language option
227 # or en if the language is not set.
228 #epub_language = ''
229
230 # The scheme of the identifier. Typical schemes are ISBN or URL.
231 #epub_scheme = ''
232
233 # The unique identifier of the text. This can be a ISBN number
234 # or the project homepage.
235 #epub_identifier = ''
236
237 # A unique identification for the text.
238 #epub_uid = ''
239
240 # HTML files that should be inserted before the pages created by sphinx.
241 # The format is a list of tuples containing the path and title.
242 #epub_pre_files = []
243
244 # HTML files shat should be inserted after the pages created by sphinx.
245 # The format is a list of tuples containing the path and title.
246 #epub_post_files = []
247
248 # A list of files that should not be packed into the epub file.
249 #epub_exclude_files = []
250
251 # The depth of the table of contents in toc.ncx.
252 #epub_tocdepth = 3
253
254 # Allow duplicate toc entries.
255 #epub_tocdup = True
256
257 # -- Options for PDF output --------------------------------------------------
258 # Grouping the document tree into PDF files. List of tuples
259 # (source start file, target name, title, author, options).
260 #
261 # If there is more than one author, separate them with \\.
262 # For example: r'Guido van Rossum\\Fred L. Drake, Jr., editor'
263 #
264 # The options element is a dictionary that lets you override
265 # this config per-document.
266 # For example,
267 # ('index', u'MyProject', u'My Project', u'Author Name',
268 #  dict(pdf_compressed = True))
269 # would mean that specific document would be compressed
270 # regardless of the global pdf_compressed setting.
271 pdf_documents = [
272     ('contents', u'ADAO', u'ADAO', u'Jean-Philippe ARGAUD', dict(pdf_compressed = True)),
273 ]
274 # A comma-separated list of custom stylesheets. Example:
275 pdf_stylesheets = ['sphinx','kerning','a4']
276 # Create a compressed PDF
277 # Use True/False or 1/0
278 # Example: compressed=True
279 #pdf_compressed = False
280 pdf_compressed = True
281 # A colon-separated list of folders to search for fonts. Example:
282 # pdf_font_path = ['/usr/share/fonts', '/usr/share/texmf-dist/fonts/']
283 # Language to be used for hyphenation support
284 #pdf_language = "en_US"
285 # Mode for literal blocks wider than the frame. Can be
286 # overflow, shrink or truncate
287 #pdf_fit_mode = "shrink"
288 # Section level that forces a break page.
289 # For example: 1 means top-level sections start in a new page
290 # 0 means disabled
291 #pdf_break_level = 0
292 # When a section starts in a new page, force it to be 'even', 'odd',
293 # or just use 'any'
294 #pdf_breakside = 'any'
295 # Insert footnotes where they are defined instead of
296 # at the end.
297 #pdf_inline_footnotes = True
298 # verbosity level. 0 1 or 2
299 #pdf_verbosity = 0
300 # If false, no index is generated.
301 #pdf_use_index = True
302 # If false, no modindex is generated.
303 #pdf_use_modindex = True
304 # If false, no coverpage is generated.
305 #pdf_use_coverpage = True
306 # Name of the cover page template to use
307 #pdf_cover_template = 'sphinxcover.tmpl'
308 # Documents to append as an appendix to all manuals.
309 #pdf_appendices = []
310 # Enable experimental feature to split table cells. Use it
311 # if you get "DelayedTable too big" errors
312 #pdf_splittables = False
313 # Set the default DPI for images
314 #pdf_default_dpi = 72
315 # Enable rst2pdf extension modules (default is empty list)
316 # you need vectorpdf for better sphinx's graphviz support
317 #pdf_extensions = ['vectorpdf']
318 # Page template name for "regular" pages
319 #pdf_page_template = 'cutePage'