From 32b7688d25d65072680d6f11301d0a32334a8e97 Mon Sep 17 00:00:00 2001 From: Fabien Spindler Date: Tue, 16 Apr 2024 17:56:15 +0200 Subject: [PATCH] Introduce BUILD_DAILY_DOC environment var used to differentiate release from daily build doc --- modules/python/doc/conf.py.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/python/doc/conf.py.in b/modules/python/doc/conf.py.in index c4e8ea6c2c..d1d18ac7cf 100644 --- a/modules/python/doc/conf.py.in +++ b/modules/python/doc/conf.py.in @@ -16,7 +16,7 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. import sys import os - +from datetime import date # If your documentation needs a minimal Sphinx version, state it here. # needs_sphinx = '1.0' @@ -91,6 +91,14 @@ version = "@VISP_PYTHON_VERSION@" # The full version, including alpha/beta/rc tags. release = "@VISP_PYTHON_VERSION@" +BUILD_DAILY_DOC = os.getenv('BUILD_DAILY_DOC') +if BUILD_DAILY_DOC != None: + print("Create doc for daily build") + today = date.today() + release = "@VISP_PYTHON_VERSION@ under development (" + str(today) + ")" +else: + print("Create doc for release") + # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #