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

jedcunningham 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 f6fb4ccf2d docs: fix environment variable names when section name has 
dot in it (#39312)
f6fb4ccf2d is described below

commit f6fb4ccf2dd048eb0024caec3baf44abc14a9307
Author: Kalle Ahlström <71292737+kahls...@users.noreply.github.com>
AuthorDate: Wed May 1 05:40:50 2024 +0300

    docs: fix environment variable names when section name has dot in it 
(#39312)
---
 docs/exts/includes/sections-and-options.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/exts/includes/sections-and-options.rst 
b/docs/exts/includes/sections-and-options.rst
index 33ea64231f..f191cf10d5 100644
--- a/docs/exts/includes/sections-and-options.rst
+++ b/docs/exts/includes/sections-and-options.rst
@@ -63,13 +63,13 @@
     :Default: ``{{ "''" if option["default"] == "" else option["default"] }}``
         {% if option.get("sensitive") %}
     :Environment Variables:
-      ``AIRFLOW__{{ section_name | upper }}__{{ option_name | upper }}``
+      ``AIRFLOW__{{ section_name | replace(".", "_") | upper }}__{{ 
option_name | upper }}``
 
-      ``AIRFLOW__{{ section_name | upper }}__{{ option_name | upper }}_CMD``
+      ``AIRFLOW__{{ section_name | replace(".", "_") | upper }}__{{ 
option_name | upper }}_CMD``
 
-      ``AIRFLOW__{{ section_name | upper }}__{{ option_name | upper }}_SECRET``
+      ``AIRFLOW__{{ section_name | replace(".", "_") | upper }}__{{ 
option_name | upper }}_SECRET``
         {% else %}
-    :Environment Variable: ``AIRFLOW__{{ section_name | upper }}__{{ 
option_name | upper }}``
+    :Environment Variable: ``AIRFLOW__{{ section_name | replace(".", "_") | 
upper }}__{{ option_name | upper }}``
         {% endif %}
         {% if option["example"] %}
     :Example:

Reply via email to