diff --git a/airflow-core/docs/core-concepts/dags.rst b/airflow-core/docs/core-concepts/dags.rst index 5e28b6eae573d..59fc1805ae9d5 100644 --- a/airflow-core/docs/core-concepts/dags.rst +++ b/airflow-core/docs/core-concepts/dags.rst @@ -26,7 +26,7 @@ Dags Here's a basic example DAG: -.. image:: /img/basic-dag.png +.. image:: /img/ui-light/basic_dag.png It defines four Tasks - A, B, C, and D - and dictates the order in which they have to run, and which tasks depend on what others. It will also say how often to run the DAG - maybe "every 5 minutes starting tomorrow", or "every day since January 1st, 2020". @@ -331,7 +331,7 @@ The task_id returned by the Python function has to reference a task directly dow .. note:: When a Task is downstream of both the branching operator *and* downstream of one or more of the selected tasks, it will not be skipped: - .. image:: /img/branch_note.png + .. image:: /img/ui-light/branch_note.png The paths of the branching task are ``branch_a``, ``join`` and ``branch_b``. Since ``join`` is a downstream task of ``branch_a``, it will still be run, even though it was not returned as part of the branch decision. @@ -491,11 +491,11 @@ You can also combine this with the :ref:`concepts:depends-on-past` functionality ``join`` is downstream of ``follow_branch_a`` and ``branch_false``. The ``join`` task will show up as skipped because its ``trigger_rule`` is set to ``all_success`` by default, and the skip caused by the branching operation cascades down to skip a task marked as ``all_success``. - .. image:: /img/branch_without_trigger.png + .. image:: /img/ui-light/branch_without_trigger.png By setting ``trigger_rule`` to ``none_failed_min_one_success`` in the ``join`` task, we can instead get the intended behaviour: - .. image:: /img/branch_with_trigger.png + .. image:: /img/ui-light/branch_with_trigger.png Setup and teardown @@ -550,7 +550,7 @@ A TaskGroup can be used to organize tasks into hierarchical groups in Graph view Tasks in TaskGroups live on the same original DAG, and honor all the DAG settings and pool configurations. -.. image:: /img/task_group.gif +.. image:: /img/ui-light/task_group.gif Dependency relationships can be applied across all tasks in a TaskGroup with the ``>>`` and ``<<`` operators. For example, the following code puts ``task1`` and ``task2`` in TaskGroup ``group1`` and then puts both tasks upstream of ``task3``: diff --git a/airflow-core/docs/img/basic-dag.png b/airflow-core/docs/img/basic-dag.png deleted file mode 100644 index 595e555885ed8..0000000000000 Binary files a/airflow-core/docs/img/basic-dag.png and /dev/null differ diff --git a/airflow-core/docs/img/branch_note.png b/airflow-core/docs/img/branch_note.png deleted file mode 100644 index 409874c30fcb1..0000000000000 Binary files a/airflow-core/docs/img/branch_note.png and /dev/null differ diff --git a/airflow-core/docs/img/branch_with_trigger.png b/airflow-core/docs/img/branch_with_trigger.png deleted file mode 100644 index c2f11ea6bb926..0000000000000 Binary files a/airflow-core/docs/img/branch_with_trigger.png and /dev/null differ diff --git a/airflow-core/docs/img/branch_without_trigger.png b/airflow-core/docs/img/branch_without_trigger.png deleted file mode 100644 index 39b5d9593ada1..0000000000000 Binary files a/airflow-core/docs/img/branch_without_trigger.png and /dev/null differ diff --git a/airflow-core/docs/img/task_group.gif b/airflow-core/docs/img/task_group.gif deleted file mode 100644 index b7844f862dac1..0000000000000 Binary files a/airflow-core/docs/img/task_group.gif and /dev/null differ diff --git a/airflow-core/docs/img/ui-dark/basic_dag.png b/airflow-core/docs/img/ui-dark/basic_dag.png new file mode 100644 index 0000000000000..f62203ea869b1 Binary files /dev/null and b/airflow-core/docs/img/ui-dark/basic_dag.png differ diff --git a/airflow-core/docs/img/ui-dark/branch_note.png b/airflow-core/docs/img/ui-dark/branch_note.png new file mode 100644 index 0000000000000..6e27b68a86b04 Binary files /dev/null and b/airflow-core/docs/img/ui-dark/branch_note.png differ diff --git a/airflow-core/docs/img/ui-dark/branch_with_trigger.png b/airflow-core/docs/img/ui-dark/branch_with_trigger.png new file mode 100644 index 0000000000000..04467635005c8 Binary files /dev/null and b/airflow-core/docs/img/ui-dark/branch_with_trigger.png differ diff --git a/airflow-core/docs/img/ui-dark/branch_without_trigger.png b/airflow-core/docs/img/ui-dark/branch_without_trigger.png new file mode 100644 index 0000000000000..6c30d728ca892 Binary files /dev/null and b/airflow-core/docs/img/ui-dark/branch_without_trigger.png differ diff --git a/airflow-core/docs/img/ui-dark/task_group.gif b/airflow-core/docs/img/ui-dark/task_group.gif new file mode 100644 index 0000000000000..32ed29f8b2ce3 Binary files /dev/null and b/airflow-core/docs/img/ui-dark/task_group.gif differ diff --git a/airflow-core/docs/img/ui-light/basic_dag.png b/airflow-core/docs/img/ui-light/basic_dag.png new file mode 100644 index 0000000000000..458ee61544bba Binary files /dev/null and b/airflow-core/docs/img/ui-light/basic_dag.png differ diff --git a/airflow-core/docs/img/ui-light/branch_note.png b/airflow-core/docs/img/ui-light/branch_note.png new file mode 100644 index 0000000000000..0a3d923d1a906 Binary files /dev/null and b/airflow-core/docs/img/ui-light/branch_note.png differ diff --git a/airflow-core/docs/img/ui-light/branch_with_trigger.png b/airflow-core/docs/img/ui-light/branch_with_trigger.png new file mode 100644 index 0000000000000..eb171565321ad Binary files /dev/null and b/airflow-core/docs/img/ui-light/branch_with_trigger.png differ diff --git a/airflow-core/docs/img/ui-light/branch_without_trigger.png b/airflow-core/docs/img/ui-light/branch_without_trigger.png new file mode 100644 index 0000000000000..c2d726506c50a Binary files /dev/null and b/airflow-core/docs/img/ui-light/branch_without_trigger.png differ diff --git a/airflow-core/docs/img/ui-light/task_group.gif b/airflow-core/docs/img/ui-light/task_group.gif new file mode 100644 index 0000000000000..39b7f94da1259 Binary files /dev/null and b/airflow-core/docs/img/ui-light/task_group.gif differ