-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.html
More file actions
executable file
·261 lines (227 loc) · 7.96 KB
/
start.html
File metadata and controls
executable file
·261 lines (227 loc) · 7.96 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
<!DOCTYPE html>
<html>
<head>
<title>Get Started with Slidify</title>
<meta charset="utf-8">
<meta name="description" content="Get Started with Slidify">
<meta name="author" content="">
<meta name="generator" content="slidify" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link rel="stylesheet" href="../../libraries/frameworks/io2012/css/default.css" media="all" >
<link rel="stylesheet" href="../../libraries/frameworks/io2012/css/phone.css"
media="only screen and (max-device-width: 480px)" >
<link rel="stylesheet" href="../../libraries/frameworks/io2012/css/slidify.css" >
<link rel="stylesheet" href="../../libraries/highlighters/highlight.js/css/tomorrow.css" />
<base target="_blank"> <!-- This amazingness opens all links in a new tab. --> <link rel=stylesheet href="./assets/css/app.css"></link>
<link rel=stylesheet href="./assets/css/gh-buttons.css"></link>
<link rel=stylesheet href="./assets/css/ribbons.css"></link>
<!-- Grab CDN jQuery, fall back to local if offline -->
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js"></script>
<script>window.jQuery || document.write('<script src="../../libraries/widgets/quiz/js/jquery.js"><\/script>')</script>
<script data-main="../../libraries/frameworks/io2012/js/slides"
src="../../libraries/frameworks/io2012/js/require-1.0.8.min.js">
</script>
</head>
<body style="opacity: 0">
<slides class="layout-widescreen">
<!-- LOGO SLIDE -->
<slide class="title-slide segue nobackground">
<hgroup class="auto-fadein">
<h1>Get Started with Slidify</h1>
<h2></h2>
<p><br/></p>
</hgroup>
<article></article>
</slide>
<!-- SLIDES -->
<slide class="" id="slide-1" style="background:;">
<hgroup>
<h1>Get Started</h1>
</hgroup>
<article data-timings="">
<p>You can install Slidify, write a three page slide deck and publish it to Github, all in less than 5 minutes!</p>
<table><thead>
<tr>
<th>Step</th>
<th>Description</th>
<th>Code</th>
</tr>
</thead><tbody>
<tr>
<td>0</td>
<td>Install</td>
<td><code>require(devtools)</code></td>
</tr>
<tr>
<td></td>
<td></td>
<td><code>install_github("slidify", "ramnathv")</code></td>
</tr>
<tr>
<td></td>
<td></td>
<td><code>install_github("slidifyLibraries", "ramnathv")</code></td>
</tr>
<tr>
<td>1</td>
<td>Load</td>
<td><code>library(slidify)</code></td>
</tr>
<tr>
<td>1</td>
<td>Author</td>
<td><code>author("mydeck")</code></td>
</tr>
<tr>
<td>2</td>
<td>Edit</td>
<td>Write in RMarkdown, separating slides with a blank line followed by three dashes <code>---</code>.</td>
</tr>
<tr>
<td>3</td>
<td>Slidify</td>
<td><code>slidify("index.Rmd")</code></td>
</tr>
<tr>
<td>4</td>
<td>Publish</td>
<td><code>publish(user = "USER", repo = "REPO")</code></td>
</tr>
</tbody></table>
<div class='alert'>
<p>Note. You will need to create an empty repo on github and replace USER and REPO with your github username and reponame.</p>
</div>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-2" style="background:;">
<hgroup>
<h3>Step 0: Install Slidify</h3>
</hgroup>
<article data-timings="">
<p>Slidify is not on CRAN as yet and needs to be installed from <code>github</code>. You can use Hadley's <code>devtools</code> package to accomplish this easily. You will also need <code>slidifyLibraries</code> which contains all external libraries required by Slidify.</p>
<pre><code>library(devtools)
install_github('slidify', 'ramnathv')
install_github('slidifyLibraries', 'ramnathv')
</code></pre>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-3" style="background:;">
<hgroup>
<h3>Step 1: Author Deck</h3>
</hgroup>
<article data-timings="">
<p>This step will create a new directory <code>mydeck</code> and add the necessary scaffolding. If you have <code>git</code> installed, it will initialize it a <code>git</code> repo, checkout its <code>gh-pages</code> branch, add and commit everything. Finally, it will open <code>index.Rmd</code> for you to edit.</p>
<pre><code>author("mydeck")
</code></pre>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-4" style="background:;">
<hgroup>
<h3>Step 2: Edit Deck</h3>
</hgroup>
<article data-timings="">
<p>Edit the YAML front matter (if you don't know what it is, just replace everything to the right of the <code>:</code> in the lines between the <code>---</code> right at the top). Edit the deck, making sure to separate your slides by a blank line followed by three dashes <code>---</code>. </p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-5" style="background:;">
<hgroup>
<h3>Step 3: Generate Deck</h3>
</hgroup>
<article data-timings="">
<p>This step generates a html slide deck from <code>index.Rmd</code>. It is a static file, which means that you can open it in your browser locally and it should display fine.</p>
<pre><code>slidify("index.Rmd")
</code></pre>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-6" style="background:;">
<hgroup>
<h3>Step 4: Publish Deck</h3>
</hgroup>
<article data-timings="">
<p>Now is the magical step of publishing your deck to <code>github</code>. You have three options: <code>github</code>, <code>dropbox</code> and <code>rpubs</code></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-7" style="background:;">
<hgroup>
<h4>Github</h4>
</hgroup>
<article data-timings="">
<p>Login with your github account and <a href="https://help.github.com/articles/creating-a-new-repository">create a new repository</a>. Note that Github will prompt you to add a README file, but just use the defaults so that your repo is empty. You will need to have <code>git</code> installed on your computer and be able to push to <code>github</code> using <a href="https://help.github.com/articles/generating-ssh-keys">SSH</a></p>
<pre><code># replace USER and REPO with your username and reponame
publish(user = "USER", repo = "REPO", host = 'github')
</code></pre>
<h2></h2>
<h4>Dropbox</h4>
<pre><code>publish('mydeck', host = 'dropbox')
</code></pre>
<div id="disqus_thread"></div>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="backdrop"></slide>
</slides>
<div class="pagination pagination-small" id='io2012-ptoc' style="display:none;">
<ul>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=1 title='Get Started'>
1
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=2 title='Step 0: Install Slidify'>
2
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=3 title='Step 1: Author Deck'>
3
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=4 title='Step 2: Edit Deck'>
4
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=5 title='Step 3: Generate Deck'>
5
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=6 title='Step 4: Publish Deck'>
6
</a>
</li>
<li>
<a href="#" target="_self" rel='tooltip'
data-slide=7 title='Github'>
7
</a>
</li>
</ul>
</div> <!--[if IE]>
<script
src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js">
</script>
<script>CFInstall.check({mode: 'overlay'});</script>
<![endif]-->
</body>
<!-- Load Javascripts for Widgets -->
<!-- LOAD HIGHLIGHTER JS FILES -->
<script src="../../libraries/highlighters/highlight.js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<!-- DONE LOADING HIGHLIGHTER JS FILES -->
</html>