incubator-airflow/docs
Ephraim Anierobi 1257b5c6aa
Fix doc preview error in editor for google operators doc (#10962)
2020-12-06 00:54:08 +00:00
..
apache-airflow Don't emit first_task_scheduling_delay metric for only-once dags (#12835) 2020-12-05 21:56:51 +00:00
apache-airflow-providers Move providers docs to separate package + Spell-check in a common job with docs-build (#12527) 2020-11-22 09:29:51 +01:00
apache-airflow-providers-amazon Move secret backends guides to provider docs (#12798) 2020-12-04 21:58:36 +01:00
apache-airflow-providers-apache-cassandra Move operator guides to provider documentation packages (#12681) 2020-11-30 08:48:24 +01:00
apache-airflow-providers-apache-druid Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-apache-hdfs Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-apache-hive Add example DAGs to provider docs (#12528) 2020-11-22 08:53:28 +01:00
apache-airflow-providers-apache-kylin Add example DAGs to provider docs (#12528) 2020-11-22 08:53:28 +01:00
apache-airflow-providers-apache-livy Add example DAGs to provider docs (#12528) 2020-11-22 08:53:28 +01:00
apache-airflow-providers-apache-pig Add example DAGs to provider docs (#12528) 2020-11-22 08:53:28 +01:00
apache-airflow-providers-apache-pinot Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-apache-spark Move operator guides to provider documentation packages (#12681) 2020-11-30 08:48:24 +01:00
apache-airflow-providers-apache-sqoop Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-celery Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-cloudant Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-cncf-kubernetes Move operator guides to provider documentation packages (#12681) 2020-11-30 08:48:24 +01:00
apache-airflow-providers-databricks Move operator guides to provider documentation packages (#12681) 2020-11-30 08:48:24 +01:00
apache-airflow-providers-datadog Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-dingding Move operator guides to provider documentation packages (#12681) 2020-11-30 08:48:24 +01:00
apache-airflow-providers-discord Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-docker Add example DAGs to provider docs (#12528) 2020-11-22 08:53:28 +01:00
apache-airflow-providers-elasticsearch Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-exasol Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-facebook Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-ftp Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-google Fix doc preview error in editor for google operators doc (#10962) 2020-12-06 00:54:08 +00:00
apache-airflow-providers-grpc Move connection guides to provider documentation packages (#12653) 2020-11-28 08:09:53 +01:00
apache-airflow-providers-hashicorp Move secret backends guides to provider docs (#12798) 2020-12-04 21:58:36 +01:00
apache-airflow-providers-http Move operator guides to provider documentation packages (#12681) 2020-11-30 08:48:24 +01:00
apache-airflow-providers-imap Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-jdbc Move operator guides to provider documentation packages (#12681) 2020-11-30 08:48:24 +01:00
apache-airflow-providers-jenkins Add example DAGs to provider docs (#12528) 2020-11-22 08:53:28 +01:00
apache-airflow-providers-jira Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-microsoft-azure Move secret backends guides to provider docs (#12798) 2020-12-04 21:58:36 +01:00
apache-airflow-providers-microsoft-mssql Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-microsoft-winrm Add example DAGs to provider docs (#12528) 2020-11-22 08:53:28 +01:00
apache-airflow-providers-mongo Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-mysql Move operator guides to provider documentation packages (#12681) 2020-11-30 08:48:24 +01:00
apache-airflow-providers-odbc Move connection guides to provider documentation packages (#12653) 2020-11-28 08:09:53 +01:00
apache-airflow-providers-openfaas Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-opsgenie Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-oracle Move connection guides to provider documentation packages (#12653) 2020-11-28 08:09:53 +01:00
apache-airflow-providers-pagerduty Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-papermill Move operator guides to provider documentation packages (#12681) 2020-11-30 08:48:24 +01:00
apache-airflow-providers-plexus Add example DAGs to provider docs (#12528) 2020-11-22 08:53:28 +01:00
apache-airflow-providers-postgres Move connection guides to provider documentation packages (#12653) 2020-11-28 08:09:53 +01:00
apache-airflow-providers-presto Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-qubole Add example DAGs to provider docs (#12528) 2020-11-22 08:53:28 +01:00
apache-airflow-providers-redis Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-salesforce Move connection guides to provider documentation packages (#12653) 2020-11-28 08:09:53 +01:00
apache-airflow-providers-samba Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-segment Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-sendgrid Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-sftp Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-singularity Add example DAGs to provider docs (#12528) 2020-11-22 08:53:28 +01:00
apache-airflow-providers-slack Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-snowflake Move operator guides to provider documentation packages (#12681) 2020-11-30 08:48:24 +01:00
apache-airflow-providers-sqlite Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-ssh Move connection guides to provider documentation packages (#12653) 2020-11-28 08:09:53 +01:00
apache-airflow-providers-telegram Add Telegram hook and operator (#11850) 2020-12-05 11:21:11 +00:00
apache-airflow-providers-vertica Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
apache-airflow-providers-yandex Move operator guides to provider documentation packages (#12681) 2020-11-30 08:48:24 +01:00
apache-airflow-providers-zendesk Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
exts Move apache-airflow docs to subdirectory (#12715) 2020-12-01 02:14:20 +01:00
rtd-deprecation Fix build on RTD (#12551) 2020-11-23 09:52:24 +01:00
README.rst Move apache-airflow docs to subdirectory (#12715) 2020-12-01 02:14:20 +01:00
build_docs.py Add expandable groups in the docs build log (#12799) 2020-12-04 21:51:22 +01:00
conf.py Add Telegram hook and operator (#11850) 2020-12-05 11:21:11 +00:00
list-roles.sh Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00
spelling_wordlist.txt Move operator guides to provider documentation packages (#12681) 2020-11-30 08:48:24 +01:00
start_doc_server.sh Separate out documentation building per provider (#12444) 2020-11-20 15:35:56 +01:00

README.rst

 .. Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

 ..   http://www.apache.org/licenses/LICENSE-2.0

 .. Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.

Documentation
#############

This directory contains documentation for the Apache Airflow project and other packages that are closely related to it ie. providers packages.  Documentation is built using `Sphinx <https://www.sphinx-doc.org/>`__.

For Helm Chart, see: `/chart/README.md <../chart/READMe.md>`__

Development documentation preview
==================================

Documentation from the ``master`` branch is built and automatically published: `s.apache.org/airflow-docs <s.apache.org/airflow-docs>`_

Documentation for your PRs is available as downloadable artifact in GitHub Actions after the CI builds your PR.

Building documentation
======================

To generate a local version you can use `<../BREEZE.rst>`_.

The documentation build consists of verifying consistency of documentation and two steps:

* spell checking
* building documentation

You can only run one of the steps via ``--spellcheck-only`` or ``--docs-only``.

.. code-block:: bash

    ./breeze build-docs

or just to run spell-check

.. code-block:: bash

     ./breeze build-docs -- --spellcheck-only

or just to run documentation building

.. code-block:: bash

     ./breeze build-docs -- --docs-only

Troubleshooting
---------------

If you are creating ``example_dags`` directory, you need to create ``example_dags/__init__.py`` with Apache
license or copy another ``__init__.py`` file that contains the necessary license.

Cross-referencing syntax
========================

Cross-references are generated by many semantic interpreted text roles.
Basically, you only need to write:

.. code-block:: rst

    :role:`target`

And a link will be
created to the item named *target* of the type indicated by *role*. The link's
text will be the same as *target*.

You may supply an explicit title and reference target, like in reST direct
hyperlinks:

.. code-block:: rst

    :role:`title <target>`

This will refer to *target*, but the link text will be *title*.

Here are practical examples:

.. code-block:: rst

    :class:`airflow.models.dag.DAG` - link to Python API reference documentation
    :doc:`/docs/operators` - link to other document
    :ref:`handle` - link to section in current or another document

    .. _handle:

    Section title
    ----------------------------------

Role ``:class:`` works well with references between packages. If you want to use other roles, it is a good idea to specify a package:

.. code-block:: rst

    :doc:`apache-airflow:installation`
    :ref:`apache-airflow-providers-google:write-logs-stackdriver`

If you still feel confused then you can view more possible roles for our documentation:

.. code-block:: bash

    ./list-roles.sh

For more information, see: `Cross-referencing syntax <https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html>`_ in Sphinx documentation

Support
=======

If you need help, write to `#documentation <https://apache-airflow.slack.com/archives/CJ1LVREHX>`__ channel on `Airflow's Slack <https://s.apache.org/airflow-slack>`__