trickster 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +42 -27
- data/bin/trickster +29 -5
- data/erb/index.html.erb +4 -0
- data/lib/trickster/version.rb +1 -1
- data/trickster.gemspec +2 -2
- metadata +4 -6
- data/trickster.rdoc +0 -105
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8abf0ec00cdba39261b1d3e8ec12f02c5301fc50
|
4
|
+
data.tar.gz: 52afc43ab5346d1603f6c428bdda3a09503551dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7d87d1ba4af5b9666d863b2e512762f8b3a509719e7643952471510fc23daa166bd25841ffab1a1d766d2121e6d04c772b69f349acdb8473359ce49be404bd2
|
7
|
+
data.tar.gz: 7326e1c0a7ca14180362f6a8dec8e35ae44d848f270a7db2a9517c0e35ebf8f01d4cdf9e6cdf9229926a9f383aee8c767c71e90a0357b7885556068f0a416a28
|
data/README.rdoc
CHANGED
@@ -47,6 +47,10 @@ Also note that each slide will be in a +section+ tag, with the CSS class of its
|
|
47
47
|
background:: although you can customize each slide based on its CSS class, this option allows you to customize the background of this particular slide. This is useful for IMAGE slides where you might want to better match the image's colors
|
48
48
|
transition:: number of milliseconds to transition to the *next* slide. The default is in the config object, but this can override it per slide.
|
49
49
|
|
50
|
+
== TypeKit Support
|
51
|
+
|
52
|
+
When you build your presentation with <tt>trickster build</tt>, you can provide your typekit ID via <tt>-t</tt>. Note that the fonts won't work unless you serve the page via a webserver, as TypeKit won't serve the fonts for a <tt>file://</tt> URL. You can do this via <tt>trickster serve</tt>.
|
53
|
+
|
50
54
|
== Slide Types
|
51
55
|
|
52
56
|
== BULLETS
|
@@ -168,7 +172,7 @@ Trickster discourages verbose slides with lots of text or lots of bullets. This
|
|
168
172
|
|
169
173
|
== trickster - Bootstrap, generate, and manage your trickster presentation
|
170
174
|
|
171
|
-
|
175
|
+
v1.3.1
|
172
176
|
|
173
177
|
=== Global Options
|
174
178
|
=== --help
|
@@ -176,44 +180,48 @@ Show this message
|
|
176
180
|
|
177
181
|
|
178
182
|
|
179
|
-
|
180
183
|
=== --version
|
181
|
-
|
182
|
-
|
184
|
+
Display the program version
|
183
185
|
|
184
186
|
|
185
187
|
|
186
188
|
=== Commands
|
187
|
-
==== build
|
189
|
+
==== Command: <tt>build [slides_file]</tt>
|
188
190
|
Generate the presentation from your slides
|
189
191
|
|
190
|
-
|
191
|
-
Given your slides_file (defaults to 'slides' in current directory), generates an HTML
|
192
|
-
file (based on --output-file) that, when loaded, can be used to play your presentation.
|
192
|
+
Given your slides_file (defaults to 'slides' in current directory), generates an HTML file (based on --output-file) that, when loaded, can be used to play your presentation.
|
193
193
|
|
194
194
|
Any .scss files found in the css/ directory will be run through SASS to be converted.
|
195
195
|
|
196
|
-
Note that currently, the CSS and JS files included are fixed, so keep all your customizations
|
197
|
-
to styles.css/styles.scss and custom.js (these files will not be overwritten when
|
198
|
-
you do a trickster update).
|
196
|
+
Note that currently, the CSS and JS files included are fixed, so keep all your customizations to styles.css/styles.scss and custom.js (these files will not be overwritten when you do a trickster update).
|
199
197
|
===== Options
|
200
|
-
===== -o file
|
198
|
+
===== -o|--output-file file
|
201
199
|
|
202
200
|
Name of the generated HTML file
|
203
201
|
|
204
|
-
[Aliases] --output-file
|
205
202
|
[Default Value] index.html
|
206
203
|
|
207
204
|
|
208
|
-
|
209
|
-
Shows a list of commands or help for one command
|
205
|
+
===== -t|--type-kit-id id
|
210
206
|
|
207
|
+
Your TypeKit ID, if using TypeKit
|
208
|
+
|
209
|
+
[Default Value] None
|
210
|
+
|
211
|
+
|
212
|
+
==== Command: <tt>help command</tt>
|
213
|
+
Shows a list of commands or help for one command
|
211
214
|
|
212
215
|
Gets help for the application or its commands. Can also list the commands in a way helpful to creating a bash-style completion function
|
213
|
-
|
214
|
-
|
216
|
+
===== Options
|
217
|
+
===== -c
|
218
|
+
List commands one per line, to assist with shell completion
|
215
219
|
|
216
220
|
|
221
|
+
|
222
|
+
==== Command: <tt>init dir_name</tt>
|
223
|
+
Create a new trickster presentation
|
224
|
+
|
217
225
|
This will create a completely self-contained presentation that can be run just from the files
|
218
226
|
in the directory you name. It will have a static copy of the JavaScript files, JavaScript third-party
|
219
227
|
libraries and CSS files you need to run your trickster application.
|
@@ -225,25 +233,34 @@ file from your slides.
|
|
225
233
|
Note that if you upgrade trickster, you should run `trickster update` in your slide directory
|
226
234
|
to get the latest JavaScript and CSS files.
|
227
235
|
===== Options
|
228
|
-
===== -t arg
|
236
|
+
===== -t|--theme arg
|
229
237
|
|
230
238
|
Specify the syntax highlighting theme to use. One of arta, ascetic, brown_paper, custom, dark, default, far, github, googlecode, idea, ir_black, magula, monokai, pojoaque, rainbow, school_book, solarized_dark, solarized_light, sunburst, tomorrow, tomorrow-night, tomorrow-night-blue, tomorrow-night-bright, tomorrow-night-eighties, vs, xcode, zenburn. Use 'custom' to get an scss file you can easily customize.
|
231
239
|
|
232
|
-
[Aliases] --theme
|
233
240
|
[Default Value] default
|
234
241
|
[Must Match] ["arta", "ascetic", "brown_paper", "custom", "dark", "default", "far", "github", "googlecode", "idea", "ir_black", "magula", "monokai", "pojoaque", "rainbow", "school_book", "solarized_dark", "solarized_light", "sunburst", "tomorrow", "tomorrow-night", "tomorrow-night-blue", "tomorrow-night-bright", "tomorrow-night-eighties", "vs", "xcode", "zenburn"]
|
235
242
|
|
236
243
|
|
237
|
-
====
|
238
|
-
|
244
|
+
==== Command: <tt>serve </tt>
|
245
|
+
Serve your presentation on a local port
|
246
|
+
|
247
|
+
If using TypeKit, you'll need to actually run your presentation on a web server so the fonts will be downloaded. This is an easy way to do that without having to mess with any other gems, libraries, or configuration.
|
248
|
+
===== Options
|
249
|
+
===== -p|--port port
|
239
250
|
|
251
|
+
Port on which to run
|
252
|
+
|
253
|
+
[Default Value] 9090
|
254
|
+
|
255
|
+
|
256
|
+
==== Command: <tt>update [dir_name]</tt>
|
257
|
+
Update your slideshow with files provided by trickster
|
240
258
|
|
241
259
|
|
242
260
|
===== Commands
|
243
|
-
====== files
|
261
|
+
====== Command: <tt>files slide_dir</tt>
|
244
262
|
Update the trickster JS/CSS files when you've updated the trickster gem
|
245
263
|
|
246
|
-
|
247
264
|
Run this after you've upgraded trickster and want to get the latest features. Since your
|
248
265
|
slideshow is entirely self-contained, when you upgrade trickster, your static JavaScript and
|
249
266
|
CSS files will be out of date.
|
@@ -251,19 +268,17 @@ Run this after you've upgraded trickster and want to get the latest features. S
|
|
251
268
|
Note that `styles.css`, which was provided by trickster as a basis for styling, will not
|
252
269
|
be touched, and your customizations will remain. All other files that trickster gave you
|
253
270
|
when you ran `trickster init` will be overwritten.
|
254
|
-
====== theme
|
271
|
+
====== Command: <tt>theme slide_dir</tt>
|
255
272
|
Update the syntax-highlighting theme for your presentation
|
256
273
|
|
257
|
-
|
258
274
|
A normal 'trickster update' will leave your theme.css alone, since you can customize it. This will overwrite
|
259
275
|
your existing theme.css with the theme from trickster that you specify. You should check your presentation
|
260
276
|
into source control to avoid the destructive nature of this command.
|
261
277
|
======= Options
|
262
|
-
======= -t slide_dir
|
278
|
+
======= -t|--theme slide_dir
|
263
279
|
|
264
280
|
Specify the syntax highlighting theme to use. One of arta, ascetic, brown_paper, custom, dark, default, far, github, googlecode, idea, ir_black, magula, monokai, pojoaque, rainbow, school_book, solarized_dark, solarized_light, sunburst, tomorrow, tomorrow-night, tomorrow-night-blue, tomorrow-night-bright, tomorrow-night-eighties, vs, xcode, zenburn. Use 'custom' to get an scss file you can easily customize.
|
265
281
|
|
266
|
-
[Aliases] --theme
|
267
282
|
[Default Value] default
|
268
283
|
[Must Match] ["arta", "ascetic", "brown_paper", "custom", "dark", "default", "far", "github", "googlecode", "idea", "ir_black", "magula", "monokai", "pojoaque", "rainbow", "school_book", "solarized_dark", "solarized_light", "sunburst", "tomorrow", "tomorrow-night", "tomorrow-night-blue", "tomorrow-night-bright", "tomorrow-night-eighties", "vs", "xcode", "zenburn"]
|
269
284
|
A normal 'trickster update' will leave your theme.css alone, since you can customize it. This will overwrite
|
data/bin/trickster
CHANGED
@@ -133,23 +133,43 @@ command :update do |c|
|
|
133
133
|
c.default_command :files
|
134
134
|
end
|
135
135
|
|
136
|
+
desc 'Serve your presentation on a local port'
|
137
|
+
long_desc <<EOS
|
138
|
+
If using TypeKit, you'll need to actually run your presentation on a web server so the fonts will be downloaded. This is an easy way to do that without having to mess with any other gems, libraries, or configuration.
|
139
|
+
EOS
|
140
|
+
command :serve do |c|
|
141
|
+
c.desc 'Port on which to run'
|
142
|
+
c.arg_name 'port'
|
143
|
+
c.default_value '9090'
|
144
|
+
c.flag [:p,:port]
|
145
|
+
|
146
|
+
c.action do |global_options,options,args|
|
147
|
+
command = "ruby -run -e httpd . -p #{options[:port]}"
|
148
|
+
unless system(command)
|
149
|
+
STDERR.puts "Problem running '#{command}'"
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
end
|
154
|
+
|
136
155
|
desc 'Generate the presentation from your slides'
|
137
156
|
arg_name '[slides_file]'
|
138
157
|
long_desc <<EOS
|
139
|
-
Given your slides_file (defaults to 'slides' in current directory), generates an HTML
|
140
|
-
file (based on --output-file) that, when loaded, can be used to play your presentation.
|
158
|
+
Given your slides_file (defaults to 'slides' in current directory), generates an HTML file (based on --output-file) that, when loaded, can be used to play your presentation.
|
141
159
|
|
142
160
|
Any .scss files found in the css/ directory will be run through SASS to be converted.
|
143
161
|
|
144
|
-
Note that currently, the CSS and JS files included are fixed, so keep all your customizations
|
145
|
-
to styles.css/styles.scss and custom.js (these files will not be overwritten when
|
146
|
-
you do a trickster update).
|
162
|
+
Note that currently, the CSS and JS files included are fixed, so keep all your customizations to styles.css/styles.scss and custom.js (these files will not be overwritten when you do a trickster update).
|
147
163
|
EOS
|
148
164
|
command :build do |c|
|
149
165
|
c.desc 'Name of the generated HTML file'
|
150
166
|
c.arg_name 'file'
|
151
167
|
c.default_value 'index.html'
|
152
168
|
c.flag [:o,'output-file']
|
169
|
+
|
170
|
+
c.desc 'Your TypeKit ID, if using TypeKit'
|
171
|
+
c.arg_name 'id'
|
172
|
+
c.flag [:t,'type-kit-id']
|
153
173
|
|
154
174
|
c.action do |global_options,options,args|
|
155
175
|
file = File.open(args.shift || 'slides')
|
@@ -159,6 +179,8 @@ command :build do |c|
|
|
159
179
|
body = parser.body
|
160
180
|
title = parser.title
|
161
181
|
|
182
|
+
typekit_id = options[:'type-kit-id']
|
183
|
+
|
162
184
|
erb = ERB.new(File.new(File.expand_path(File.join(File.dirname(__FILE__),'..','erb','index.html.erb'))).readlines.join(""))
|
163
185
|
File.open(options[:'output-file'],"w") do |file|
|
164
186
|
file.puts erb.result(binding)
|
@@ -170,6 +192,8 @@ command :build do |c|
|
|
170
192
|
STDERR.puts "Problem running '#{command}'"
|
171
193
|
end
|
172
194
|
end
|
195
|
+
|
196
|
+
puts "Note that typekit won't work unless you serve your presentation via a web server" if typekit_id
|
173
197
|
end
|
174
198
|
end
|
175
199
|
|
data/erb/index.html.erb
CHANGED
data/lib/trickster/version.rb
CHANGED
data/trickster.gemspec
CHANGED
@@ -5,7 +5,7 @@ spec = Gem::Specification.new do |s|
|
|
5
5
|
s.version = Trickster::VERSION
|
6
6
|
s.author = 'David Copeland'
|
7
7
|
s.email = 'davetron5000@gmail.com'
|
8
|
-
s.homepage = 'http://
|
8
|
+
s.homepage = 'http://davetron5000.github.io/trickster'
|
9
9
|
s.platform = Gem::Platform::RUBY
|
10
10
|
s.summary = 'Generate and manage in-browser presentation-slides'
|
11
11
|
s.description = 'Make aweomse technical presentation with big fonts that size to fit, and awesome syntax highlighting'
|
@@ -14,7 +14,7 @@ spec = Gem::Specification.new do |s|
|
|
14
14
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
15
15
|
s.require_paths = ["lib"]
|
16
16
|
s.has_rdoc = true
|
17
|
-
s.extra_rdoc_files = ['README.rdoc'
|
17
|
+
s.extra_rdoc_files = ['README.rdoc']
|
18
18
|
s.rdoc_options << '--title' << 'trickster' << '--main' << 'README.rdoc' << '-ri'
|
19
19
|
s.bindir = 'bin'
|
20
20
|
s.add_development_dependency('rake')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trickster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Copeland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -116,7 +116,6 @@ executables:
|
|
116
116
|
extensions: []
|
117
117
|
extra_rdoc_files:
|
118
118
|
- README.rdoc
|
119
|
-
- trickster.rdoc
|
120
119
|
files:
|
121
120
|
- .gitignore
|
122
121
|
- .ruby-gemset
|
@@ -255,8 +254,7 @@ files:
|
|
255
254
|
- test/test_helper.rb
|
256
255
|
- test_slides
|
257
256
|
- trickster.gemspec
|
258
|
-
|
259
|
-
homepage: http://your.website.com
|
257
|
+
homepage: http://davetron5000.github.io/trickster
|
260
258
|
licenses: []
|
261
259
|
metadata: {}
|
262
260
|
post_install_message:
|
@@ -280,7 +278,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
280
278
|
version: '0'
|
281
279
|
requirements: []
|
282
280
|
rubyforge_project:
|
283
|
-
rubygems_version: 2.0.
|
281
|
+
rubygems_version: 2.0.14
|
284
282
|
signing_key:
|
285
283
|
specification_version: 4
|
286
284
|
summary: Generate and manage in-browser presentation-slides
|
data/trickster.rdoc
DELETED
@@ -1,105 +0,0 @@
|
|
1
|
-
== trickster - Bootstrap, generate, and manage your trickster presentation
|
2
|
-
|
3
|
-
v0.0.5
|
4
|
-
|
5
|
-
=== Global Options
|
6
|
-
=== --help
|
7
|
-
Show this message
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
=== --version
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
=== Commands
|
19
|
-
==== build [slides_file]
|
20
|
-
Generate the presentation from your slides
|
21
|
-
|
22
|
-
|
23
|
-
Given your slides_file (defaults to 'slides' in current directory), generates an HTML
|
24
|
-
file (based on --output-file) that, when loaded, can be used to play your presentation.
|
25
|
-
|
26
|
-
Any .scss files found in the css/ directory will be run through SASS to be converted.
|
27
|
-
|
28
|
-
Note that currently, the CSS and JS files included are fixed, so keep all your customizations
|
29
|
-
to styles.css/styles.scss and custom.js (these files will not be overwritten when
|
30
|
-
you do a trickster update).
|
31
|
-
===== Options
|
32
|
-
===== -o file
|
33
|
-
|
34
|
-
Name of the generated HTML file
|
35
|
-
|
36
|
-
[Aliases] --output-file
|
37
|
-
[Default Value] index.html
|
38
|
-
|
39
|
-
|
40
|
-
==== help command
|
41
|
-
Shows a list of commands or help for one command
|
42
|
-
|
43
|
-
|
44
|
-
Gets help for the application or its commands. Can also list the commands in a way helpful to creating a bash-style completion function
|
45
|
-
==== init dir_name
|
46
|
-
Create a new trickster presentation
|
47
|
-
|
48
|
-
|
49
|
-
This will create a completely self-contained presentation that can be run just from the files
|
50
|
-
in the directory you name. It will have a static copy of the JavaScript files, JavaScript third-party
|
51
|
-
libraries and CSS files you need to run your trickster application.
|
52
|
-
|
53
|
-
You can examine the file `slides` to see some examples of how to format your
|
54
|
-
presentation. You can run `trickster build` in the directory to create the HTML
|
55
|
-
file from your slides.
|
56
|
-
|
57
|
-
Note that if you upgrade trickster, you should run `trickster update` in your slide directory
|
58
|
-
to get the latest JavaScript and CSS files.
|
59
|
-
===== Options
|
60
|
-
===== -t arg
|
61
|
-
|
62
|
-
Specify the syntax highlighting theme to use. One of arta, ascetic, brown_paper, custom, dark, default, far, github, googlecode, idea, ir_black, magula, monokai, pojoaque, rainbow, school_book, solarized_dark, solarized_light, sunburst, tomorrow, tomorrow-night, tomorrow-night-blue, tomorrow-night-bright, tomorrow-night-eighties, vs, xcode, zenburn. Use 'custom' to get an scss file you can easily customize.
|
63
|
-
|
64
|
-
[Aliases] --theme
|
65
|
-
[Default Value] default
|
66
|
-
[Must Match] ["arta", "ascetic", "brown_paper", "custom", "dark", "default", "far", "github", "googlecode", "idea", "ir_black", "magula", "monokai", "pojoaque", "rainbow", "school_book", "solarized_dark", "solarized_light", "sunburst", "tomorrow", "tomorrow-night", "tomorrow-night-blue", "tomorrow-night-bright", "tomorrow-night-eighties", "vs", "xcode", "zenburn"]
|
67
|
-
|
68
|
-
|
69
|
-
==== update [dir_name]
|
70
|
-
Update your slideshow with files provided by trickster
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
===== Commands
|
75
|
-
====== files slide_dir
|
76
|
-
Update the trickster JS/CSS files when you've updated the trickster gem
|
77
|
-
|
78
|
-
|
79
|
-
Run this after you've upgraded trickster and want to get the latest features. Since your
|
80
|
-
slideshow is entirely self-contained, when you upgrade trickster, your static JavaScript and
|
81
|
-
CSS files will be out of date.
|
82
|
-
|
83
|
-
Note that `styles.css`, which was provided by trickster as a basis for styling, will not
|
84
|
-
be touched, and your customizations will remain. All other files that trickster gave you
|
85
|
-
when you ran `trickster init` will be overwritten.
|
86
|
-
====== theme slide_dir
|
87
|
-
Update the syntax-highlighting theme for your presentation
|
88
|
-
|
89
|
-
|
90
|
-
A normal 'trickster update' will leave your theme.css alone, since you can customize it. This will overwrite
|
91
|
-
your existing theme.css with the theme from trickster that you specify. You should check your presentation
|
92
|
-
into source control to avoid the destructive nature of this command.
|
93
|
-
======= Options
|
94
|
-
======= -t slide_dir
|
95
|
-
|
96
|
-
Specify the syntax highlighting theme to use. One of arta, ascetic, brown_paper, custom, dark, default, far, github, googlecode, idea, ir_black, magula, monokai, pojoaque, rainbow, school_book, solarized_dark, solarized_light, sunburst, tomorrow, tomorrow-night, tomorrow-night-blue, tomorrow-night-bright, tomorrow-night-eighties, vs, xcode, zenburn. Use 'custom' to get an scss file you can easily customize.
|
97
|
-
|
98
|
-
[Aliases] --theme
|
99
|
-
[Default Value] default
|
100
|
-
[Must Match] ["arta", "ascetic", "brown_paper", "custom", "dark", "default", "far", "github", "googlecode", "idea", "ir_black", "magula", "monokai", "pojoaque", "rainbow", "school_book", "solarized_dark", "solarized_light", "sunburst", "tomorrow", "tomorrow-night", "tomorrow-night-blue", "tomorrow-night-bright", "tomorrow-night-eighties", "vs", "xcode", "zenburn"]
|
101
|
-
A normal 'trickster update' will leave your theme.css alone, since you can customize it. This will overwrite
|
102
|
-
your existing theme.css with the theme from trickster that you specify. You should check your presentation
|
103
|
-
into source control to avoid the destructive nature of this command.
|
104
|
-
|
105
|
-
[Default Command] files
|