Salome HOME
bos #18858 Use sphinx_rtd_theme as theme for SALOME documentation built with Sphinx
[modules/homard.git] / doc / fr / conf.py.in
1 # -*- coding: utf-8 -*-
2 #
3 # HOMARD documentation build configuration file, created by
4 # sphinx-quickstart on Tue Jan  5 08:51:14 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 sphinx
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.append(os.path.abspath('.'))
21
22 # -- General configuration -----------------------------------------------------
23
24 # Add any Sphinx extension module names here, as strings. They can be extensions
25 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
26 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest',  'sphinx.ext.coverage',  'sphinx.ext.ifconfig']
27 try:
28   import sphinx_rtd_theme
29   extensions += ['sphinx_rtd_theme']
30   use_rtd_theme = True
31 except:
32   use_rtd_theme = False
33
34 # Add any paths that contain templates here, relative to this directory.
35 templates_path = ['_templates']
36
37 # The suffix of source filenames.
38 source_suffix = '.rst'
39
40 # The encoding of source files.
41 source_encoding = 'utf-8'
42
43 # The master toctree document.
44 master_doc = 'index'
45
46 # General information about the project.
47 project = u'HOMARD'
48 copyright = u'1996, 2011, 2018, EDF R&D, G. Nicolas, A. Martin Sanchez, T. Fouquet, P. Noyret'
49
50 # The version info for the project you're documenting, acts as replacement for
51 # |version| and |release|, also used in various other places throughout the
52 # built documents.
53 #
54 # The short X.Y version.
55 version = '@SALOMEHOMARD_VERSION@'
56 # The full version, including alpha/beta/rc tags.
57 release = '@SALOMEHOMARD_VERSION@'
58
59 # The language for content autogenerated by Sphinx. Refer to documentation
60 # for a list of supported languages.
61 language = 'fr'
62
63 # There are two options for replacing |today|: either, you set today to some
64 # non-false value, then it is used:
65 #today = ''
66 # Else, today_fmt is used as the format for a strftime call.
67 #today_fmt = '%B %d, %Y'
68
69 # List of documents that shouldn't be included in the build.
70 #unused_docs = []
71
72 # List of directories, relative to source directory, that shouldn't be searched
73 # for source files.
74 exclude_trees = ['_build','ref','images','CVS','.svn']
75
76 # The reST default role (used for this markup: `text`) to use for all documents.
77 #default_role = None
78
79 # If true, '()' will be appended to :func: etc. cross-reference text.
80 #add_function_parentheses = True
81
82 # If true, the current module name will be prepended to all description
83 # unit titles (such as .. function::).
84 #add_module_names = True
85
86 # If true, sectionauthor and moduleauthor directives will be shown in the
87 # output. They are ignored by default.
88 #show_authors = False
89
90 # The name of the Pygments (syntax highlighting) style to use.
91 pygments_style = 'sphinx'
92
93 # A list of ignored prefixes for module index sorting.
94 #modindex_common_prefix = []
95
96
97 # -- Options for HTML output ---------------------------------------------------
98
99 # The theme to use for HTML and HTML Help pages.  Major themes that come with
100 # Sphinx are currently 'default' and 'sphinxdoc'.
101 if use_rtd_theme:
102   html_theme = 'sphinx_rtd_theme'
103 else:
104   html_theme = 'default' if sphinx.version_info[:2] < (1,3) else 'classic'
105
106 # Theme options are theme-specific and customize the look and feel of a theme
107 # further.  For a list of options available for each theme, see the
108 # documentation.
109 themes_options = {}
110 themes_options['classic'] = {
111   'body_max_width':'none',
112   'body_min_width':0,
113 }
114 html_theme_options = themes_options.get(html_theme, {})
115
116 # Add any paths that contain custom themes here, relative to this directory.
117 #html_theme_path = []
118
119 # The name for this set of Sphinx documents.  If None, it defaults to
120 # "<project> v<release> documentation".
121 #html_title = None
122
123 # A shorter title for the navigation bar.  Default is the same as html_title.
124 #html_short_title = None
125
126 # The name of an image file (relative to this directory) to place at the top
127 # of the sidebar.
128 html_logo = None
129 #html_logo = "../images/HOMARD.png"
130
131 # The name of an image file (within the static path) to use as favicon of the
132 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
133 # pixels large.
134 html_favicon = None
135 #html_favicon = "../images/homard_d.ico"
136
137 # Add any paths that contain custom static files (such as style sheets) here,
138 # relative to this directory. They are copied after the builtin static files,
139 # so a file named "default.css" will overwrite the builtin "default.css".
140 html_static_path = ['_static']
141
142 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
143 # using the given strftime format.
144 #html_last_updated_fmt = '%b %d, %Y'
145
146 # If true, SmartyPants will be used to convert quotes and dashes to
147 # typographically correct entities.
148 #html_use_smartypants = True
149
150 # Custom sidebar templates, maps document names to template names.
151 #html_sidebars = {}
152
153 # Additional templates that should be rendered to pages, maps page names to
154 # template names.
155 #html_additional_pages = {}
156
157 # If false, no module index is generated.
158 html_domain_indices = True
159
160 # If false, no index is generated.
161 html_use_index = True
162
163 # If true, the index is split into individual pages for each letter.
164 html_split_index = False
165
166 # If true, the reST sources are included in the HTML build as _sources/<name>.
167 html_copy_source = False
168
169 # If true, links to the reST sources are added to the pages.
170 #html_show_sourcelink = True
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 = 'HOMARDdoc'
182
183
184 # -- Options for LaTeX output --------------------------------------------------
185
186 # Paper size option of the document class ('a4paper' or 'letterpaper'), default 'letterpaper'.
187 paper_size = 'a4paper'
188
189 # Point size option of the document class ('10pt', '11pt' or '12pt'), default '10pt'.
190 pointsize = '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', 'HOMARD.tex', u'HOMARD Documentation',
196    u'G. NICOLAS, A. MARTIN SANCHEZ et T. FOUQUET', '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 #latex_logo = "../images/HOMARD.png"
203
204 # For "manual" documents, if this is true, then toplevel headings are parts,
205 # not chapters.
206 #latex_use_parts = False
207
208 # Additional stuff for the LaTeX preamble.
209 #latex_preamble = ''
210
211 # Documents to append as an appendix to all manuals.
212 #latex_appendices = []
213
214 # If false, no module index is generated.
215 latex_use_modindex = True
216
217
218 # Example configuration for intersphinx: refer to the Python standard library.
219 intersphinx_mapping = {'http://docs.python.org/': None}