1 # -*- coding: utf-8 -*-
3 # Copyright (C) 2008-2020 EDF R&D
5 # This file is part of SALOME ADAO module
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License.
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 # Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
25 import sys, os, sphinx
26 import sphinx_rtd_theme
29 sys.path.append(os.path.abspath("../../bin"))
31 print("Import du module_version de bin...")
35 sys.path.append(os.path.abspath("../../adao/adao/daCore"))
36 import version as module_version
37 print("Import du module_version de daCore...")
41 # -- Project information -----------------------------------------------------
43 project = u'%s'%module_version.name
44 author = u'Jean-Philippe ARGAUD'
45 copyright = u'2008-%s, EDF R&D, %s'%(module_version.year,author)
46 version = '%s'%module_version.version
47 release = '%s'%module_version.version
48 doctitle = u"%s documentation"%module_version.name
49 docfull = u"Aiding for Data Assimilation and Optimization"
51 # -- General configuration ---------------------------------------------------
53 from distutils.version import LooseVersion #, StrictVersion
54 if LooseVersion(sphinx.__version__) < LooseVersion("1.4.0"):
65 source_suffix = '.rst'
66 source_encoding = 'utf-8'
69 exclude_patterns = ['snippets', 'scripts', 'resources', '_build', 'Thumbs.db', '.DS_Store', 'Grenier']
71 templates_path = ['_templates']
72 exclude_trees = ['snippets',]
74 # -- Options for HTML output -------------------------------------------------
76 html_theme = "sphinx_rtd_theme"
77 # html_theme = 'default'
78 # html_theme = 'alabaster'
80 html_static_path = ['_static']
81 html_show_sourcelink = False
83 # -- Options for HTMLHelp output ---------------------------------------------
84 htmlhelp_basename = 'ADAOdoc'
86 # -- Options for LaTeX output ------------------------------------------------
89 'papersize': 'letterpaper',
91 'figure_align': 'htbp',
94 ('index', 'ADAO.tex', doctitle,
98 # -- Options for manual page output ------------------------------------------
101 (master_doc, 'adao', doctitle,
105 # -- Options for Texinfo output ----------------------------------------------
106 texinfo_documents = [
107 (master_doc, 'ADAO', doctitle,
108 author, 'ADAO', docfull,
111 # -- Options for Epub output -------------------------------------------------
113 epub_title = doctitle
115 epub_publisher = author
116 epub_copyright = copyright
117 epub_exclude_files = ['search.html']
119 # -- Options for PDF output --------------------------------------------------
122 ('contents', u'ADAO', u'ADAO', author, dict(pdf_compressed = True)),
124 pdf_stylesheets = ['sphinx','kerning','a4']
125 pdf_compressed = True
126 pdf_inline_footnotes = True
128 # -- Extension configuration -------------------------------------------------