Salome HOME
Correction of catalogue and version setting
[modules/adao.git] / doc / en / conf.py
index 9b4336fceed3ec0bbe780f04c6871c53e947617d..fdb5859d0774ab290f3ed82c667cb3ba59851a4e 100644 (file)
@@ -1,5 +1,7 @@
 # -*- coding: utf-8 -*-
-# Copyright (C) 2008-2013 EDF R&D
+# Copyright (C) 2008-2015 EDF R&D
+#
+# This file is part of SALOME ADAO module
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -37,6 +39,8 @@ import sys, os
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 #sys.path.append(os.path.abspath('.'))
+sys.path.append(os.path.abspath("../../bin"))
+import module_version
 
 # -- General configuration -----------------------------------------------------
 
@@ -57,23 +61,23 @@ source_suffix = '.rst'
 master_doc = 'index'
 
 # General information about the project.
-project = u'ADAO'
-copyright = u'2008-2013, Jean-Philippe ARGAUD'
+project = u'%s'%module_version.name
+copyright = u'2008-%s, Jean-Philippe ARGAUD'%module_version.year
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
 # built documents.
 #
 # The short X.Y version.
-version = '7.2.0'
-version = '7\_main'
+# version = '7\_main'
+version = '%s'%module_version.version.replace('_','.')
 # The full version, including alpha/beta/rc tags.
-release = '7.2.0'
-release = '7\_main'
+# release = '7\_main'
+release = '%s'%module_version.version.replace('_','.')
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
-#language = None
+language = 'en'
 
 # There are two options for replacing |today|: either, you set today to some
 # non-false value, then it is used:
@@ -125,7 +129,7 @@ html_theme = 'default'
 
 # The name for this set of Sphinx documents.  If None, it defaults to
 # "<project> v<release> documentation".
-#html_title = None
+html_title = "Documentation %s %s"%(module_version.name,module_version.version.replace('_','.'))
 
 # A shorter title for the navigation bar.  Default is the same as html_title.
 #html_short_title = None
@@ -194,7 +198,7 @@ latex_font_size = '10pt'
 # Grouping the document tree into LaTeX files. List of tuples
 # (source start file, target name, title, author, documentclass [howto/manual]).
 latex_documents = [
-  ('index', 'ADAO.tex', u'ADAO Documentation',
+  ('index', 'ADAO.tex', u'ADAO documentation',
    u'Jean-Philippe ARGAUD', 'manual'),
 ]
 
@@ -220,10 +224,10 @@ source_encoding = 'iso-8859-15'
 # -- Options for Epub output ---------------------------------------------------
 
 # Bibliographic Dublin Core info.
-epub_title = u'ADAO'
+epub_title = project
 epub_author = u'Jean-Philippe ARGAUD'
 epub_publisher = u'Jean-Philippe ARGAUD'
-epub_copyright = u'2008-2013, Jean-Philippe ARGAUD'
+epub_copyright = copyright
 
 # The language of the text. It defaults to the language option
 # or en if the language is not set.