diff --git a/docs/conf.py b/docs/conf.py index 326b2870b1443..99398789b940d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -130,7 +130,8 @@ 'sphinx.ext.intersphinx', 'autoapi.extension', 'exampleinclude', - 'docroles' + 'docroles', + 'removemarktransform', ] autodoc_default_options = { diff --git a/docs/tutorial.rst b/docs/tutorial.rst index eb43685315a34..e3931a86daa40 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -181,6 +181,17 @@ We can add documentation for DAG or each single task. DAG documentation only sup markdown so far and task documentation support plain text, markdown, reStructuredText, json, yaml +.. exampleinclude:: ../airflow/example_dags/tutorial.py + :language: python + :start-after: [START documentation] + :end-before: [END documentation] + +Adding DAG and Tasks documentation +---------------------------------- +We can add documentation for DAG or each single task. DAG documentation only support +markdown so far and task documentation support plain text, markdown, reStructuredText, +json, yaml + .. exampleinclude:: ../airflow/example_dags/tutorial.py :language: python :start-after: [START documentation]