diff --git a/documentation/sphinx/conf.py b/documentation/sphinx/conf.py index dbfdbf5..f2eb8e6 100644 --- a/documentation/sphinx/conf.py +++ b/documentation/sphinx/conf.py @@ -14,26 +14,26 @@ import os # import sys # sys.path.insert(0, os.path.abspath('.')) +_pom_path = "../.." -def getVersion(): - cmd = """cd ../.. && \ - mvn -q \ +def getMvnVariable(variable): + cmd = """cd %s && mvn -q \ -Dexec.executable=echo \ - -Dexec.args='${project.version}' \ + -Dexec.args='${project.%s}' \ --non-recursive \ - exec:exec""" + exec:exec""" % (_pom_path, variable) + stream = os.popen(cmd) return stream.read().strip() + # -- Project information ----------------------------------------------------- - -project = 'gCube Hello World Service SG4' -copyright = '2024, gCube System' -author = 'Luca Frosini (ISTI-CNR), Lucio Lelii (ISTI-CNR), Alfredo Oliviero (ISTI-CNR)' - # The full version, including alpha/beta/rc tags -release = getVersion() +release = getMvnVariable("version") +project = getMvnVariable("name") +copyright = '2024, %s' % getMvnVariable("organization.name") +author = 'Luca Frosini (ISTI-CNR), Lucio Lelii (ISTI-CNR), Alfredo Oliviero (ISTI-CNR)' # -- General configuration ---------------------------------------------------