From ffd6bdba9343e09259bbcf648380aa2506e51384 Mon Sep 17 00:00:00 2001 From: Andrej Copar Date: Fri, 13 Feb 2026 15:27:04 +0000 Subject: [PATCH 1/2] Bump copyright year --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 9526a4dc..965a5cbd 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,7 +27,7 @@ version = get_version("resdk") release = version author = "Genialis, Inc" -copyright = "2015-2025, " + author +copyright = "2015-2026, " + author # The language for content autogenerated by Sphinx. language = 'en' From 0ee18c20a632da3ad7ddd797760fb114b7fa1d59 Mon Sep 17 00:00:00 2001 From: Andrej Copar Date: Fri, 13 Feb 2026 15:27:41 +0000 Subject: [PATCH 2/2] Switch docs theme to genialis-docs-theme --- docs/conf.py | 25 +++++++++++++++++++++++-- pyproject.toml | 2 +- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 965a5cbd..a7f297eb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,4 @@ -import sphinx_rtd_theme +import os try: from importlib.metadata import version as get_version @@ -45,7 +45,28 @@ # -- Options for HTML output ---------------------------------------------- # The theme to use for HTML and HTML Help pages. -html_theme = 'sphinx_rtd_theme' +html_theme = "sphinx_nefertiti" + +DOCS_HOST = os.environ.get("DOCS_HOST", "docs.genialis.com") +GOOGLE_ANALYTICS_ID = os.environ.get("GOOGLE_ANALYTICS_ID", "") + +html_theme_options = { + "project_short": project, + "logo_url": f"https://{DOCS_HOST}/", + "google_analytics_id": GOOGLE_ANALYTICS_ID, + "style_header_neutral": True, + "style": "yellow", + + "header_links": [ + { + "text": project, + "link": f"https://{DOCS_HOST}/resdk/index.html", + }, + ], +} + +# Paths that contain custom static files (such as style sheets) +html_static_path = ['_static'] # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = {'python': ('https://docs.python.org/3', None)} diff --git a/pyproject.toml b/pyproject.toml index 61460821..abd1479e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,7 @@ dependencies = [ [project.optional-dependencies] docs = [ "sphinx", - "sphinx_rtd_theme", + "sphinx-nefertiti @ git+ssh://git@github.com/genialis/genialis-docs-theme", # TODO: Consider using sphinx-pyproject in the future. At the time of this # writing the missing feature was disability of sphinx-pyproject to detect # dynamic project version