diff --git a/Documentation/Cookbook/rst/conf.py.in b/Documentation/Cookbook/rst/conf.py.in
index 77cd19e5c471e252d386bfa7552f04902bc1a0ac..4f8f22e9300ff1a674c50c1524f98f061076c45d 100644
--- a/Documentation/Cookbook/rst/conf.py.in
+++ b/Documentation/Cookbook/rst/conf.py.in
@@ -63,10 +63,10 @@ copyright = u'@OTB_COPYRIGHT_TEXT@'
 # built documents.
 #
 # The short X.Y version.
-version = '@OTB_VERSION@'
+version = '@OTB_VERSION_STRING@'
 #version = '5.2.0'
 # The full version, including alpha/beta/rc tags.
-release = '@OTB_VERSION@'
+release = '@OTB_VERSION_STRING@'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.