]> SALOME platform Git repositories - tools/sat.git/blob - doc/src/conf.py
Salome HOME
0025b6e5e7f34d55c7d68dd34d5093b54ed7b364
[tools/sat.git] / doc / src / conf.py
1 # -*- coding: utf-8 -*-
2 #
3 # sat documentation build configuration file, created by
4 # sphinx-quickstart on Fri Apr 13 10:08:59 2018.
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
15 import os
16
17 # Append source folder to path in order to enable autodoc
18 currentPath = os.path.dirname(__file__)
19 print "sphinx on file", __file__
20 sys.path.append(os.path.join(currentPath, '..', '..'))
21
22 # https://stackoverflow.com/questions/23462494/how-to-add-a-custom-css-file-to-sphinx
23 # this needs realpath(custom), cause problem on relocated git clone, 
24 # so use file link instead in _themes/alabaster: ln -s ../../../../src/custom.css custom.css
25 # def setup(app):
26 #     custom = os.path.join('src', 'custom.css')
27 #     print "setup add_stylesheet\n  %s as\n  %s" % (custom, os.path.realpath(custom))
28 #     app.add_stylesheet(os.path.realpath(custom))
29
30 # If extensions (or modules to document with autodoc) are in another directory,
31 # add these directories to sys.path here. If the directory is relative to the
32 # documentation root, use os.path.abspath to make it absolute, like shown here.
33 #sys.path.insert(0, os.path.abspath('.'))
34
35 # -- General configuration -----------------------------------------------------
36
37 # If your documentation needs a minimal Sphinx version, state it here.
38 #needs_sphinx = '1.0'
39
40 # Add any Sphinx extension module names here, as strings. They can be extensions
41 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
42 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.mathjax', 'sphinx.ext.viewcode']
43
44 # do not use rst_prolog please use doc/rst_prolog.rst and '.. include:: ../rst_prolog.rst'
45 # https://github.com/sphinx-doc/sphinx/issues/2445
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-sig'
55
56 # The master toctree document.
57 master_doc = 'index'
58
59 # General information about the project.
60 project = u'salomeTools'
61 copyright = u'2018, CEA'
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 = '5.0'
69 # The full version, including alpha/beta/rc tags.
70 release = '5.0.0dev'
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 patterns, relative to source directory, that match files and
83 # directories to ignore when looking for source files.
84 exclude_patterns = []
85
86 # The reST default role (used for this markup: `text`) to use for all documents.
87 #default_role = None
88
89 # If true, '()' will be appended to :func: etc. cross-reference text.
90 #add_function_parentheses = True
91
92 # If true, the current module name will be prepended to all description
93 # unit titles (such as .. function::).
94 #add_module_names = True
95
96 # If true, sectionauthor and moduleauthor directives will be shown in the
97 # output. They are ignored by default.
98 #show_authors = False
99
100 # The name of the Pygments (syntax highlighting) style to use.
101 pygments_style = 'sphinx'
102
103 # A list of ignored prefixes for module index sorting.
104 #modindex_common_prefix = []
105
106
107 # -- Options for HTML output ---------------------------------------------------
108
109 # The theme to use for HTML and HTML Help pages.  See the documentation for
110 # a list of builtin themes.
111 # default sphinxdoc scrolls agogo traditional nature haiku
112 html_theme = 'alabaster' #added in _theme dir
113
114 # Theme options are theme-specific and customize the look and feel of a theme
115 # further.  For a list of options available for each theme, see the
116 # documentation.
117 html_theme_options = {
118     #'logo': 'logo.png',
119     #'github_user': 'bitprophet',
120     #'github_repo': 'alabaster',
121     #'description': 'MYYY DESCRIPTION',
122     #'sidebar_includehidden': True,
123     #'sidebar_collapse': True,
124     #'show_powered_by': False,
125     'show_related': True,
126     'fixed_sidebar': False,
127     'page_width': '1000px',
128     'sidebar_width': '250px',
129     'font_size': '0.9em', #'1.0625em',
130     'code_font_size': '0.8em',
131     #'note_bg': '#eee',
132     'pre_bg': '#fee', # code-block background
133     #'gray_1': '#00f',
134     #'gray_2': '#f00',
135     #'gray_3': '#0f0',
136 }
137
138 # Add any paths that contain custom themes here, relative to this directory.
139 html_theme_path = ["../_themes/alabaster", ]
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 = "images/sat_v5.0.png"
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 = ""
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 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
163 # using the given strftime format.
164 #html_last_updated_fmt = '%b %d, %Y'
165
166 # If true, SmartyPants will be used to convert quotes and dashes to
167 # typographically correct entities.
168 html_use_smartypants = False
169
170 # Custom sidebar templates, maps document names to template names.
171 #html_sidebars = {}
172
173 # Additional templates that should be rendered to pages, maps page names to
174 # template names.
175 #html_additional_pages = {}
176
177 # If false, no module index is generated.
178 #html_domain_indices = True
179
180 # If false, no index is generated.
181 #html_use_index = True
182
183 # If true, the index is split into individual pages for each letter.
184 #html_split_index = False
185
186 # If true, links to the reST sources are added to the pages.
187 #html_show_sourcelink = True
188
189 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
190 #html_show_sphinx = True
191
192 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
193 #html_show_copyright = True
194
195 # If true, an OpenSearch description file will be output, and all pages will
196 # contain a <link> tag referring to it.  The value of this option must be the
197 # base URL from which the finished HTML is served.
198 #html_use_opensearch = ''
199
200 # This is the file name suffix for HTML files (e.g. ".xhtml").
201 #html_file_suffix = None
202
203 # Output file base name for HTML help builder.
204 htmlhelp_basename = 'salomeToolsdoc'
205
206
207 # -- Options for LaTeX output --------------------------------------------------
208
209 latex_elements = {
210   # The paper size ('letterpaper' or 'a4paper').
211   'papersize': 'a4paper',
212
213   # The font size ('10pt', '11pt' or '12pt').
214   'pointsize': '10pt',
215
216   # Additional stuff for the LaTeX preamble.
217   #'preamble': '',
218
219   # http://www.sphinx-doc.org/en/master/latex.html
220   'sphinxsetup': 'verbatimwithframe=false, VerbatimColor={rgb}{.98,.94,.94}',
221 }
222
223
224 # The paper size ('letter' or 'a4').
225 #latex_paper_size = 'a4'
226
227 # The font size ('10pt', '11pt' or '12pt').
228 #latex_font_size = '10pt'
229
230 # Grouping the document tree into LaTeX files. List of tuples
231 # (source start file, target name, title, author, documentclass [howto/manual]).
232 latex_documents = [
233   ('index', 'salomeTools.tex', u'salomeTools Documentation',
234    u'CEA DEN/DANS/DM2S/STMF/LGLS', 'manual'),
235 ]
236
237 # The name of an image file (relative to this directory) to place at the top of
238 # the title page.
239 #latex_logo = None
240
241 # For "manual" documents, if this is true, then toplevel headings are parts,
242 # not chapters.
243 #latex_use_parts = False
244
245 # If true, show page references after internal links.
246 latex_show_pagerefs = True
247
248 # If true, show URL addresses after external links.
249 latex_show_urls = 'footnote' # sphinx version 1.7 # True
250
251 # Additional stuff for the LaTeX preamble.
252 #latex_preamble = ''
253
254 # Documents to append as an appendix to all manuals.
255 #latex_appendices = []
256
257 # If false, no module index is generated.
258 #latex_domain_indices = True
259
260
261 # -- Options for manual page output --------------------------------------------
262
263 # One entry per manual page. List of tuples
264 # (source start file, name, description, authors, manual section).
265 man_pages = [
266     ('index', 'salometools', u'salomeTools Documentation',
267      [u'CEA DEN/DANS/DM2S/STMF/LGLS'], 1)
268 ]
269
270