File tree Expand file tree Collapse file tree 7 files changed +10
-14
lines changed Expand file tree Collapse file tree 7 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 67
67
SYSTEM_TESTS_DIR : pathlib .Path | None
68
68
SYSTEM_TESTS_DIR = AIRFLOW_REPO_ROOT_PATH / "airflow-core" / "tests" / "system" / "core"
69
69
70
- conf_py_path = f"/docs/{ PACKAGE_NAME } /"
71
-
72
70
os .environ ["AIRFLOW_PACKAGE_NAME" ] = PACKAGE_NAME
73
71
74
72
# Hack to allow changing for piece of the code to behave differently while
@@ -238,6 +236,7 @@ def add_airflow_core_exclude_patterns_to_sphinx(exclude_patterns: list[str]):
238
236
# html theme options
239
237
html_theme_options : dict [str , Any ] = get_html_theme_options ()
240
238
239
+ conf_py_path = "/airflow-core/docs/"
241
240
# A dictionary of values to pass into the template engine's context for all pages.
242
241
html_context = get_html_context (conf_py_path )
243
242
Original file line number Diff line number Diff line change 64
64
CHART_ROOT_PATH = AIRFLOW_REPO_ROOT_PATH / "chart"
65
65
CHART_DOC_PATH = CHART_ROOT_PATH / "docs"
66
66
CHART_STATIC_PATH = CHART_DOC_PATH / "static"
67
- conf_py_path = f"/docs/{ PACKAGE_NAME } /"
68
-
69
67
os .environ ["AIRFLOW_PACKAGE_NAME" ] = PACKAGE_NAME
70
68
71
69
CHART_YAML_FILE_PATH = CHART_ROOT_PATH / "Chart.yaml"
134
132
135
133
html_title = f"{ PACKAGE_NAME } Documentation"
136
134
135
+ conf_py_path = "/chart/docs/"
136
+ # A dictionary of values to pass into the template engine's context for all pages.
137
+ html_context = get_html_context (conf_py_path )
138
+
137
139
# A shorter title for the navigation bar. Default is the same as html_title.
138
140
html_short_title = ""
139
141
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ dependencies = [
74
74
" rich-click>=1.7.1" ,
75
75
" click>=8.1.8" ,
76
76
" docutils>=0.21" ,
77
- " sphinx-airflow-theme>=0.1.0 " ,
77
+ " sphinx-airflow-theme>=0.2.2 " ,
78
78
" sphinx-argparse>=0.4.0" ,
79
79
" sphinx-autoapi>=3" ,
80
80
" sphinx-autobuild>=2024.10.2" ,
Original file line number Diff line number Diff line change 80
80
BASE_PROVIDER_SRC_PATH = PROVIDER_PATH / "src" / "airflow"
81
81
PACKAGE_VERSION = CURRENT_PROVIDER ["versions" ][0 ]
82
82
SYSTEM_TESTS_DIR = PROVIDER_PATH / "tests" / "system"
83
- conf_py_path = f"/providers/{ PACKAGE_ID .replace ('.' , '/' )} /docs/"
84
83
85
84
# Adds to environment variables for easy access from other plugins like airflow_intersphinx.
86
85
os .environ ["AIRFLOW_PACKAGE_NAME" ] = PACKAGE_NAME
221
220
222
221
html_theme_options : dict [str , Any ] = get_html_theme_options ()
223
222
223
+
224
+ conf_py_path = f"/providers/{ PACKAGE_ID .replace ('.' , '/' )} /docs/"
224
225
# A dictionary of values to pass into the template engine's context for all pages.
225
226
html_context = get_html_context (conf_py_path )
226
227
Original file line number Diff line number Diff line change @@ -150,10 +150,6 @@ def get_html_theme_options():
150
150
151
151
def get_html_context (conf_py_path : str ):
152
152
return {
153
- # Google Analytics ID.
154
- # For more information look at:
155
- # https://github.com/readthedocs/sphinx_rtd_theme/blob/master/sphinx_rtd_theme/layout.html#L222-L232
156
- "theme_analytics_id" : "UA-140539454-1" ,
157
153
# Variables used to build a button for editing the source code
158
154
#
159
155
# The path is created according to the following template:
Original file line number Diff line number Diff line change 62
62
63
63
PACKAGE_VERSION : str = "stable"
64
64
65
- conf_py_path = f"/docs/{ PACKAGE_NAME } /"
66
-
67
65
# Adds to environment variables for easy access from other plugins like airflow_intersphinx.
68
66
os .environ ["AIRFLOW_PACKAGE_NAME" ] = PACKAGE_NAME
69
67
155
153
156
154
html_theme_options : dict [str , Any ] = get_html_theme_options ()
157
155
156
+ conf_py_path = "/docker-stack-docs/"
158
157
# A dictionary of values to pass into the template engine's context for all pages.
159
158
html_context = get_html_context (conf_py_path )
160
159
Original file line number Diff line number Diff line change 60
60
PACKAGE_NAME = "apache-airflow-providers"
61
61
PROVIDERS_SUMMARY_DOCS_PATH = AIRFLOW_REPO_ROOT_PATH / "providers-summary-docs"
62
62
63
- conf_py_path = f"/docs/{ PACKAGE_NAME } /"
64
-
65
63
os .environ ["AIRFLOW_PACKAGE_NAME" ] = PACKAGE_NAME
66
64
67
65
PACKAGE_VERSION = "stable"
166
164
167
165
html_theme_options : dict [str , Any ] = get_html_theme_options ()
168
166
167
+ conf_py_path = "/providers-summary-docs/"
169
168
# A dictionary of values to pass into the template engine's context for all pages.
170
169
html_context = get_html_context (conf_py_path )
171
170
You can’t perform that action at this time.
0 commit comments