From a4077be37917b69d65a0f462d8cc370e503b6d35 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Thu, 14 Nov 2024 16:35:24 +0100 Subject: [PATCH 1/2] build: added bec_widgets as dependency --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 75e329d..e5e49bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ dependencies = [ "rich", "pyepics", "pyueye", # for the IDS uEye camera + "bec_widgets", ] [project.optional-dependencies] -- 2.49.1 From f14a5f220ee3e4bd76b77881f64ec73be199eef1 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Thu, 14 Nov 2024 16:35:37 +0100 Subject: [PATCH 2/2] docs: cleanup for rtd --- docs/conf.py | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 7b9c34a..bdc4cb9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -6,10 +6,6 @@ # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information -import os -import pathlib - -import tomli project = "SLS cSAXS" copyright = "2024, Paul Scherrer Institute" @@ -18,18 +14,6 @@ author = "Paul Scherrer Institute" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration -current_path = pathlib.Path(__file__).parent.parent.resolve() -version_path = f"{current_path}/pyproject.toml" - - -def get_version(): - """load the version from the version file""" - with open(version_path, "r", encoding="utf-8") as file: - res = tomli.loads(file.read()) - return res["project"]["version"] - - -release = get_version() extensions = [ "sphinx.ext.autodoc", @@ -79,4 +63,5 @@ language = "Python" html_theme = "pydata_sphinx_theme" html_static_path = ["_static"] html_css_files = ["custom.css"] -# html_logo = "../bec_widgets/assets/app_icons/bec_widgets_icon.png" +# html_logo = "./assets/csaxs_icon.png" +html_title = "SLS cSAXS" -- 2.49.1