Skip to content

Commit 77488db

Browse files
authored
Merge pull request #165 from yuvipanda/shiny-link
Support generating shiny links
2 parents d7bdacf + e46c169 commit 77488db

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

docs/_static/link_gen/link.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ var apps = {
7878
title: 'JupyterLab',
7979
generateUrlPath: function (path) { return 'lab/tree/' + path; }
8080
},
81+
shiny: {
82+
title: 'Shiny',
83+
generateUrlPath: function (path) {
84+
// jupyter-shiny-proxy requires everything to end with a trailing slash
85+
if (!path.endsWith("/")) {
86+
path = path + "/";
87+
}
88+
return 'shiny/' + path;
89+
}
90+
},
8191
rstudio: {
8292
title: 'RStudio',
8393
generateUrlPath: function (path) { return 'rstudio/'; }

docs/link.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@ Use the following form to create your own ``nbgitpuller`` links.
138138
RStudio
139139
</label>
140140
</div>
141+
<div class="form-check">
142+
<input class="form-check-input" type="radio" name="app" id="app-shiny" value="shiny">
143+
<label class="form-check-label text-dark" for="app-shiny">
144+
Shiny
145+
</label>
146+
</div>
141147
<div class="form-check">
142148
<input class="form-check-input" type="radio" name="app" id="app-custom" value="custom">
143149
<label class="form-check-label text-dark" for="app-custom">Custom URL</label>

docs/topic/url-options.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ The ``%3Fautodecode`` at the end makes sure you never get `a message
6767
<https://github.com/jupyterlab/jupyterlab/pull/5950>`_ about needing to
6868
explicitly name a JupyterLab workspace.
6969

70+
Shiny
71+
-----
72+
73+
To open a directory containing `shiny <https://shiny.rstudio.com/>`_ files,
74+
your pattern should be ``/shiny/<full-path-to-directory>/``. The trailing
75+
slash is important.
76+
7077
RStudio
7178
-------
7279

0 commit comments

Comments
 (0)