Skip to content

Commit

Permalink
Add Syntax Highlights to code-blocks in docs/best-practices.rst (apac…
Browse files Browse the repository at this point in the history
…he#10258)

(cherry picked from commit e054870)
  • Loading branch information
kaxil authored and Chris Fei committed Mar 5, 2021
1 parent 28f0fa8 commit cb9df31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/best-practices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ Once you have changed the backend, airflow needs to create all the tables requir
Create an empty DB and give airflow's user the permission to ``CREATE/ALTER`` it.
Once that is done, you can run -

.. code-block::
.. code-block:: bash
airflow upgradedb
Expand Down Expand Up @@ -305,14 +305,14 @@ Airflow comes bundles with a default ``airflow.cfg`` configuration file.
You should use environment variables for configurations that change across deployments
e.g. metadata DB, password. You can do it using the format ``$AIRFLOW__{SECTION}__{KEY}``

.. code-block::
.. code-block:: bash
AIRFLOW__CORE__SQL_ALCHEMY_CONN=my_conn_id
AIRFLOW__WEBSERVER__BASE_URL=http://host:port
Some configurations such as Airflow Backend connection URI can be derived from bash commands as well:

.. code-block::
.. code-block:: ini
sql_alchemy_conn_cmd = bash_command_to_run
Expand Down

0 comments on commit cb9df31

Please sign in to comment.