Skip to content

Commit

Permalink
feat(docs): hardcode project info for sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian committed Sep 18, 2024
1 parent f715368 commit ae74d3a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
else:
import tomli as tomllib

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

project = "Comprehensive AI Toolkit" # PROJECT_NAME
release = PROJECT_VERSION # "latest"
# release = PROJECT_VERSION
copyright = "2023-PRESENT, Retrofor Wut?"
author = "HsiangNianian" # AUTHORS

Expand Down

0 comments on commit ae74d3a

Please sign in to comment.