From 1d35ada19dd27590f57845fbc0720cbaced12d43 Mon Sep 17 00:00:00 2001 From: csunny Date: Thu, 25 May 2023 16:24:09 +0800 Subject: [PATCH] fix: docs --- docs/conf.py | 3 +++ pyproject.toml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index c9904dc31..c6757eda7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -7,11 +7,14 @@ # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information import toml +import os +import sys project = "DB-GPT" copyright = "2023, csunny" author = "csunny" +sys.path.insert(0, os.path.abspath("../")) with open("../pilot/VERSION") as f: version = f.read() diff --git a/pyproject.toml b/pyproject.toml index 6ff2e0df1..532c052b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,9 @@ ignore_missing_imports = "True" disallow_untyped_defs = "True" exclude = ["notebooks", "build", "examples"] +[tool.setuptools] +py-modules = [] + [tool.ruff] exclude = [ ".venv",