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