diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css deleted file mode 100644 index 7df0a6fba..000000000 --- a/docs/_static/css/custom.css +++ /dev/null @@ -1,18 +0,0 @@ -.toggle .header { - display: block; - clear: both; - cursor: pointer; - cursor: hand; -} - -.toggle .header:before { - content: "▼ "; -} - -.toggle .header.open:before { - content: "▲ "; -} - -.process-type { - font-weight: lighter; -} diff --git a/docs/_templates/page.html b/docs/_templates/page.html deleted file mode 100644 index a9f2e68c4..000000000 --- a/docs/_templates/page.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "!page.html" %} - -{% set css_files = css_files + ["_static/css/custom.css"] %} - -{% block footer %} - -{% endblock %} diff --git a/docs/conf.py b/docs/conf.py index ea8494338..df8bc89c0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -45,11 +45,11 @@ master_doc = "index" # General information about the project. -project = "resolwe_bio" +project = "Resolwe Bio" version = metadata.metadata("resolwe_bio")["version"] release = version author = metadata.metadata("resolwe")["Author-email"] -copyright = "2015-2025, " + author +copyright = "2015-2026, " + author # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -82,10 +82,25 @@ # -- Options for HTML output ---------------------------------------------- # The theme to use for HTML and HTML Help pages. -html_theme = "sphinx_rtd_theme" - -templates_path = ["_templates"] -html_static_path = ["_static"] +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}/resolwe-bio/index.html", + }, + ], +} # Output file base name for HTML help builder. htmlhelp_basename = "Resolwebiodoc" diff --git a/pyproject.toml b/pyproject.toml index 3f8bcca0c..1dde7d528 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,7 +76,12 @@ test = [ "tblib>=3.2.2", "twine==6.1.0", ] -docs = ["daphne", "Sphinx~=8.2.3", "sphinx-rtd-theme==3.0.2", "pyasn1>=0.6.1"] +docs = [ + "daphne", + "Sphinx~=8.2.3", + "pyasn1>=0.6.1", + "sphinx-nefertiti @ git+https://github.com/genialis/genialis-docs-theme", +] package = ["twine", "wheel", "check-manifest", "setuptools_scm"] [project.urls]