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

potiuk pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-0-test by this push:
     new 04950b16441 [v3-0-test] Fix missing version substitution in docs 
(#49640) (#49642)
04950b16441 is described below

commit 04950b16441e4a6953aec8a2c7875810b9cc2905
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Apr 23 19:42:56 2025 +0200

    [v3-0-test] Fix missing version substitution in docs (#49640) (#49642)
    
    The separation of docs missed the substitution to replace version
    in some documentation.
    (cherry picked from commit 8b6b9b90adc72c4e106bfa9b41be4269ce6b655a)
    
    
    Fixes: #49622
    
    Co-authored-by: Jarek Potiuk <[email protected]>
---
 airflow-core/docs/conf.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/airflow-core/docs/conf.py b/airflow-core/docs/conf.py
index 43026bb39f2..a22136193ae 100644
--- a/airflow-core/docs/conf.py
+++ b/airflow-core/docs/conf.py
@@ -263,6 +263,13 @@ jinja_contexts = {
     },
 }
 
+# Use for generate rst_epilog and other post-generation substitutions
+global_substitutions = {
+    "version": PACKAGE_VERSION,
+    "airflow-version": airflow.__version__,
+    "experimental": "This is an :ref:`experimental feature <experimental>`.",
+}
+
 # -- Options for sphinx.ext.autodoc 
--------------------------------------------
 # See: https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html
 

Reply via email to