Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sphinx_rtd_theme
import os

try:
from importlib.metadata import version as get_version
Expand Down Expand Up @@ -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'
Expand All @@ -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)}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down