This is an automated email from the ASF dual-hosted git repository.
eladkal 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 39f215f88ed docs: conditionally render section‐move links in
sections‐and‐options include (#50582)
39f215f88ed is described below
commit 39f215f88edbdf00ce7589732d02a7215671c621
Author: Ankit Chaurasia <[email protected]>
AuthorDate: Wed May 14 13:49:01 2025 +0545
docs: conditionally render section‐move links in sections‐and‐options
include (#50582)
* Add condition for section move in docs
* docs(fab): add Sphinx anchors for access_denied_message and
expose_hostname config options
---
devel-common/src/sphinx_exts/includes/sections-and-options.rst | 4 ++++
providers/fab/docs/configurations-ref.rst | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/devel-common/src/sphinx_exts/includes/sections-and-options.rst
b/devel-common/src/sphinx_exts/includes/sections-and-options.rst
index f9bbf5c83d5..e04383c8c55 100644
--- a/devel-common/src/sphinx_exts/includes/sections-and-options.rst
+++ b/devel-common/src/sphinx_exts/includes/sections-and-options.rst
@@ -101,7 +101,11 @@
{{ "-" * (deprecated_option_name + " (Deprecated)")|length }}
.. deprecated:: {{ since_version }}
+ {% if new_section_name in configs %}
The option has been moved to :ref:`{{ new_section_name }}.{{
new_option_name }} <config:{{ new_section_name }}__{{ new_option_name }}>`
+ {% else %}
+ The option has been moved to ``{{ new_section_name }}.{{ new_option_name
}}``
+ {% endif %}
{% endfor %}
{% endif %}
diff --git a/providers/fab/docs/configurations-ref.rst
b/providers/fab/docs/configurations-ref.rst
index a52b21b2e56..c75f9b18b44 100644
--- a/providers/fab/docs/configurations-ref.rst
+++ b/providers/fab/docs/configurations-ref.rst
@@ -16,4 +16,8 @@
under the License.
.. include::
/../../../devel-common/src/sphinx_exts/includes/providers-configurations-ref.rst
+
+.. _config:fab__access_denied_message:
+.. _config:fab__expose_hostname:
+
.. include::
/../../../devel-common/src/sphinx_exts/includes/sections-and-options.rst