Skip to content

Commit

Permalink
Introduce BUILD_DAILY_DOC environment var used to differentiate relea…
Browse files Browse the repository at this point in the history
…se from daily build doc
  • Loading branch information
fspindle committed Apr 16, 2024
1 parent d3a0e5f commit 32b7688
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/python/doc/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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.
#
Expand Down

0 comments on commit 32b7688

Please sign in to comment.