Skip to content

Commit 1c2ceeb

Browse files
authored
Update conf.py
1 parent 4d95830 commit 1c2ceeb

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

docs/conf.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import sys
88
import traceback
99
from datetime import datetime
10+
from datetime import date
1011
import pythainlp
1112

1213
# -- Path setup --------------------------------------------------------------
@@ -54,24 +55,25 @@
5455
.strip()
5556
.split("-")[0]
5657
)
57-
today = (
58-
os.environ["TODAY"]
59-
if "TODAY" in os.environ
60-
else check_output(
61-
["git", "show", "-s", "--format=%ad", "--date=short"],
62-
shell=False,
63-
stderr=STDOUT,
64-
)
65-
.decode()
66-
.strip()
67-
)
58+
# today = (
59+
# os.environ["TODAY"]
60+
# if "TODAY" in os.environ
61+
# else check_output(
62+
# ["git", "show", "-s", "--format=%ad", "--date=short"],
63+
# shell=False,
64+
# stderr=STDOUT,
65+
# )
66+
# .decode()
67+
# .strip()
68+
# )
6869
except Exception as e:
6970
traceback.print_exc()
7071
release = pythainlp.__version__
71-
today = "<unknown date>"
72+
# today = "<unknown date>"
7273
current_branch = "<unknown>"
7374

7475
# The short X.Y version
76+
today = date.today().strftime("%d/%m/%Y")
7577
version = f"{current_branch} ({release}) <br /> Published date: {today}"
7678

7779
# The full version, including alpha/beta/rc tags

0 commit comments

Comments
 (0)