forked from damianavila/RISE
-
Notifications
You must be signed in to change notification settings - Fork 2
/
rise.yaml
349 lines (347 loc) · 12 KB
/
rise.yaml
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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
#
# NOTE that the defaults defined here are essentially NOT used
# in the code, but if only for documentation purposes it is important
# that they reflect the defaults that are hardwired in main.js
#
Type: Jupyter Notebook Extension
Compatibility: 5.x, 6.x
Name: RISE
Main: main.js
Description: "Turn your Jupyter Notebooks into a live presentation (slideshow)"
Link: README.md
Icon: rise.png
Parameters:
#
- name: rise.autolaunch
description: >
<code>autolaunch</code>: autorun slideshow upon opening if set; active only
on notebooks that have a 'livereveal' or 'rise' section in their
metadata; this provision is here to avoid starting RISE
on regular notebooks that are not intended for slideshow.
input_type: checkbox
default: false
#
- name: rise.enable_chalkboard
description: >
<code>enable_chalkboard</code>: if set, turn on the <code>chalkboard</code>
plugin to <code>reveal</code>. <br/>When enabled, this plugin adds two buttons
next to the help button. It also reacts to the following additional
keyboard commands:
<ul>
<li><code>[</code> to turn the whole space into an empty chalkboard;</li>
<li><code>]</code> to start adding free drawings to the current slide;</li>
<li><code>\</code> to download chalkboard drawing;</li>
<li><code>=</code>to reset chalkboard drawing on the current slide;</li>
<li><code>-</code> to clear the chalkboard.</li>
</ul>
You can define alternative short cuts using the
<code>rise.reveal_shortcuts.chalkboard.*</code> parameters below. Note, that some
keys might not work in some browsers.
input_type: checkbox
default: false
#
- name: rise.enable_leap_motion
description: >
<code>enable_leap_motion</code>: to use the leap motion device. xxx this needs more details.
input_type: checkbox
default: false
#
# xxx: could be useful to add more policies
# like allowing to start on a hard-wired slide number
#
- name: rise.start_slideshow_at
description: >
<code>start_slideshow_at</code>: a string that describes where to start the slideshow
this can be either <code>beginning</code> (start on first slide)
or <code>selected</code> (start on the slide that contains the currently selected cell)
input_type: text
default: selected
#
# the code also has provision for setting this to 'first'
# but that's really not useful so I leave it out of this description
#
- name: rise.auto_select
description: >
<code>auto_select</code>: a string that specifies how to select cells when new contents
is displayed during the slideshow (typically, new slide or new fragment).
It can be either <code>none</code> (no automatic selection),
or <code>code</code> (select first code cell in new content).
input_type: text
default: code
#
# a companion to the above - probably not needed
#
- name: rise.auto_select_fragment
description: >
<code>auto_select_fragment</code>: when auto_select is not <code>none</code>, this boolean
says if auto selection focuses on the current fragment or considers
the whole slide. Probably safe to keep as true.
input_type: checkbox
default: true
- name: rise.show_buttons_on_startup
description: >
<code>show_buttons_on_startup</code> uncheck if you want your presentation to start without the exit and help buttons;
this applies also to the chalkboard buttons, if enabled
input_type: checkbox
default: true
#
# headers and footer and background image
#
- name: rise.header
description: >
<code>header</code>: the html text for a header that will show up on all slides.
<strong>(effective only if <code>overlay</code> is not defined)</strong>
input_type: text
default:
#
- name: rise.footer
description: >
<code>footer</code>: the html text for a footer that will show up on all slides.
<strong>(effective only if <code>overlay</code> is not defined)</strong>
input_type: text
default:
#
- name: rise.backimage
description: >
<code>backimage</code>: a (relative) filename for a background image that will show up on all slides.
<strong>(effective only if <code>overlay</code> is not defined)</strong>
input_type: text
default:
#
- name: rise.overlay
description: >
<code>overlay</code>: some html text that will be inserted as-is on all pages. If this is provided,
the 3 previous settings (header, footer and backimage) are ignored altogether.
input_type: text
default:
#
# the UI elements for RISE itself
#
- name: rise.toolbar_icon
description: >
<code>toolbar_icon</code>: font-awesome class for the RISE button in toolbar
default: fa-bar-chart
#
- name: rise.shortcuts.slideshow
description: <code>rise.shortcuts.slideshow</code> shortcut to enter and exit slideshow
input_type: hotkey
default: alt-r
- name: rise.shortcuts.toggle-slide
description: <code>rise.shortcuts.toggle-slide</code> shortcut to toggle the 'slide' tag on current cell
input_type: hotkey
default: shift-i
- name: rise.shortcuts.toggle-subslide
description: <code>rise.shortcuts.toggle-subslide</code> shortcut to toggle the 'subslide' tag on current cell
input_type: hotkey
default: shift-b
- name: rise.shortcuts.toggle-fragment
description: <code>rise.shortcuts.toggle-fragment</code> shortcut to toggle the 'fragment' tag on current cell
input_type: hotkey
default: shift-g
- name: rise.shortcuts.toggle-notes
description: <code>rise.shortcuts.toggle-notes</code> shortcut to toggle the 'notes' tag on current cell
input_type: hotkey
default: none
- name: rise.shortcuts.toggle-skip
description: <code>rise.shortcuts.toggle-skip</code> shortcut to toggle the 'skip' tag on current cell
input_type: hotkey
default: none
- name: rise.shortcuts.render-all-cells
description: <code>rise.shortcuts.render-all-cells</code> shortcut to put all cells in render mode
input_type: hotkey
default: none
- name: rise.shortcuts.edit-all-cells
description: <code>rise.shortcuts.edit-all-cells</code> shortcut to put all cells in edit mode
input_type: hotkey
default: none
- name: rise.shortcuts.rise-nbconfigurator
description: >
<code>rise.shortcuts.rise-nbconfigurator</code> shortcut to open the nbconfigurator
pane for the RISE extension in a new tab (or window, depending on your browser config).
input_type: hotkey
default: shift-c
# using reveal_shortcuts for the reveal.js and chalkboard short cuts instead of
# shortcuts to avoid treating these as normal jupyter shortcuts
- name: rise.reveal_shortcuts.main.riseHelp
description: >
<code>rise.reveal_shortcuts.main.riseHelp</code>: shortcut for showing
help
input_type: hotkey
default: "?"
#
- name: rise.reveal_shortcuts.main.firstSlide
description: >
<code>rise.reveal_shortcuts.main.firstSlide</code>: shortcut for jump to first
slide
input_type: hotkey
default: home
#
- name: rise.reveal_shortcuts.main.lastSlide
description: >
<code>rise.reveal_shortcuts.main.lastSlide</code>: shortcut for jump to last
slide
input_type: hotkey
default: end
#
- name: rise.reveal_shortcuts.main.toggleOverview
description: >
<code>rise.reveal_shortcuts.main.toggleOverview</code>: shortcut for slides
overview
input_type: hotkey
default: w
# unfortunately jupyter does not allow to assign any keybinding to "," (comma)
# and the function is not as easily accessable as the other functions
# so "," is currently the only hard-wired keybind to reveal.js
# - name: rise.reveal_shortcuts.main.toggleAllRiseButtons
# description: >
# <code>rise.reveal_shortcuts.main.toggleAllRiseButtons</code>: shortcut
# show/hide RISE buttons
# input_type: hotkey
# default: m
#
- name: rise.reveal_shortcuts.chalkboard.reset
description: >
<code>rise.reveal_shortcuts.chalkboard.reset</code>: shortcut (in chalkboard mode) for resetting
chalkboard data on current slide
input_type: hotkey
default: minus
#
- name: rise.reveal_shortcuts.chalkboard.clear
description: >
<code>rise.reveal_shortcuts.chalkboard.clear</code>: shortcut (in chalkboard mode) for clearing
full size chalkboard
input_type: hotkey
default: "="
#
- name: rise.reveal_shortcuts.chalkboard.toggleChalkboard
description: >
<code>rise.reveal_shortcuts.chalkboard.toggleChalkboard</code>: shortcut (in chalkboard mode) for
toggling full size chalkboard
input_type: hotkey
default: "["
#
- name: rise.reveal_shortcuts.chalkboard.toggleNotesCanvas
description: >
<code>rise.reveal_shortcuts.chalkboard.toggleNotesCanvas</code>: shortcut (in chalkboard mode)
for toggling notes (slide-local)
input_type: hotkey
default: "]"
#
- name: rise.reveal_shortcuts.chalkboard.download
description: >
<code>rise.reveal_shortcuts.chalkboard.download</code>: shortcut (in chalkboard mode) for
downloading recorded chalkboard drawing
input_type: hotkey
default: \
#
# passed to reveal as-is
#
- name: rise.theme
description: >
<code>theme</code>: <strong>This setting, like the ones below,
is passed directly to <a href="https://github.com/hakimel/reveal.js">
<code>reveal.js</code> see this doc</a></strong>.
<br/> theme: <a href="https://github.com/hakimel/reveal.js#theming">
see a list of reveal's available native themes</a>.
Note that dark themes from reveal do not work well with RISE,
at least not without additional and manual tweaks.
input_type: string
default: 'simple'
#
- name: rise.transition
description: >
<code>transition</code>: at least available: none - fade - slide - convex - concave - zoom - cube - linear; see also <code>reveal.js</code>.
input_type: string
default: 'linear'
#
- name: rise.slideNumber
description: >
<code>slideNumber</code>: a string to specify if and how to number slides;
<a href="https://github.com/hakimel/reveal.js#slide-number" target='_'>see reveal's explanations.</a>
input_type: string
default: true
#
- name: rise.width
description: >
<code>width</code>: a css width attribute, like <code>1920px</code> or <code>10cm</code> or
<code>100%</code>.
<strong>Remember that you can always zoom in and out</strong>
with you browser's native keyboard shortcuts
like typically <code>Command +</code> or <code>Command -</code>.
input_type: string
default: 100%
#
- name: rise.height
description: >
<code>height</code>: ditto for slide height.
default: "100%"
#
- name: rise.controls
description: >
<code>controls</code>: add buttons to exit and get help
input_type: checkbox
default: true
#
- name: rise.progress
description: >
<code>progress</code>: show progress as a line at the bottom
input_type: checkbox
default: true
#
- name: rise.history
description: >
<code>history</code>: Push each slide change to the browser history
input_type: checkbox
default : true,
#
- name: rise.scroll
description: >
<code>scroll</code>: see reveal documentation
input_type: checkbox
default: false
#
- name: rise.center
description: >
<code>center</code>: see reveal documentation
input_type: checkbox
default: true
#
# I prefer to keep these 2 unexposed, it's unclear how to properly enter
# floats using the configurator UI, and it may be more harmful than helpful
# on the long run
# - name: rise.margin
# description: >
# margin: see reveal documentation
# input_type: float
# default: 0.1
# #
# - name: rise.minScale
# description: >
# minScale: we need this for codemirror to work righ
# input_type: float
# default: 1.0
#
#
# mostly intended for developers
#
- name: rise.auto_select_timeout
description: >
timeout in milliseconds before auto-selecting; all the timeout
settings are mostly intended for developers.
input_type: number
default: 450
#
- name: rise.restore_timeout
description: >
timeout in milliseconds before restoring focus to selected cell
when quitting slideshow mode; mostly intended for developers.
input_type: number
default: 500
#
- name: rise.aync_timeout
description: >
timeout in milliseconds before an extra call to Reveal.sync() is
made to ensure proper display in some problematic conditions;
like other timeout settings this is mostly targetting developers.
input_type: number
default: 250