From a2890ea4ce139162de4caf54b309eb3cd9aaf146 Mon Sep 17 00:00:00 2001 From: Jay Chung Date: Mon, 12 Dec 2022 14:57:27 +0800 Subject: [PATCH] [doc] yaml file render rule doc by example --- {tests/migration => docs/ext}/__init__.py | 0 docs/ext/rules_ex.py | 2 ++ docs/index.rst | 1 + docs/rule.rst | 6 ++++++ 4 files changed, 9 insertions(+) rename {tests/migration => docs/ext}/__init__.py (100%) create mode 100644 docs/ext/rules_ex.py create mode 100644 docs/rule.rst diff --git a/tests/migration/__init__.py b/docs/ext/__init__.py similarity index 100% rename from tests/migration/__init__.py rename to docs/ext/__init__.py diff --git a/docs/ext/rules_ex.py b/docs/ext/rules_ex.py new file mode 100644 index 0000000..6584985 --- /dev/null +++ b/docs/ext/rules_ex.py @@ -0,0 +1,2 @@ +def foo(): + pass \ No newline at end of file diff --git a/docs/index.rst b/docs/index.rst index 699b808..04835aa 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -17,6 +17,7 @@ and Yaml file to define the transformation rules. start cli + rule arch Indices and tables diff --git a/docs/rule.rst b/docs/rule.rst new file mode 100644 index 0000000..1b0d492 --- /dev/null +++ b/docs/rule.rst @@ -0,0 +1,6 @@ +Rules +===== + +Airphin is a rule based AST transformer, it contains a set of rules to allow users migrate from Airflow DAGs to +DolphinScheduler DAGs. In this section we will show all rules and examples about them. +