From b8f6cb05de413d990874d6337b52e21e99b9ae9f Mon Sep 17 00:00:00 2001 From: pkhalaj <11797985+pkhalaj@users.noreply.github.com> Date: Wed, 22 May 2024 15:16:29 +0200 Subject: [PATCH] Fix conf.py for sphinx. (#4) * Fix conf.py for sphinx. * Remove extra paths. * Remove extra paths. * Remove extra paths. * Remove extra paths. * Remove extra paths. --------- Co-authored-by: Pouria Khalaj --- docs/requirements.txt | 1 + docs/source/conf.py | 4 +++- trolldb/api/api.py | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index cbf1e36..c499665 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,2 +1,3 @@ +. sphinx sphinx-rtd-theme diff --git a/docs/source/conf.py b/docs/source/conf.py index 84b614c..c02a333 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -14,6 +14,8 @@ from sphinx.ext import apidoc +from trolldb.version import __version__ + autodoc_mock_imports = ["motor", "pydantic", "fastapi", "uvicorn", "loguru", "pyyaml"] # -- Project information ----------------------------------------------------- @@ -23,7 +25,7 @@ author = "Pouria Khalaj" # The full version, including alpha/beta/rc tags -release = "0.1" +release = __version__ # -- General configuration --------------------------------------------------- diff --git a/trolldb/api/api.py b/trolldb/api/api.py index 461ca9c..85272a1 100644 --- a/trolldb/api/api.py +++ b/trolldb/api/api.py @@ -32,7 +32,6 @@ API_INFO = dict( title="pytroll-db", - version="0.1", summary="The database API of Pytroll", description= "The API allows you to perform CRUD operations as well as querying the database"