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 17, 2024
1 parent f503686 commit 0600301
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,19 @@
with open(PYPROJECT, "r", encoding="utf8") as f:
pyproject = f.read()
DATA = tomllib.loads(pyproject)
PROJECT_VERSION = DATA["project"]["version"]
PROJECT_NAME = DATA["project"]["name"]
AUTHOR_TABLE = DATA["project"]["authors"]
AUTHORS = ",".join([f"{aut['name']}<{aut['email']}>" for aut in AUTHOR_TABLE])
# print(DATA)
PROJECT_VERSION = "latest" # DATA["project"]["version"]
PROJECT_NAME = "IamAI" # DATA["project"]["name"]
# AUTHOR_TABLE = DATA["project"]["authors"]
# AUTHORS = ",".join([f"{aut['name']}<{aut['email']}>" for aut in AUTHOR_TABLE])

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = PROJECT_NAME # "IamAI"
release = PROJECT_VERSION # "latest"
copyright = "2023-PRESENT, Retrofor Wut?"
author = "Hsiang Nianian" # AUTHORS
author = "HsiangNianian" # AUTHORS

html_title = "Comprehensive AI Toolkit"

Expand Down

0 comments on commit 0600301

Please sign in to comment.