Salome HOME
Copyright update 2022
[modules/paravis.git] / doc / dev / conf.py.in
1 # -*- coding: iso-8859-1 -*-
2 #
3 # yacs documentation build configuration file, created by
4 # sphinx-quickstart on Fri Aug 29 09:57:25 2008.
5 #
6 # This file is execfile()d with the current directory set to its containing dir.
7 #
8 # The contents of this file are pickled, so don't put values in the namespace
9 # that aren't pickleable (module imports are okay, they're removed automatically).
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 sphinx
16
17 # If your extensions are in another directory, add it here. If the directory
18 # is relative to the documentation root, use os.path.abspath to make it
19 # absolute, like shown here.
20 #sys.path.append(os.path.abspath('.'))
21
22 # General configuration
23 # ---------------------
24
25 # Add any Sphinx extension module names here, as strings. They can be extensions
26 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
27 extensions = ['sphinx.ext.autodoc']
28 try:
29   import sphinx_rtd_theme
30   extensions += ['sphinx_rtd_theme']
31   use_rtd_theme = True
32 except:
33   use_rtd_theme = False
34
35 # Uncomment the following line to build the links with Python documentation
36 # (you might need to set http_proxy environment variable for this to work)
37 #extensions += ['sphinx.ext.intersphinx']
38
39 # Intersphinx mapping to add links to modules and objects in the Python
40 # standard library documentation
41 intersphinx_mapping = {'http://docs.python.org': None}
42
43 # Add any paths that contain templates here, relative to this directory.
44 templates_path = [os.path.join('@CMAKE_CURRENT_SOURCE_DIR@','_templates')]
45
46 # The suffix of source filenames.
47 source_suffix = '.rst'
48
49 # The encoding of source files.
50 source_encoding = 'utf-8'
51
52 # The master toctree document.
53 master_doc = 'index'
54
55 # General information about the project.
56 project = 'PARAVIS, Module architecture - Conception'
57 copyright = '2010-2022 CEA/DEN, EDF R&D, A. Bruneton'
58
59 # The version info for the project you're documenting, acts as replacement for
60 # |version| and |release|, also used in various other places throughout the
61 # built documents.
62 #
63 # The short X.Y version.
64 version = '@SALOMEPARAVIS_VERSION@'
65 # The full version, including alpha/beta/rc tags.
66 release = '@SALOMEPARAVIS_VERSION@'
67
68 # The language for content autogenerated by Sphinx. Refer to documentation
69 # for a list of supported languages.
70 language = 'en'
71
72 # There are two options for replacing |today|: either, you set today to some
73 # non-false value, then it is used:
74 #today = ''
75 # Else, today_fmt is used as the format for a strftime call.
76 #today_fmt = '%B %d, %Y'
77
78 # List of documents that shouldn't be included in the build.
79 #unused_docs = []
80
81 # List of directories, relative to source directory, that shouldn't be searched
82 # for source files.
83 exclude_trees = ['.build','ref','images','CVS','.svn']
84
85 # A list of glob-style patterns that should be excluded when looking for source
86 # files. They are matched against the source file names relative to the
87 # source directory, using slashes as directory separators on all platforms.
88 exclude_patterns = ['**/CVS']
89
90 # The reST default role (used for this markup: `text`) to use for all documents.
91 #default_role = None
92
93 # If true, '()' will be appended to :func: etc. cross-reference text.
94 #add_function_parentheses = True
95
96 # If true, the current module name will be prepended to all description
97 # unit titles (such as .. function::).
98 #add_module_names = True
99
100 # If true, sectionauthor and moduleauthor directives will be shown in the
101 # output. They are ignored by default.
102 #show_authors = False
103
104 # The name of the Pygments (syntax highlighting) style to use.
105 pygments_style = 'sphinx'
106
107
108 # Options for HTML output
109 # -----------------------
110
111 # The theme to use for HTML and HTML Help pages.  Major themes that come with
112 # Sphinx are currently 'default' and 'sphinxdoc'.
113 if use_rtd_theme:
114   html_theme = 'sphinx_rtd_theme'
115 else:
116   html_theme = 'default' if sphinx.version_info[:2] < (1,3) else 'classic'
117
118 themes_options = {}
119 themes_options['classic'] = {
120   'body_max_width':'none',
121   'body_min_width':0,
122 }
123 html_theme_options = themes_options.get(html_theme, {})
124
125 # Add any paths that contain custom themes here, relative to this directory.
126 #html_theme_path = ['themes']
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 = None
143
144
145 # The stylecheet file will be searched within the static path, while
146 # the layout.html file will be searched within the template path
147 # (Note that this parameter can't be used together with html_theme. Exclusive)
148 #html_style = ''
149
150 # Add any paths that contain custom static files (such as style sheets) here,
151 # relative to this directory. They are copied after the builtin static files,
152 # so a file named "default.css" will overwrite the builtin "default.css".
153 html_static_path = [os.path.join('@CMAKE_CURRENT_SOURCE_DIR@','_static')]
154
155 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
156 # using the given strftime format.
157 #html_last_updated_fmt = '%b %d, %Y'
158
159 # If true, SmartyPants will be used to convert quotes and dashes to
160 # typographically correct entities.
161 #html_use_smartypants = True
162
163 # Custom sidebar templates, maps document names to template names.
164 #html_sidebars = {}
165
166 # Additional templates that should be rendered to pages, maps page names to
167 # template names.
168 #html_additional_pages = {}
169
170 # If false, no module index is generated.
171 html_use_modindex = False
172
173 # If false, no index is generated.
174 #html_use_index = True
175
176 # If true, the index is split into individual pages for each letter.
177 #html_split_index = False
178
179 # If true, the reST sources are included in the HTML build as _sources/<name>.
180 html_copy_source = True
181
182 # If true, an OpenSearch description file will be output, and all pages will
183 # contain a <link> tag referring to it.  The value of this option must be the
184 # base URL from which the finished HTML is served.
185 #html_use_opensearch = ''
186
187 # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
188 #html_file_suffix = ''
189
190 # Output file base name for HTML help builder.
191 htmlhelp_basename = 'paravis_dev'
192
193
194 # Options for LaTeX output
195 # ------------------------
196
197 latex_elements = {
198     # The paper size ('letterpaper' or 'a4paper').
199     'papersize': 'a4paper',
200     # Select another font family
201     #'fontpkg':'\\usepackage{eucal}',
202     # get rid off blank pages
203     'classoptions': ',openany,oneside',
204     'babel' : '\\usepackage[english]{babel}',
205     # The font size ('10pt', '11pt' or '12pt').
206     #'pointsize': '10pt',
207 }
208
209 # Grouping the document tree into LaTeX files. List of tuples
210 # (source start file, target name, title, author, document class [howto/manual]).
211 #latex_documents = []
212
213 # The name of an image file (relative to this directory) to place at the top of
214 # the title page.
215 #latex_logo = os.path.join("@CMAKE_CURRENT_SOURCE_DIR@","_static","head.png")
216
217 # For "manual" documents, if this is true, then toplevel headings are parts,
218 # not chapters.
219 latex_use_parts = True
220
221 # Additional stuff for the LaTeX preamble.
222 #latex_preamble = ''
223
224 # Documents to append as an appendix to all manuals.
225 #latex_appendices = []
226
227 # If false, no module index is generated.
228 latex_use_modindex = False
229
230 # Definition of substitute variables for rst texts
231 # ------------------------------------------------
232 # The rst_epilog can be used to define variable in conf.py and use the
233 # values of these variables in the rst text files.
234 srcdir = '@CMAKE_CURRENT_SOURCE_DIR@'
235 rst_epilog = '.. |SPHINXDOC_SRCDIR| replace:: %s' % srcdir