summaryrefslogtreecommitdiff
path: root/docs/fr/source/conf.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-09-22 17:41:48 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2020-09-23 18:42:47 +0200
commit48c079bccd932f5b4d439c1ea1fd2db92a65f66b (patch)
tree315f029d886fc2b6aa19bdc7ed57356fe38afe74 /docs/fr/source/conf.py
parentc83730b93629b2a2a94d40faf770885776299b16 (diff)
downloadIshtar-48c079bccd932f5b4d439c1ea1fd2db92a65f66b.tar.bz2
Ishtar-48c079bccd932f5b4d439c1ea1fd2db92a65f66b.zip
Fix import_geofla withe new file format - update documentation for town import and installation
Diffstat (limited to 'docs/fr/source/conf.py')
-rw-r--r--docs/fr/source/conf.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/docs/fr/source/conf.py b/docs/fr/source/conf.py
index a9b5a272b..76839bd7c 100644
--- a/docs/fr/source/conf.py
+++ b/docs/fr/source/conf.py
@@ -11,7 +11,15 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
-import sys, os
+import sys, os, datetime
+
+
+ISHTAR_PATH = os.path.abspath(
+ os.sep.join(__file__.split(os.sep)[:-1] + ["..", "..", "..", "ishtar_common"]))
+
+sys.path.append(ISHTAR_PATH)
+
+from version import __version__
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@@ -40,17 +48,17 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
-project = u'Ishtar'
-copyright = u'2018, Ishtar community'
+project = 'Ishtar'
+copyright = '{}, Ishtar community'.format(datetime.date.today().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 = '2.1'
+version = __version__
# The full version, including alpha/beta/rc tags.
-release = '2.1-dev-10'
+release = __version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.