Skip to content

Commit ae74d3a

Browse files
committed
feat(docs): hardcode project info for sphinx
1 parent f715368 commit ae74d3a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/source/conf.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
else:
1212
import tomli as tomllib
1313

14-
DATA = None
15-
PYPROJECT = os.path.join("..", "..", "cargo.toml")
16-
with open(PYPROJECT, "r", encoding="utf8") as f:
17-
pyproject = f.read()
18-
DATA = tomllib.loads(pyproject)
19-
print(DATA)
20-
PROJECT_VERSION = DATA["package"]["version"]
14+
# DATA = None
15+
# PYPROJECT = os.path.join("..", "..", "cargo.toml")
16+
# with open(PYPROJECT, "r", encoding="utf8") as f:
17+
# pyproject = f.read()
18+
# DATA = tomllib.loads(pyproject)
19+
# print(DATA)
20+
# PROJECT_VERSION = DATA["package"]["version"]
2121
# PROJECT_NAME = DATA["project"]["name"]
2222
# AUTHOR_TABLE = DATA["project"]["authors"]
2323
# AUTHORS = ",".join([f"{aut['name']}<{aut['email']}>" for aut in AUTHOR_TABLE])
@@ -26,7 +26,7 @@
2626
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
2727

2828
project = "Comprehensive AI Toolkit" # PROJECT_NAME
29-
release = PROJECT_VERSION # "latest"
29+
# release = PROJECT_VERSION
3030
copyright = "2023-PRESENT, Retrofor Wut?"
3131
author = "HsiangNianian" # AUTHORS
3232

0 commit comments

Comments
 (0)