-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
273 lines (273 loc) · 17.6 KB
/
index.html
File metadata and controls
273 lines (273 loc) · 17.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Binder link generator — euroargodev documentation</title>
<link rel="preload" as="font" type="font/woff" crossorigin href="_static/fonts/clearsans/WOFF/ClearSans-Regular.woff">
<link rel="preload" as="font" type="font/woff" crossorigin href="_static/fonts/clearsans/WOFF/ClearSans-Thin.woff">
<link rel="preload" as="font" type="font/woff" crossorigin href="_static/fonts/clearsans/WOFF/ClearSans-Light.woff">
<link rel="stylesheet" type="text/css" href="_static/css/theme.css">
<link rel="stylesheet" type="text/css" href="_static/css/index.css">
<link rel="stylesheet" type="text/css" href="_static/css/index-badge.css">
<link rel="stylesheet"
href="_static/vendor/fontawesome/5.13.0/css/all.min.css">
<link rel="preload" as="font" type="font/woff2" crossorigin
href="_static/vendor/fontawesome/5.13.0/webfonts/fa-solid-900.woff2">
<link rel="preload" as="font" type="font/woff2" crossorigin
href="_static/vendor/fontawesome/5.13.0/webfonts/fa-brands-400.woff2">
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/sphinx-book-theme.css" />
<link rel="stylesheet" type="text/css" href="_static/css/blank.css" >
<link rel="preload" as="script" href="_static/js/index.js">
<script src="_static/jquery.js"></script>
<script src="_static/link_gen/link.js"></script>
<script src="_static/sphinx-book-theme.js"></script>
<script src="https://cdn.jsdelivr.net/npm/clipboard@1/dist/clipboard.min.js"></script>
<script src="_static/js/badge.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="docsearch:language" content="None">
</head>
<body>
<div class="container-fluid" id="banner"></div>
<div class="container-xl">
<div class="row">
<main class="col py-md-3 pl-md-4 bd-content overflow-auto" role="main">
<div id="main-content" class="row">
<div class="col-12 pl-md-3 pr-md-0">
<img src="_static/images/euroargodev-icon.png" height="100px"><img src="_static/images/logo_binder_text.png" height="100px">
<div>
<div class="section" id="nbgitpuller-link-generator">
<h1>Link/badge generator for euroargodev repositories on Binder<a class="headerlink" href="#nbgitpuller-link-generator" title="Permalink to this headline">¶</a></h1>
<p>Use the following form to create your own <code class="docutils literal notranslate"><span class="pre">binder/nbgitpuller</span></code> links or badge</p>
<div class="container">
<form id="linkgenerator" class="form needs-validation">
<div class="form-group">
<ul class="nav nav-tabs justify-content-end" role="tablist">
<li class="nav-item">
<a class="nav-link" id="tab-auth-binder" data-toggle="tab" role="tab" href="#auth-binder" aria-controls="auth-binder" onclick="changeTab(this)">
<small>MyBinder.org</small>
</a>
</li>
<li class="nav-item">
<a class="nav-link active" id="tab-auth-default" data-toggle="tab" role="tab" href="#auth-default" aria-controls="auth-default" onclick="changeTab(this)">
<small>JupyterHub</small>
</a>
</li>
</ul>
<div class="tab-content hidden">
Copy the URL below and share your Binder with others:
<div class="tab-pane fade show active" id="auth-default" role="tabpanel" aria-labelledby="tab-auth-default">
<input type="text" readonly class="form-control form-control" id="default-link" name="auth-default-link" placeholder="Generated link appears here...">
</div>
<div class="tab-pane fade" id="auth-binder" role="tabpanel" aria-labelledby="tab-auth-binder">
<input type="text" readonly class="form-control form-control" id="binder-link" name="auth-binder-link" placeholder="Generated Binder link appears here...">
</div>
</div>
</ul>
</div>
<div class="form-group row">
<label for="hub" class="col-sm-2 col-form-label">JupyterHub URL</label>
<div class="col-sm-10">
<input class="form-control" type="url" name="hub" id="hub" placeholder="https://hub.example.com"
required pattern="https?://.+">
<div class="invalid-feedback">
Must be a valid web URL
</div>
<small class="form-text text-muted" id="hub-help-text">
The JupyterHub to send users to.
<a href="https://github.com/jupyterhub/nbgitpuller">nbgitpuller</a> must be installed in this hub.
</small>
</div>
</div>
<div class="form-group row">
<label for="repo" class="col-sm-2 col-form-label">Git Repository URL</label>
<div class="col-sm-6">
<input class="form-control" type="text" id="repo" placeholder="https://github.com/euroargodev/binder-sandbox"
oninput="displayLink()" required pattern="((git|https?)://.+|git@.+:.+)">
<div class="invalid-feedback">
Must be a valid git URL
</div>
<small class="form-text text-muted" id="env-repo-help-text" hidden="true">
The environment repository must have
<a href="https://github.com/jupyterhub/nbgitpuller">nbgitpuller</a> installed.
</small>
</div>
<div class="col-sm-4">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text" id="branch-prepend-label">branch</span>
</div>
<input name="branch" id="branch" type="text" class="form-control" value="main" aria-label="Branch Name" aria-describedby="branch-prepend-label">
<div class="invalid-feedback">
Must specify a branch name
</div>
</div>
</div>
</div>
<div class="form-group row" id="content-repo-group" hidden="true">
<label for="content-repo" class="col-sm-2 col-form-label">Git Content Repository URL</label>
<div class="col-sm-6">
<input class="form-control" type="text" id="content-repo" placeholder="https://github.com/euroargodev/test"
oninput="displayLink()" pattern="((git|https?)://.+|git@.+:.+)">
<div class="invalid-feedback">
Must be a valid git URL
</div>
<small class="form-text text-muted" id="hub-help-text">
The repository with notebooks you want to share or test online
</small>
</div>
<div class="col-sm-4">
<div class="input-group" id="content-branch-group" hidden="true">
<div class="input-group-prepend">
<span class="input-group-text" id="content-branch-prepend-label">branch</span>
</div>
<input name="content-branch" id="content-branch" type="text" class="form-control" placeholder="main" aria-label="Branch Name" aria-describedby="content-branch-prepend-label">
</div>
</div>
</div>
<div class="form-group row" id="filepath-container">
<label for="filepath" class="col-sm-2 col-form-label">File to open</label>
<div class="col-sm-10">
<input class="form-control" type="text" id="filepath" placeholder="docs/index.ipynb"
oninput="displayLink()">
<small class="form-text text-muted">
This file or directory from within the content repo will open when user clicks the link.
</small>
</div>
</div>
<div class="form-group row" id="app-container">
<div class="col-sm-2 col-form-label">
<label for="app" class=>Application to Open</label>
<small class="form-text text-muted">
</small>
</div>
<div class="col-sm-10">
<div class="form-check">
<input class="form-check-input" type="radio" name="app" id="app-classic" value="classic">
<label class="form-check-label text-dark" for="app-classic">
Classic Jupyter Notebook
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="app" id="app-retrolab" value="retrolab">
<label class="form-check-label text-dark" for="app-retrolab">
RetroLab
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="app" id="app-jupyterlab" value="jupyterlab" checked>
<label class="form-check-label text-dark" for="app-jupyterlab">
JupyterLab
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="app" id="app-rstudio" value="rstudio">
<label class="form-check-label text-dark" for="app-rstudio">
RStudio
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="app" id="app-shiny" value="shiny">
<label class="form-check-label text-dark" for="app-shiny">
Shiny
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="app" id="app-custom" value="custom">
<label class="form-check-label text-dark" for="app-custom">Custom URL</label>
<input class="form-control form-control-sm" type="text" id="urlpath" placeholder="Relative URL to redirect user to"
oninput="displayLink()">
</div>
</div>
</div>
<div class="form-group badges row">
<div class="dropdownmenu" id="toggle-badge-snippet2">
<label>Copy the URL below to share your Binder with others:</label>
<a id="badge-link2"></a>
<a href="#" title="show badge snippets"><span id="badge-snippet-caret2" class="glyphicon glyphicon-triangle-right"></span></a>
</div>
<div id="badge-snippets2" class="hidden">
<!--Link-->
<div class="badge-snippet-row">
<pre id="link-badge-snippet" data-default="blabla"></pre>
<button type="button" class="btn" id="launch-link"><i class="fas fa-external-link-alt"></i></button>
<img class="icon clipboard"
src="_static/images/copy-icon-black.svg"
data-clipboard-target="#link-badge-snippet"
alt="Copy link to clipboard">
</div>
</div>
</div>
<div class="form-group badges row">
<div class="dropdownmenu" id="toggle-badge-snippet">
<label>Or paste text below into your README to show a Binder badge: <a id="badge-link"><img id="badge" src="_static/images/badge_logo.png"></a></label>
<a href="#" title="show badge snippets"><span id="badge-snippet-caret" class="glyphicon glyphicon-triangle-right"></span></a>
</div>
<div id="badge-snippets" class="hidden">
<!--Markdown section-->
<div class="badge-snippet-row">
<pre id="markdown-badge-snippet" data-default="Fill in the fields to see the markdown badge snippet."></pre>
<img class="icon" src="_static/images/markdown-icon.svg">
<img class="icon clipboard"
src="_static/images/copy-icon-black.svg"
data-clipboard-target="#markdown-badge-snippet"
alt="Copy markdown link to clipboard">
</div>
<!--RST section-->
<div class="badge-snippet-row">
<pre id="rst-badge-snippet" data-default="Fill in the fields to see the rST badge snippet."></pre>
<img class="icon" src="_static/images/rst-icon.svg">
<img class="icon clipboard" src="_static/images/copy-icon-black.svg"
data-clipboard-target="#rst-badge-snippet"
alt="Copy rst link to clipboard">
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div id="how-it-works" class="col-12">
<h3 class="text-center">How it works</h3>
<div class="row">
<div class="col-md-1 col-md-offset-2 point-container">
<span class="point point-orange">1</span>
</div>
<div class="col-md-11 front">
<span class="front-em">Enter your repository information</span><br />Provide in the above Git Content Repository a URL or a GitHub repository that contains Jupyter notebooks, as well as a branch, tag, or commit hash. Click the <i class="fas fa-external-link-alt"></i> button will build a Binder repository and clone the Content Repository. If you specify a path to a notebook file, the notebook will be opened in your browser after building.
</div>
</div>
<div class="row">
<div class="col-md-1 col-md-offset-2 point-container">
<span class="point point-red">2</span>
</div>
<div class="col-md-11 front">
<span class="front-em"><a href="https://staging.mybinder.org/">MyBinder</a> build a Docker image of the <a href="https://github.com/euroargodev/binder-sandbox">environment repository</a></span><br />You can select a branch to specify which environment you want to build. If an image has already been built for the repository, it will not be rebuilt. Then Binder will pull the Git Content Repository with <a href="https://jupyterhub.github.io/nbgitpuller/">nbgitpuller</a>.
</div>
</div>
<div class="row">
<div class="col-md-1 col-md-offset-2 point-container">
<span class="point point-blue">3</span>
</div>
<div class="col-md-11 front">
<span class="front-em">Interact with your notebooks in a live environment!</span><br />A <a href="https://jupyterhub.readthedocs.io/en/latest/">JupyterHub</a> server will host your repository's content. <a href="https://staging.mybinder.org/">MyBinder</a> offer you a reusable link and badge to your live repository that you can easily share with others.
</div>
</div>
</div>
</div>
<footer class="footer col-9">
<div class="container">
<p>
By The nbgitpuller Team, modified by the <a href="@euroargodev/dev">Euroargodev team</a><br/>
© Copyright 2021, The nbgitpuller Team. © Copyright 2022-2025, The Euroargodev Team.<br/>
</p>
</div>
</footer>
</main>
</div>
</div>
<script src="_static/js/index.js"></script>
</body>
</html>