Skip to content

Commit cea915a

Browse files
authored
Merge branch 'main' into Outreachyp
2 parents b18588d + ff7096c commit cea915a

33 files changed

+116
-87
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
#
3434
Publish:
3535
runs-on: ubuntu-latest
36-
if: startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/master')
36+
if: startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/main')
3737
steps:
3838
- uses: actions/checkout@v3
3939
with:
@@ -47,13 +47,13 @@ jobs:
4747
uses: docker/setup-qemu-action@v2
4848

4949
- name: Set up Docker Buildx (for chartpress multi-arch builds)
50-
uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 # dependabot updates to latest release
50+
uses: docker/setup-buildx-action@v2
5151

5252
- name: Install chart publishing dependencies (chartpress, helm)
5353
run: |
5454
. ./ci/common
5555
setup_helm v3.5.4
56-
pip install --no-cache-dir chartpress>=1.2 pyyaml
56+
pip install --no-cache-dir chartpress>=2.1 pyyaml
5757
5858
- name: Setup push rights to jupyterhub/helm-chart
5959
# This was setup by...

.github/workflows/test-docker-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: docker/setup-qemu-action@v2
4848

4949
- name: Set up Docker Buildx (for chartpress multi-arch builds)
50-
uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 # dependabot updates to latest release
50+
uses: docker/setup-buildx-action@v2
5151

5252
- name: Build a multiple architecture Docker image
5353
run: |

.github/workflows/watch-dependencies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
# ref: https://github.com/peter-evans/create-pull-request
7676
- name: Create a PR
7777
if: steps.local.outputs.tag != steps.latest.outputs.tag
78-
uses: peter-evans/create-pull-request@v4.1.3
78+
uses: peter-evans/create-pull-request@v4
7979
with:
8080
token: "${{ secrets.jupyterhub_bot_pat }}"
8181
author: JupterHub Bot Account <[email protected]>

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
repos:
1212
# Autoformat: Python code, syntax patterns are modernized
1313
- repo: https://github.com/asottile/pyupgrade
14-
rev: v2.38.2
14+
rev: v3.1.0
1515
hooks:
1616
- id: pyupgrade
1717
args:
1818
- --py37-plus
1919

2020
# Autoformat: Python code
2121
- repo: https://github.com/psf/black
22-
rev: 22.8.0
22+
rev: 22.10.0
2323
hooks:
2424
- id: black
2525
# args are not passed, but see the config in pyproject.toml
@@ -49,7 +49,7 @@ repos:
4949

5050
# Autoformat: js, html, markdown, yaml, json
5151
- repo: https://github.com/pre-commit/mirrors-prettier
52-
rev: v3.0.0-alpha.0
52+
rev: v3.0.0-alpha.3
5353
hooks:
5454
- id: prettier
5555
exclude_types:

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ You are assumed to have a modern version of [Python](https://www.python.org/),
283283
1. Install `helm` - the Kubernetes package manager.
284284

285285
```bash
286-
curl -sf https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
286+
curl -sf https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
287287
```
288288

289289
Here are the [official installation instructions](https://helm.sh/docs/intro/install/).
@@ -368,7 +368,7 @@ it with another version from the [JupyterHub Helm chart
368368
repository](https://jupyterhub.github.io/helm-chart/).
369369

370370
Use the [JupyterHub Helm chart's
371-
changelog](https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/master/CHANGELOG.md)
371+
changelog](https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/HEAD/CHANGELOG.md)
372372
to prepare for breaking changes associated with the version bump.
373373

374374
### Releasing

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![GitHub](https://img.shields.io/badge/issue_tracking-github-blue.svg)](https://github.com/jupyterhub/binderhub/issues)
77
[![Discourse](https://img.shields.io/badge/help_forum-discourse-blue.svg)](https://discourse.jupyter.org/c/binder/binderhub)
88
[![Gitter](https://img.shields.io/badge/social_chat-gitter-blue.svg)](https://gitter.im/jupyterhub/binder)
9-
[![Contribute](https://img.shields.io/badge/I_want_to_contribute!-grey?logo=jupyter)](https://github.com/jupyterhub/binderhub/blob/master/CONTRIBUTING.md)
9+
[![Contribute](https://img.shields.io/badge/I_want_to_contribute!-grey?logo=jupyter)](https://github.com/jupyterhub/binderhub/blob/HEAD/CONTRIBUTING.md)
1010

1111
## What is BinderHub?
1212

@@ -44,7 +44,7 @@ To contribute to the BinderHub project you can work on:
4444

4545
To see how to build the documentation, edit the user interface or modify
4646
the code see [the contribution
47-
guide](https://github.com/jupyterhub/binderhub/blob/master/CONTRIBUTING.md).
47+
guide](https://github.com/jupyterhub/binderhub/blob/HEAD/CONTRIBUTING.md).
4848

4949
## Installation
5050

binderhub/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ def _pod_quota_deprecated(self, change):
344344
)
345345

346346
launch_quota_class = Type(
347-
LaunchQuota,
348-
default=KubernetesLaunchQuota,
347+
klass=LaunchQuota,
348+
default_value=KubernetesLaunchQuota,
349349
help="""
350350
The class used to check quotas for launched servers.
351351

binderhub/repoproviders.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def tokenize_spec(spec):
3838
spec_parts = spec.split("/", 2) # allow ref to contain "/"
3939
if len(spec_parts) != 3:
4040
msg = f'Spec is not of the form "user/repo/ref", provided: "{spec}".'
41-
if len(spec_parts) == 2 and spec_parts[-1] != "master":
42-
msg += f' Did you mean "{spec}/master"?'
41+
if len(spec_parts) == 2 and spec_parts[-1] not in ("main", "master"):
42+
msg += f' Did you mean "{spec}/main"?'
4343
raise ValueError(msg)
4444

4545
return spec_parts
@@ -456,8 +456,8 @@ class GitRepoProvider(RepoProvider):
456456
<url-escaped-namespace>/<resolved_ref>
457457
458458
eg:
459-
https%3A%2F%2Fgithub.com%2Fjupyterhub%2Fzero-to-jupyterhub-k8s/master
460-
https%3A%2F%2Fgithub.com%2Fjupyterhub%2Fzero-to-jupyterhub-k8s/f7f3ff6d1bf708bdc12e5f10e18b2a90a4795603
459+
https%3A%2F%2Fgithub.com%2Fbinder-examples%2Fconda/main
460+
https%3A%2F%2Fgithub.com%2Fbinder-examples%2Fconda/034931911e853252322f2309f1246a4f1076fd7d
461461
462462
This provider is typically used if you are deploying binderhub yourself and you require access to repositories that
463463
are not in one of the supported providers.
@@ -957,6 +957,7 @@ class GistRepoProvider(GitHubRepoProvider):
957957
The ref is optional, valid values are
958958
- a full sha1 of a ref in the history
959959
- master
960+
- HEAD for the default branch
960961
961962
If master or no ref is specified the latest revision will be used.
962963
"""

binderhub/static/index.css

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ p > a:hover {
7777
}
7878

7979
.btn-submit{
80-
background-color:rgb(243, 162, 83);
80+
background-color:rgb(223, 132, 41);
8181
box-shadow: 1px 1px rgba(0,0,0,.075);
8282
color:white;
8383
border:none;
@@ -236,18 +236,27 @@ h4 {
236236
}
237237

238238
.point-orange {
239-
border-color: rgb(243, 162, 83);
240-
color: rgb(243, 162, 83);
239+
border-color: rgb(247, 144, 42);
240+
color: rgb(247, 144, 42);
241241
}
242242

243243
.point-red {
244-
border-color: rgb(208, 102, 129);
245-
color: rgb(208, 102, 129);
244+
border-color: rgb(204, 67, 101);
245+
color: rgb(204, 67, 101);
246246
}
247247

248248
.point-blue {
249-
border-color: rgb(87, 154, 202);
250-
color: rgb(87, 154, 202);
249+
border-color: rgb(41, 124, 184);
250+
color: rgb(41, 124, 184);
251+
}
252+
253+
/*reduce font size of h1 and h2 so the initial design when h3 and h4 tags were used respectively is retained*/
254+
h1{
255+
font-size:1.25em;
256+
}
257+
258+
h2{
259+
font-size:1.125em;
251260
}
252261

253262
span.front-em {

binderhub/templates/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
<div class="col-lg-10 col-lg-offset-1">
1414
{% block header %}
1515
<div id="header" class="text-center">
16-
<h3>Turn a Git repo into a collection of interactive notebooks</h3>
16+
<h1>Turn a Git repo into a collection of interactive notebooks</h1>
1717
<div id="explanation">
1818
Have a repository full of Jupyter notebooks? With Binder, open those notebooks in an executable environment, making your code immediately reproducible by anyone, anywhere.
1919
</div>
2020
</div>
2121
<div id="tutorials" class="text-center">
22-
<h4>New to Binder? Get started with a <a href="https://the-turing-way.netlify.app/communication/binder/zero-to-binder.html" target="_blank">Zero-to-Binder tutorial</a> in Julia, Python, or R.</h4>
22+
<h2>New to Binder? Get started with a <a href="https://the-turing-way.netlify.app/communication/binder/zero-to-binder.html" target="_blank">Zero-to-Binder tutorial</a> in Julia, Python, or R.</h2>
2323
</div>
2424
{% endblock header %}
2525

@@ -99,15 +99,15 @@ <h4 id="form-header" class='row'>Build and launch a repository</h4>
9999

100100
<div class="badges row">
101101
<div class="dropdownmenu" id="toggle-badge-snippet">
102-
<label>Expand to see the text below, paste it into your README to show a binder badge: <img id="badge" src="{{static_url("images/badge_logo.svg")}}"></label>
102+
<label>Expand to see the text below, paste it into your README to show a binder badge: <img id="badge" src="{{static_url("images/badge_logo.svg")}}" alt="Binder badge logo"></label>
103103
<a id="badge-link"></a>
104104
<a href="#" title="show badge snippets"><span id="badge-snippet-caret" class="glyphicon glyphicon-triangle-right"></span></a>
105105
</div>
106106
<div id="badge-snippets" class="hidden">
107107
<!--Markdown section-->
108108
<div class="badge-snippet-row">
109109
<pre id="markdown-badge-snippet" data-default="Fill in the fields to see the markdown badge snippet."></pre>
110-
<img class="icon" src="{{static_url("images/markdown-icon.svg")}}">
110+
<img class="icon" src="{{static_url("images/markdown-icon.svg")}}" alt="Markdown icon">
111111
<img class="icon clipboard"
112112
src="{{static_url("images/copy-icon-black.svg")}}"
113113
data-clipboard-target="#markdown-badge-snippet"
@@ -116,7 +116,7 @@ <h4 id="form-header" class='row'>Build and launch a repository</h4>
116116
<!--RST section-->
117117
<div class="badge-snippet-row">
118118
<pre id="rst-badge-snippet" data-default="Fill in the fields to see the rST badge snippet."></pre>
119-
<img class="icon" src="{{static_url("images/rst-icon.svg")}}">
119+
<img class="icon" src="{{static_url("images/rst-icon.svg")}}" alt="restructured text icon">
120120
<img class="icon clipboard" src="{{static_url("images/copy-icon-black.svg")}}"
121121
data-clipboard-target="#rst-badge-snippet"
122122
alt="Copy rst link to clipboard">

0 commit comments

Comments
 (0)