From 0600301c31e87868f1329a56bc3534a555aa6c33 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Tue, 17 Sep 2024 16:50:18 +0800 Subject: [PATCH] feat(docs): hardcode project info for sphinx --- docs/source/conf.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index e8d35a30..b060757d 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -16,10 +16,11 @@ 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 @@ -27,7 +28,7 @@ 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"