Skip to content

Commit 1c7fe71

Browse files
authored
Replace non-functional TOC directive with explanation where to look (apache#39901)
GitHub stopped rendering .. contents:: :local: in their UI and instead opt for expandable table of content that can be shown by clicking an "index" button at the top-right of the page. It's really nice when you know it but it's not easily discoverable. Seems that this is a deliberate choice and there is no going back, so best approach we can do is to explain it to the users by replacing the index with explanation where to look for it. More details here: github/markup#1798
1 parent c531e38 commit 1c7fe71

37 files changed

+37
-37
lines changed

COMMITTERS.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Before reading this document, you should be familiar with `Contributors' guide <
2222
This document assumes that you are a bit familiar how Airflow's community work, but you would like to learn more
2323
about the rules by which we add new members.
2424

25-
.. contents:: :local:
25+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2626

2727
Committers vs. Maintainers
2828
--------------------------

CONTRIBUTING.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Contributing
1919
============
2020

21-
.. contents:: :local:
21+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2222

2323
Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.
2424

PROVIDERS.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
Apache Airflow Providers
2020
************************
2121

22-
.. contents:: :local:
22+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2323

2424
What is a provider?
2525
===================

airflow/providers/MANAGING_PROVIDERS_LIFECYCLE.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
under the License.
1717
1818
19-
.. contents:: :local:
19+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2020

2121
Creating a new community provider
2222
=================================

contributing-docs/01_roles_in_airflow_project.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ There are several roles within the Airflow Open-Source community.
2222

2323
For detailed information for each role, see: `Committers and PMC members <../COMMITTERS.rst>`__.
2424

25-
.. contents:: :local:
25+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2626

2727
PMC Member
2828
----------

contributing-docs/02_how_to_communicate.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This means that communication plays a big role in it, and this chapter is all ab
2626

2727
In our communication, everyone is expected to follow the `ASF Code of Conduct <https://www.apache.org/foundation/policies/conduct>`_.
2828

29-
.. contents:: :local:
29+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
3030

3131
Various Communication channels
3232
------------------------------

contributing-docs/03_contributors_quick_start.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
Contributor's Quick Start
2020
*************************
2121

22-
.. contents:: :local:
22+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2323

2424
Note to Starters
2525
################

contributing-docs/04_how_to_contribute.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ How to contribute
2121
There are various ways how you can contribute to Apache Airflow. Here is a short overview of
2222
some of those ways that involve creating issues and pull requests on GitHub.
2323

24-
.. contents:: :local:
24+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2525

2626
Report Bugs
2727
-----------

contributing-docs/05_pull_requests.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Pull Requests
2222
This document describes how you can create Pull Requests and describes coding standards we use when
2323
implementing them.
2424

25-
.. contents:: :local:
25+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2626

2727
Pull Request guidelines
2828
-----------------------

contributing-docs/06_development_environments.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Development Environments
2121
There are two environments, available on Linux and macOS, that you can use to
2222
develop Apache Airflow.
2323

24-
.. contents:: :local:
24+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2525

2626
Local virtualenv Development Environment
2727
----------------------------------------

contributing-docs/07_local_virtualenv.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ harder to debug the tests and to use your IDE to run them.
2626

2727
That's why we recommend using local virtualenv for development and testing.
2828

29-
.. contents:: :local:
29+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
3030

3131
Installation in local virtualenv
3232
--------------------------------

contributing-docs/08_static_code_checks.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ for the first time. See the table below to identify which pre-commit checks requ
2626

2727
You can also run the checks via `Breeze <../dev/breeze/doc/README.rst>`_ environment.
2828

29-
.. contents:: :local:
29+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
3030

3131
Pre-commit hooks
3232
----------------

contributing-docs/10_working_with_git.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Working with Git
2222
In this document you can learn basics of how you should use Git in Airflow project. It explains branching model and stresses
2323
that we are using rebase workflow. It also explains how to sync your fork with the main repository.
2424

25-
.. contents:: :local:
25+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2626

2727
Airflow Git Branches
2828
====================

contributing-docs/11_provider_packages.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Airflow 2.0 is split into core and providers. They are delivered as separate pac
2323
* ``apache-airflow`` - core of Apache Airflow
2424
* ``apache-airflow-providers-*`` - More than 70 provider packages to communicate with external services
2525

26-
.. contents:: :local:
26+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2727

2828
Where providers are kept in our repository
2929
------------------------------------------

contributing-docs/12_airflow_dependencies_and_extras.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ you are developing your own operators and DAGs.
3333

3434
This - seemingly unsolvable - puzzle is solved by having pinned constraints files.
3535

36-
.. contents:: :local:
36+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
3737

3838
Pinned constraint files
3939
-----------------------

contributing-docs/14_node_environment_setup.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ found with node\>=8.11.3 and yarn\>=1.19.1. The pre-commit framework of ours ins
2727
node and yarn automatically when installed - if you use ``breeze`` you do not need to install
2828
neither node nor yarn.
2929

30-
.. contents:: :local:
30+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
3131

3232
Installing yarn and its packages manually
3333
-----------------------------------------

contributing-docs/16_contribution_workflow.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
Contribution Workflow
1919
=====================
2020

21-
.. contents:: :local:
21+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2222

2323
Typically, you start your first contribution by reviewing open tickets
2424
at `GitHub issues <https://github.com/apache/airflow/issues>`__.

contributing-docs/README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This index of linked documents aims to explain the subject of contributions if y
2525
any Open Source project, but it will also help people who have contributed to other projects learn about the
2626
rules of that community.
2727

28-
.. contents:: :local:
28+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2929

3030
New Contributor
3131
---------------

contributing-docs/quick-start-ide/contributors_quick_start_gitpod.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
specific language governing permissions and limitations
1616
under the License.
1717
18-
.. contents:: :local:
18+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
1919

2020
Connect your project to Gitpod
2121
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

contributing-docs/quick-start-ide/contributors_quick_start_pycharm.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
specific language governing permissions and limitations
1616
under the License.
1717
18-
.. contents:: :local:
18+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
1919

2020
Setup your project
2121
##################

contributing-docs/quick-start-ide/contributors_quick_start_vscode.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
specific language governing permissions and limitations
1616
under the License.
1717
18-
.. contents:: :local:
18+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
1919

2020
Setup your project
2121
##################

contributing-docs/testing/docker_compose_tests.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Airflow Docker Compose Tests
2020

2121
This document describes how to run tests for Airflow Docker Compose deployment.
2222

23-
.. contents:: :local:
23+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2424

2525
Running Docker Compose Tests with Breeze
2626
----------------------------------------

contributing-docs/testing/integration_tests.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Some of the tests in Airflow are integration tests. These tests require ``airflo
2222
image and extra images with integrations (such as ``celery``, ``mongodb``, etc.).
2323
The integration tests are all stored in the ``tests/integration`` folder.
2424

25-
.. contents:: :local:
25+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2626

2727
Enabling Integrations
2828
---------------------

contributing-docs/testing/k8s_tests.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ deploy and run the cluster tests in our repository and into Breeze development e
2525
KinD has a really nice ``kind`` tool that you can use to interact with the cluster. Run ``kind --help`` to
2626
learn more.
2727

28-
.. contents:: :local:
28+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2929

3030
K8S test environment
3131
--------------------

contributing-docs/testing/system_tests.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Airflow System Tests
2121
System tests need to communicate with external services/systems that are available
2222
if you have appropriate credentials configured for your tests.
2323

24-
.. contents:: :local:
24+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2525

2626
Purpose of System Tests
2727
-----------------------

contributing-docs/testing/testing_packages.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Breeze can be used to test new release candidates of packages - both Airflow and
2222
configure the CI image of Breeze to install and start Airflow for both Airflow and provider packages, whether they
2323
are built from sources or downloaded from PyPI as release candidates.
2424

25-
.. contents:: :local:
25+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2626

2727
Prerequisites
2828
-------------

contributing-docs/testing/unit_tests.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Airflow Unit Tests
2020

2121
All unit tests for Apache Airflow are run using `pytest <http://doc.pytest.org/en/latest/>`_ .
2222

23-
.. contents:: :local:
23+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2424

2525
Writing Unit Tests
2626
------------------

dev/breeze/doc/01_installation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Installation
2121

2222
This document describes prerequisites for running Breeze and installation process.
2323

24-
.. contents:: :local:
24+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2525

2626
Docker Desktop
2727
--------------

dev/breeze/doc/02_customizing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Customizing breeze environment
2323

2424
Breeze can be customized in a number of ways. You can read about those ways in this document.
2525

26-
.. contents:: :local:
26+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2727

2828

2929
Customizing Breeze startup

dev/breeze/doc/03_developer_tasks.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The regular Breeze development tasks are available as top-level commands. Those
2222
used during the development, that's why they are available without any sub-command. More advanced
2323
commands are separated to sub-commands.
2424

25-
.. contents:: :local:
25+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2626

2727
Entering Breeze shell
2828
---------------------

dev/breeze/doc/04_troubleshooting.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
Troubleshooting
2020
===============
2121

22-
.. contents:: :local:
22+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2323

2424
Basic troubleshooting of breeze command
2525
---------------------------------------

dev/breeze/doc/05_test_commands.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Airflow Breeze is a Python script serving as a "swiss-army-knife" of Airflow tes
2222
hood it uses other scripts that you can also run manually if you have problem with running the Breeze
2323
environment. Breeze script allows performing the following tasks:
2424

25-
.. contents:: :local:
25+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2626

2727
Running tests
2828
-------------

dev/breeze/doc/06_managing_docker_images.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Managing Docker images
2222
This document describes how to manage Breeze images CI and PROD - used to run containerized
2323
Airflow development environment and tests.
2424

25-
.. contents:: :local:
25+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2626

2727
CI Image tasks
2828
--------------

dev/breeze/doc/07_breeze_maintenance_tasks.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Breeze maintenance tasks
2121
This document describes Breeze maintenance tasks, that are mostly useful when you are
2222
modifying Breeze itself.
2323

24-
.. contents:: :local:
24+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2525

2626
Regenerating documentation SVG screenshots
2727
..........................................

dev/breeze/doc/08_ci_tasks.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ CI tasks
2121
Breeze hase a number of commands that are mostly used in CI environment to perform cleanup.
2222
Detailed description of the CI design can be found in `CI design <ci/README.md>`_.
2323

24-
.. contents:: :local:
24+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2525

2626
Those are all the commands available in the ``ci`` group:
2727

dev/breeze/doc/09_release_management_tasks.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Release management tasks
2121
Maintainers also can use Breeze for other purposes (those are commands that regular contributors likely
2222
do not need or have no access to run). Those are usually connected with releasing Airflow:
2323

24-
.. contents:: :local:
24+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2525

2626
Those are all of the available release management commands:
2727

dev/breeze/doc/10_advanced_breeze_topics.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Advanced Breeze topics
2121
This document describes advanced topics related to Breeze. It is intended for people who already
2222
know how to use Breeze and want to learn more about it and understand how it works under the hood.
2323

24-
.. contents:: :local:
24+
**The outline for this document in GitHub is available at top-right corner button (with 3-dots and 3 lines).**
2525

2626
Debugging/developing Breeze
2727
---------------------------

0 commit comments

Comments
 (0)