File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 66# -- Project information -----------------------------------------------------
77# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88
9+ import os
10+ import subprocess
11+
12+
13+ # Automatically retrieve the project version from Git
14+ def get_version ():
15+ try :
16+ return subprocess .check_output (["git" , "describe" , "--tags" ], encoding = "utf-8" ).strip ()
17+ except Exception :
18+ return "0.0.0"
19+
20+
921project = "AgentLab"
10- copyright = "2024, ServiceNow"
1122author = "ServiceNow"
12- release = "0.3.1"
23+ release = get_version () # Full version string including tags
24+ version = release # Short version (e.g., 1.0)
25+
1326
1427# -- General configuration ---------------------------------------------------
1528# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
5770}
5871html_static_path = ["_static" ]
5972
60- import os
6173import sys
6274
6375sys .path .insert (0 , os .path .abspath ("../../src" ))
You can’t perform that action at this time.
0 commit comments