Skip to content

Commit

Permalink
Move versionadded marker around in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr authored and potiuk committed Nov 17, 2023
1 parent 60bf351 commit 90944f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/apache-airflow/core-concepts/operators.rst
Expand Up @@ -169,8 +169,7 @@ For example, consider a BashOperator which runs a multi-line bash script, this w
By default, paths provided in this way should be provided relative to the DAG's folder (as this is the default Jinja template search path), but additional paths can be added by setting the ``template_searchpath`` arg on the DAG.

.. versionadded:: 2.8
In some cases, you may want to exclude a string from templating and use it directly. Consider the following task:
In some cases, you may want to exclude a string from templating and use it directly. Consider the following task:

.. code-block:: python
Expand All @@ -189,6 +188,9 @@ This approach disables the rendering of both macros and files and can be applied
bash_command=literal("cat script.sh"),
)
.. versionadded:: 2.8
:func:`~airflow.util.template.literal` was added.

Alternatively, if you want to prevent Airflow from treating a value as a reference to a file, you can override ``template_ext``:

.. code-block:: python
Expand Down

0 comments on commit 90944f5

Please sign in to comment.