This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new ceccf599210 Fix extra white spaces in task-sdk docs (#52773)
ceccf599210 is described below

commit ceccf59921056b05e75e5f819371eee7066415e3
Author: Ankit Chaurasia <[email protected]>
AuthorDate: Thu Jul 3 19:48:14 2025 +0545

    Fix extra white spaces in task-sdk docs (#52773)
    
    * Fix extra white spaces in task-sdk docs
    
    * Read package version from airflow.sdk
---
 task-sdk/docs/conf.py | 26 ++++++++++++++++++++++++--
 1 file changed, 24 insertions(+), 2 deletions(-)

diff --git a/task-sdk/docs/conf.py b/task-sdk/docs/conf.py
index 67cbda55f58..44f9d691b5f 100644
--- a/task-sdk/docs/conf.py
+++ b/task-sdk/docs/conf.py
@@ -21,8 +21,21 @@ from __future__ import annotations
 import sys
 from pathlib import Path
 
+from docs.utils.conf_constants import (
+    AIRFLOW_FAVICON_PATH,
+    SPHINX_DESIGN_STATIC_PATH,
+    get_html_context,
+    get_html_sidebars,
+    get_html_theme_options,
+)
+
+import airflow.sdk
+
 CONF_DIR = Path(__file__).parent.absolute()
 sys.path.insert(0, str(CONF_DIR.parent.parent.joinpath("devel-common", "src", 
"sphinx_exts").resolve()))
+sys.path.insert(0, str(CONF_DIR.parent.joinpath("src").resolve()))
+
+PACKAGE_VERSION = airflow.sdk.__version__
 
 project = "Apache Airflow Task SDK"
 
@@ -58,8 +71,17 @@ autodoc_typehints = "description"
 autoapi_file_patterns = ["*.pyi", "*.py"]
 
 html_theme = "sphinx_airflow_theme"
-html_sidebars = {"**": ["localtoc.html", "globaltoc.html", "searchbox.html", 
"relations.html"]}
-
+html_title = "Apache Airflow Task SDK Documentation"
+html_short_title = "Task SDK"
+html_favicon = AIRFLOW_FAVICON_PATH.as_posix()
+html_static_path = [SPHINX_DESIGN_STATIC_PATH.as_posix()]
+html_css_files = ["custom.css"]
+html_sidebars = get_html_sidebars(PACKAGE_VERSION)
+html_theme_options = get_html_theme_options()
+conf_py_path = "/task-sdk/docs/"
+html_context = get_html_context(conf_py_path)
+html_use_index = True
+html_show_copyright = False
 
 global_substitutions = {
     "experimental": "This is an :ref:`experimental feature <experimental>`.",

Reply via email to