Skip to content

Commit 5b820a7

Browse files
authored
Add copy button to Code Blocks in Airflow Docs (apache#9450)
1 parent 60d19dc commit 5b820a7

File tree

8 files changed

+41
-36
lines changed

8 files changed

+41
-36
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
'exampleinclude',
135135
'docroles',
136136
'removemarktransform',
137+
'sphinx_copybutton',
137138
]
138139

139140
autodoc_default_options = {

requirements/requirements-python3.6.txt

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ beautifulsoup4==4.7.1
7272
billiard==3.6.3.0
7373
black==19.10b0
7474
blinker==1.4
75-
boto3==1.14.5
75+
boto3==1.14.7
7676
boto==2.49.0
77-
botocore==1.17.5
77+
botocore==1.17.7
7878
bowler==0.8.0
7979
cached-property==1.5.1
8080
cachetools==4.1.0
8181
cassandra-driver==3.20.2
8282
cattrs==1.0.0
8383
celery==4.4.5
84-
certifi==2020.4.5.2
84+
certifi==2020.6.20
8585
cffi==1.14.0
8686
cfgv==3.1.0
8787
cfn-lint==0.33.1
@@ -96,17 +96,17 @@ colorlog==4.0.2
9696
connexion==2.7.0
9797
contextvars==2.4
9898
coverage==5.1
99-
croniter==0.3.33
99+
croniter==0.3.34
100100
cryptography==2.9.2
101101
curlify==2.2.1
102102
cx-Oracle==7.3.0
103-
dask==2.18.1
103+
dask==2.19.0
104104
datadog==0.36.0
105105
decorator==4.4.2
106106
defusedxml==0.6.0
107107
dill==0.3.2
108108
distlib==0.3.0
109-
distributed==2.18.0
109+
distributed==2.19.0
110110
dnspython==1.16.0
111111
docker-pycreds==0.4.0
112112
docker==3.7.3
@@ -138,12 +138,12 @@ gcsfs==0.6.2
138138
gevent==20.6.2
139139
gitdb==4.0.5
140140
google-ads==4.0.0
141-
google-api-core==1.20.1
141+
google-api-core==1.21.0
142142
google-api-python-client==1.9.3
143143
google-auth-httplib2==0.0.3
144144
google-auth-oauthlib==0.4.1
145-
google-auth==1.17.2
146-
google-cloud-automl==0.10.0
145+
google-auth==1.18.0
146+
google-cloud-automl==1.0.1
147147
google-cloud-bigquery-datatransfer==1.0.0
148148
google-cloud-bigquery==1.25.0
149149
google-cloud-bigtable==1.2.1
@@ -196,7 +196,7 @@ iso8601==0.1.12
196196
isodate==0.6.0
197197
isort==4.3.21
198198
itsdangerous==1.1.0
199-
jedi==0.17.0
199+
jedi==0.17.1
200200
jira==2.0.0
201201
jmespath==0.10.0
202202
json-merge-patch==0.2
@@ -341,6 +341,7 @@ sortedcontainers==2.2.2
341341
soupsieve==2.0.1
342342
sphinx-argparse==0.2.5
343343
sphinx-autoapi==1.0.0
344+
sphinx-copybutton==0.2.12
344345
sphinx-jinja==1.1.1
345346
sphinx-rtd-theme==0.5.0
346347
sphinxcontrib-applehelp==1.0.2

requirements/requirements-python3.7.txt

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ apispec==1.3.3
4545
appdirs==1.4.4
4646
argcomplete==1.11.1
4747
asn1crypto==1.3.0
48-
astroid==2.3.3
48+
astroid==2.4.2
4949
async-generator==1.10
5050
async-timeout==3.0.1
5151
atlasclient==1.0.0
@@ -72,16 +72,16 @@ beautifulsoup4==4.7.1
7272
billiard==3.6.3.0
7373
black==19.10b0
7474
blinker==1.4
75-
boto3==1.14.5
75+
boto3==1.14.7
7676
boto==2.49.0
77-
botocore==1.17.5
77+
botocore==1.17.7
7878
bowler==0.8.0
7979
cached-property==1.5.1
8080
cachetools==4.1.0
8181
cassandra-driver==3.20.2
8282
cattrs==1.0.0
8383
celery==4.4.5
84-
certifi==2020.4.5.2
84+
certifi==2020.6.20
8585
cffi==1.14.0
8686
cfgv==3.1.0
8787
cfn-lint==0.33.1
@@ -95,17 +95,17 @@ colorama==0.4.3
9595
colorlog==4.0.2
9696
connexion==2.7.0
9797
coverage==5.1
98-
croniter==0.3.33
98+
croniter==0.3.34
9999
cryptography==2.9.2
100100
curlify==2.2.1
101101
cx-Oracle==7.3.0
102-
dask==2.18.1
102+
dask==2.19.0
103103
datadog==0.36.0
104104
decorator==4.4.2
105105
defusedxml==0.6.0
106106
dill==0.3.2
107107
distlib==0.3.0
108-
distributed==2.18.0
108+
distributed==2.19.0
109109
dnspython==1.16.0
110110
docker-pycreds==0.4.0
111111
docker==3.7.3
@@ -137,12 +137,12 @@ gcsfs==0.6.2
137137
gevent==20.6.2
138138
gitdb==4.0.5
139139
google-ads==5.1.0
140-
google-api-core==1.20.1
140+
google-api-core==1.21.0
141141
google-api-python-client==1.9.3
142142
google-auth-httplib2==0.0.3
143143
google-auth-oauthlib==0.4.1
144-
google-auth==1.17.2
145-
google-cloud-automl==0.10.0
144+
google-auth==1.18.0
145+
google-cloud-automl==1.0.1
146146
google-cloud-bigquery-datatransfer==1.0.0
147147
google-cloud-bigquery==1.25.0
148148
google-cloud-bigtable==1.2.1
@@ -192,7 +192,7 @@ iso8601==0.1.12
192192
isodate==0.6.0
193193
isort==4.3.21
194194
itsdangerous==1.1.0
195-
jedi==0.17.0
195+
jedi==0.17.1
196196
jira==2.0.0
197197
jmespath==0.10.0
198198
json-merge-patch==0.2
@@ -336,6 +336,7 @@ sortedcontainers==2.2.2
336336
soupsieve==2.0.1
337337
sphinx-argparse==0.2.5
338338
sphinx-autoapi==1.0.0
339+
sphinx-copybutton==0.2.12
339340
sphinx-jinja==1.1.1
340341
sphinx-rtd-theme==0.5.0
341342
sphinxcontrib-applehelp==1.0.2
@@ -377,7 +378,7 @@ virtualenv==20.0.23
377378
watchtower==0.7.3
378379
wcwidth==0.2.4
379380
websocket-client==0.57.0
380-
wrapt==1.11.2
381+
wrapt==1.12.1
381382
xmltodict==0.12.0
382383
yamllint==1.23.0
383384
yandexcloud==0.41.0

requirements/requirements-python3.8.txt

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ beautifulsoup4==4.7.1
7272
billiard==3.6.3.0
7373
black==19.10b0
7474
blinker==1.4
75-
boto3==1.14.5
75+
boto3==1.14.7
7676
boto==2.49.0
77-
botocore==1.17.5
77+
botocore==1.17.7
7878
bowler==0.8.0
7979
cached-property==1.5.1
8080
cachetools==4.1.0
8181
cassandra-driver==3.20.2
8282
cattrs==1.0.0
8383
celery==4.4.5
84-
certifi==2020.4.5.2
84+
certifi==2020.6.20
8585
cffi==1.14.0
8686
cfgv==3.1.0
8787
cfn-lint==0.33.1
@@ -95,17 +95,17 @@ colorama==0.4.3
9595
colorlog==4.0.2
9696
connexion==2.7.0
9797
coverage==5.1
98-
croniter==0.3.33
98+
croniter==0.3.34
9999
cryptography==2.9.2
100100
curlify==2.2.1
101101
cx-Oracle==7.3.0
102-
dask==2.18.1
102+
dask==2.19.0
103103
datadog==0.36.0
104104
decorator==4.4.2
105105
defusedxml==0.6.0
106106
dill==0.3.2
107107
distlib==0.3.0
108-
distributed==2.18.0
108+
distributed==2.19.0
109109
dnspython==1.16.0
110110
docker-pycreds==0.4.0
111111
docker==3.7.3
@@ -137,12 +137,12 @@ gcsfs==0.6.2
137137
gevent==20.6.2
138138
gitdb==4.0.5
139139
google-ads==5.1.0
140-
google-api-core==1.20.1
140+
google-api-core==1.21.0
141141
google-api-python-client==1.9.3
142142
google-auth-httplib2==0.0.3
143143
google-auth-oauthlib==0.4.1
144-
google-auth==1.17.2
145-
google-cloud-automl==0.10.0
144+
google-auth==1.18.0
145+
google-cloud-automl==1.0.1
146146
google-cloud-bigquery-datatransfer==1.0.0
147147
google-cloud-bigquery==1.25.0
148148
google-cloud-bigtable==1.2.1
@@ -192,7 +192,7 @@ iso8601==0.1.12
192192
isodate==0.6.0
193193
isort==4.3.21
194194
itsdangerous==1.1.0
195-
jedi==0.17.0
195+
jedi==0.17.1
196196
jira==2.0.0
197197
jmespath==0.10.0
198198
json-merge-patch==0.2
@@ -335,6 +335,7 @@ sortedcontainers==2.2.2
335335
soupsieve==2.0.1
336336
sphinx-argparse==0.2.5
337337
sphinx-autoapi==1.0.0
338+
sphinx-copybutton==0.2.12
338339
sphinx-jinja==1.1.1
339340
sphinx-rtd-theme==0.5.0
340341
sphinxcontrib-applehelp==1.0.2
@@ -376,7 +377,7 @@ virtualenv==20.0.23
376377
watchtower==0.7.3
377378
wcwidth==0.2.4
378379
websocket-client==0.57.0
379-
wrapt==1.12.1
380+
wrapt==1.11.2
380381
xmltodict==0.12.0
381382
yamllint==1.23.0
382383
yandexcloud==0.41.0

requirements/setup-3.6.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a4ab821a2c31963aac77f66402bbbf62 /opt/airflow/setup.py
1+
2aefe5ee0325c61727269fc63b030f61 /opt/airflow/setup.py

requirements/setup-3.7.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a4ab821a2c31963aac77f66402bbbf62 /opt/airflow/setup.py
1+
2aefe5ee0325c61727269fc63b030f61 /opt/airflow/setup.py

requirements/setup-3.8.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a4ab821a2c31963aac77f66402bbbf62 /opt/airflow/setup.py
1+
2aefe5ee0325c61727269fc63b030f61 /opt/airflow/setup.py

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version
227227
'sphinx>=2.1.2',
228228
'sphinx-argparse>=0.1.13',
229229
'sphinx-autoapi==1.0.0',
230+
'sphinx-copybutton',
230231
'sphinx-jinja~=1.1',
231232
'sphinx-rtd-theme>=0.1.6',
232233
'sphinxcontrib-httpdomain>=1.7.0',

0 commit comments

Comments
 (0)