From e0e2e85730b7c86b0c2025375f53a20135faa1c5 Mon Sep 17 00:00:00 2001 From: yusuke-takase Date: Fri, 8 Nov 2024 13:48:08 +0900 Subject: [PATCH] fix docs --- docs/source/conf.py | 6 +++--- grasp2alm/version.py | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index c5f09cb..c4a61bb 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -8,8 +8,8 @@ import toml module_path = os.path.abspath(os.path.join('..','..','grasp2alm')) -pyproject_path = os.path.abspath(os.path.join('..','..','pyproject.toml')) sys.path.insert(0, module_path) +pyproject_path = os.path.abspath(os.path.join('..','..','pyproject.toml')) with open(pyproject_path, 'r') as f: pyproject_data = toml.load(f) @@ -19,8 +19,8 @@ project = 'grasp2alm' copyright = '2024, Yusuke Takase' -author = pyproject_data['tool']['poetry']['authors'] -release = pyproject_data['tool']['poetry']['version'] +author = "Yusuke Takase" +#release = pyproject_data['tool']['poetry']['version'] # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/grasp2alm/version.py b/grasp2alm/version.py index 6b8d77d..e114ace 100644 --- a/grasp2alm/version.py +++ b/grasp2alm/version.py @@ -2,8 +2,7 @@ import os import toml -module_path = os.path.abspath(os.path.join('..','grasp2alm')) -pyproject_path = os.path.join(module_path, 'pyproject.toml') +pyproject_path = os.path.join(os.path.join('..','pyproject.toml')) with open(pyproject_path, 'r') as f: pyproject_data = toml.load(f)