rabbit 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +1 -1
  3. data/Rakefile +13 -5
  4. data/bin/rabbit +2 -2
  5. data/data/locale/en/LC_MESSAGES/rabbit.mo +0 -0
  6. data/data/locale/fr/LC_MESSAGES/rabbit.mo +0 -0
  7. data/data/locale/ja/LC_MESSAGES/rabbit.mo +0 -0
  8. data/doc/_config.yml +4 -4
  9. data/doc/_layouts/skeleton.html +9 -14
  10. data/doc/en/index.rd +2 -2
  11. data/doc/en/install/homebrew.rd +1 -0
  12. data/doc/en/install/windows.rd +4 -4
  13. data/doc/en/news.rd +54 -0
  14. data/doc/en/slides.rd +2 -0
  15. data/doc/en/usage/rabbit-slide.rd +235 -1
  16. data/doc/images/screenshots/en/blue-circle-raw.png +0 -0
  17. data/doc/images/screenshots/en/blue-circle.png +0 -0
  18. data/doc/images/screenshots/en/clear-blue-raw.png +0 -0
  19. data/doc/images/screenshots/en/clear-blue.png +0 -0
  20. data/doc/images/screenshots/en/cozmixng-raw.png +0 -0
  21. data/doc/images/screenshots/en/cozmixng.png +0 -0
  22. data/doc/images/screenshots/en/dark-gradation-raw.png +0 -0
  23. data/doc/images/screenshots/en/dark-gradation.png +0 -0
  24. data/doc/images/screenshots/en/day-white-raw.png +0 -0
  25. data/doc/images/screenshots/en/day-white.png +0 -0
  26. data/doc/images/screenshots/en/debian-raw.png +0 -0
  27. data/doc/images/screenshots/en/debian.png +0 -0
  28. data/doc/images/screenshots/en/green-circle-raw.png +0 -0
  29. data/doc/images/screenshots/en/green-circle.png +0 -0
  30. data/doc/images/screenshots/en/night-black-raw.png +0 -0
  31. data/doc/images/screenshots/en/night-black.png +0 -0
  32. data/doc/images/screenshots/en/rabbit-raw.png +0 -0
  33. data/doc/images/screenshots/en/rabbit.png +0 -0
  34. data/doc/images/screenshots/en/ranguba-raw.png +0 -0
  35. data/doc/images/screenshots/en/ranguba.png +0 -0
  36. data/doc/images/screenshots/en/red-frame-raw.png +0 -0
  37. data/doc/images/screenshots/en/red-frame.png +0 -0
  38. data/doc/images/screenshots/en/ruby-gnome2-raw.png +0 -0
  39. data/doc/images/screenshots/en/ruby-gnome2.png +0 -0
  40. data/doc/images/screenshots/en/rubykaigi2011-raw.png +0 -0
  41. data/doc/images/screenshots/en/rubykaigi2011.png +0 -0
  42. data/doc/images/screenshots/ja/blue-circle-raw.png +0 -0
  43. data/doc/images/screenshots/ja/blue-circle.png +0 -0
  44. data/doc/images/screenshots/ja/clear-blue-raw.png +0 -0
  45. data/doc/images/screenshots/ja/clear-blue.png +0 -0
  46. data/doc/images/screenshots/ja/cozmixng-raw.png +0 -0
  47. data/doc/images/screenshots/ja/cozmixng.png +0 -0
  48. data/doc/images/screenshots/ja/dark-gradation-raw.png +0 -0
  49. data/doc/images/screenshots/ja/dark-gradation.png +0 -0
  50. data/doc/images/screenshots/ja/day-white-raw.png +0 -0
  51. data/doc/images/screenshots/ja/day-white.png +0 -0
  52. data/doc/images/screenshots/ja/debian-raw.png +0 -0
  53. data/doc/images/screenshots/ja/debian.png +0 -0
  54. data/doc/images/screenshots/ja/green-circle-raw.png +0 -0
  55. data/doc/images/screenshots/ja/green-circle.png +0 -0
  56. data/doc/images/screenshots/ja/night-black-raw.png +0 -0
  57. data/doc/images/screenshots/ja/night-black.png +0 -0
  58. data/doc/images/screenshots/ja/rabbit-raw.png +0 -0
  59. data/doc/images/screenshots/ja/rabbit.png +0 -0
  60. data/doc/images/screenshots/ja/ranguba-raw.png +0 -0
  61. data/doc/images/screenshots/ja/ranguba.png +0 -0
  62. data/doc/images/screenshots/ja/red-frame-raw.png +0 -0
  63. data/doc/images/screenshots/ja/red-frame.png +0 -0
  64. data/doc/images/screenshots/ja/ruby-gnome2-raw.png +0 -0
  65. data/doc/images/screenshots/ja/ruby-gnome2.png +0 -0
  66. data/doc/images/screenshots/ja/rubykaigi2011-raw.png +0 -0
  67. data/doc/images/screenshots/ja/rubykaigi2011.png +0 -0
  68. data/doc/index.html.en +3 -3
  69. data/doc/ja/install/homebrew.rd +1 -0
  70. data/doc/ja/install/windows.rd +6 -5
  71. data/doc/ja/news.rd +53 -0
  72. data/doc/ja/usage/rabbit-slide.rd +12 -4
  73. data/lib/rabbit/command/rabbit-slide.rb +12 -4
  74. data/lib/rabbit/command/rabbit.rb +46 -20
  75. data/lib/rabbit/graffiti/config-dialog.rb +2 -0
  76. data/lib/rabbit/info-window.rb +13 -3
  77. data/lib/rabbit/parser/markdown/converter.rb +8 -1
  78. data/lib/rabbit/readme-parser.rb +58 -5
  79. data/lib/rabbit/renderer/display/info.rb +5 -0
  80. data/lib/rabbit/slide-configuration.rb +9 -2
  81. data/lib/rabbit/slide.rb +40 -0
  82. data/lib/rabbit/stock.rb +3 -3
  83. data/lib/rabbit/task/slide.rb +6 -1
  84. data/lib/rabbit/task/theme.rb +1 -1
  85. data/lib/rabbit/theme/applier.rb +10 -10
  86. data/lib/rabbit/theme/searcher.rb +2 -2
  87. data/lib/rabbit/theme/slide-logo/slide-logo.rb +1 -1
  88. data/lib/rabbit/version.rb +1 -1
  89. data/po/en/rabbit.po +266 -214
  90. data/po/fr/rabbit.po +264 -213
  91. data/po/ja/rabbit.po +306 -324
  92. data/rabbit.gemspec +1 -1
  93. data/test/parser/test-markdown.rb +65 -0
  94. data/test/run-test.rb +4 -2
  95. data/test/test-readme-parser.rb +120 -22
  96. data/test/test-slide-configuration.rb +2 -1
  97. metadata +46 -79
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e8c2b87def8b701bea8696194849162927addb0b
4
+ data.tar.gz: 1dd74a34a9a042082f2316b2993a555fc67d1722
5
+ SHA512:
6
+ metadata.gz: 119e64350b07ec0e9b5b3da3e6fca45727af38cfdfd43bbed5cccc17b511cea613acc1c1a0ba483f8d6d1f069d5f4e8ce2eab2e0551e6ce89e544d982b65941c
7
+ data.tar.gz: e33feeb726d0dff6156c2eda5765d084f83ab254162e18678369a5f01026866e184f2b529485e7fbf431ec2c05e258f0a10351fe042951ea3834c0f4f2d0c8cc
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  # -*- ruby -*-
2
2
 
3
- source "http://rubygems.org"
3
+ source "https://rubygems.org"
4
4
 
5
5
  gemspec
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- ruby -*-
2
2
  #
3
- # Copyright (C) 2008-2012 Kouhei Sutou <kou@cozmixng.org>
3
+ # Copyright (C) 2008-2014 Kouhei Sutou <kou@cozmixng.org>
4
4
  #
5
5
  # This program is free software; you can redistribute it and/or modify
6
6
  # it under the terms of the GNU General Public License as published by
@@ -20,7 +20,9 @@ require "find"
20
20
  require "rubygems"
21
21
  require "rubygems/package_task"
22
22
  require "bundler/gem_helper"
23
- require "gettext/task"
23
+ require "gettext/tools/task"
24
+
25
+ task :default => :test
24
26
 
25
27
  base_dir = File.expand_path(File.dirname(__FILE__))
26
28
  $LOAD_PATH.unshift(File.join(base_dir, 'lib'))
@@ -53,9 +55,10 @@ def spec.extra_rdoc_files
53
55
  @extra_rdoc_files = force_array(super)
54
56
  end
55
57
 
56
- GetText::Task.new(spec) do |task|
58
+ GetText::Tools::Task.define do |task|
59
+ task.spec = spec
57
60
  task.files -= Dir.glob("sample/**/*.*")
58
- task.mo_base_directory = "data"
61
+ task.mo_base_directory = "data/locale"
59
62
  end
60
63
 
61
64
  Gem::PackageTask.new(spec) do |package|
@@ -152,7 +155,7 @@ EOC
152
155
  task :generate => screenshots do
153
156
  Dir.chdir("doc") do
154
157
  rm_rf("_site")
155
- sh("ruby", "-S", "jekyll", "build")
158
+ ruby("-S", "jekyll", "build")
156
159
  end
157
160
  end
158
161
 
@@ -224,3 +227,8 @@ namespace :github do
224
227
  end
225
228
  end
226
229
  end
230
+
231
+ desc "Run test"
232
+ task :test do
233
+ ruby("test/run-test.rb")
234
+ end
data/bin/rabbit CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- ruby -*-
3
3
  #
4
- # Copyright (C) 2004-2012 Kouhei Sutou <kou@cozmixng.org>
4
+ # Copyright (C) 2004-2013 Kouhei Sutou <kou@cozmixng.org>
5
5
  #
6
6
  # This program is free software; you can redistribute it and/or modify
7
7
  # it under the terms of the GNU General Public License as published by
@@ -19,4 +19,4 @@
19
19
 
20
20
  require "rabbit/command/rabbit"
21
21
 
22
- Rabbit::Command::Rabbit.run(*ARGV)
22
+ exit(Rabbit::Command::Rabbit.run(*ARGV))
Binary file
Binary file
Binary file
data/doc/_config.yml CHANGED
@@ -1,9 +1,9 @@
1
1
  markdown: kramdown
2
2
  pygments: true
3
- version: 2.1.1
4
- release_date: 2013-06-26
5
- rabbiter_version: 2.0.0
6
- rabbiter_release_date: 2012-08-29
3
+ version: 2.1.2
4
+ release_date: 2014-03-08
5
+ rabbiter_version: 2.0.1
6
+ rabbiter_release_date: 2013-08-29
7
7
  rabbirack_version: 2.0.0
8
8
  rabbirack_release_date: 2012-08-29
9
9
  rabwii_version: 2.0.0
@@ -20,6 +20,15 @@
20
20
  <!--[if lt IE 9]>
21
21
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
22
22
  <![endif]-->
23
+ <script>
24
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
25
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
26
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
27
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
28
+
29
+ ga('create', 'UA-12143252-4', 'rabbit-shocker.org');
30
+ ga('send', 'pageview');
31
+ </script>
23
32
  </head>
24
33
  <body>
25
34
  <header id="header">
@@ -73,19 +82,5 @@
73
82
  xfbml : true // parse XFBML
74
83
  });
75
84
  </script>
76
- <script type="text/javascript">
77
- if (document.location.protocol != "file:" &&
78
- document.location.host != "localhost") {
79
- var _gaq = _gaq || [];
80
- _gaq.push(['_setAccount', 'UA-12143252-4']);
81
- _gaq.push(['_trackPageview']);
82
-
83
- (function() {
84
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
85
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
86
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
87
- })();
88
- }
89
- </script>
90
85
  </body>
91
86
  </html>
data/doc/en/index.rd CHANGED
@@ -207,11 +207,11 @@ Here is a contributor list. Thanks to them!!!
207
207
  * Makes presentations with Rabbit.
208
208
  * Updated INSTALL.win32.ja.
209
209
  * Updated INSTALL.macosx-macports.{ja,en}.
210
- * Vincent: Helped make Rabbit work on Max OS X. He also
210
+ * Vincent: Helped make Rabbit work on Max OS X. He also
211
211
  made french messages.
212
212
  * sode: Made the cool rabbit, cute rabbit and cute
213
213
  turtle.
214
- * Kazuhiko: Sent me many bug reports. He also makes
214
+ * Kazuhiko: Sent me many bug reports. He also makes
215
215
  presentations with Rabbit and gives me ideas for theme
216
216
  design.
217
217
  * noritada: Sent me a bug report for document.
@@ -22,6 +22,7 @@ Then add /usr/local/bin to your PATH.
22
22
 
23
23
  $ brew install cairo
24
24
  $ brew link cairo
25
+ $ brew link --overwrite pixman
25
26
  $ brew install pango
26
27
  $ brew install gtk+
27
28
  $ brew install poppler --with-glib
@@ -18,13 +18,13 @@ Here are required softwares.
18
18
 
19
19
  ==== Install Ruby
20
20
 
21
- Install Ruby 1.8.7 from ((<download page of RubyInstall for
21
+ Install Ruby 2.0.0 from ((<download page of RubyInstall for
22
22
  Windows|URL:http://rubyinstaller.org/downloads/>)). For
23
- example, Ruby 1.8.7-p334 installer can be downloaded via the
23
+ example, Ruby 2.0.0-p247 installer can be downloaded via the
24
24
  following URL.
25
25
 
26
- : rubyinstaller-1.8.7-p334.exe
27
- ((<URL:http://rubyforge.org/frs/download.php/74293/rubyinstaller-1.8.7-p334.exe>))
26
+ : rubyinstaller-2.0.0-p247.exe
27
+ ((<URL:http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.0.0-p247.exe>))
28
28
 
29
29
  ==== Install Rabbit
30
30
 
data/doc/en/news.rd CHANGED
@@ -3,6 +3,60 @@ layout: en
3
3
  title: News
4
4
  apply_data: false
5
5
  ---
6
+ == 2.1.2: 2014-03-08
7
+
8
+ A bug fix release of 2.1.1.
9
+
10
+ === Improvements
11
+
12
+ ==== rabbit
13
+
14
+ * Supported auto source reloading in information window.
15
+ [GitHub#23] [Reported by Kazuhiro NISHIYAMA]
16
+ * Add ((%--check-syntax%)) option that checks source syntax and exits.
17
+ [GitHub#27] [Reported by HAYASHI Kentaro]
18
+ * Supported inline code markup "(({`...`}))" in Markdown.
19
+ [GitHub#29] [Patch by KITAITI Makoto]
20
+ * Supported newline markup "(({\\}))" in Markdown.
21
+ [GitHub#29] [Patch by KITAITI Makoto]
22
+
23
+ ==== rabbit-slide
24
+
25
+ * Supported README written in Markdown.
26
+ * Added "tag" task that tags by Git.
27
+ * Supported auto adding "theme.rb" file to gem if the file exists.
28
+ * Supported (({youtube_id})) parameter in config.yaml.
29
+ You can specify YouTube video that is associated with your
30
+ presentation. You will find a link at slide.rabbit-shocker.org
31
+ when you specify it.
32
+
33
+ ==== Document
34
+
35
+ * Updated install document for Homebrew.
36
+ [Yutaro Sugai]
37
+ * Updated install document on Windows.
38
+ [Masafumi Yokoyama]
39
+
40
+ === Fixes
41
+
42
+ ==== rabbit
43
+
44
+ * Fixed a bug that configuration dialog for graffiti mode can't be opened.
45
+ [shocker-en:63] [Reported by Enrico Rivarola]
46
+
47
+ ==== rabbit-slide
48
+
49
+ * Fixed a bug that gem can be created without PDF.
50
+
51
+ === Thanks
52
+
53
+ * Kazuhiro NISHIYAMA
54
+ * Yutaro Sugai
55
+ * Masafumi Yokoyama
56
+ * HAYASHI Kentaro
57
+ * Enrico Rivarola
58
+ * KITAITI Makoto
59
+
6
60
  == 2.1.1: 2013-06-26
7
61
 
8
62
  A bug fix release of 2.1.0.
data/doc/en/slides.rd CHANGED
@@ -6,4 +6,6 @@ title: Slides
6
6
 
7
7
  * ((<Review Semestral|URL:https://bitbucket.org/asterite/review_2012_h1>))
8
8
  by Ary Borenszweig.
9
+ * ((<Bitcoin: digital cryptocurrency for the masses|URL:https://github.com/colindean/talks/blob/68315ef5cfb4a39b5e4ef7b39059af4c52144b66/bitcoin-technical/bitcoin-technical.md>))
10
+ by Colin Dean.
9
11
  * (Please add a link to your slide)
@@ -2,4 +2,238 @@
2
2
  layout: en
3
3
  title: rabbit-slide command usage
4
4
  ---
5
- TODO
5
+ == Abstract
6
+
7
+ ((%rabbit-slide%)) is a command that generates a slide template.
8
+
9
+ Template is helpful for creating a slide even if you create just a
10
+ simple slide. You just need a source file for a simple slide. But you
11
+ need some files for publishing your slide. ((%rabbit-slide%))
12
+ generates all needed files for creating and publishng your slide.
13
+
14
+ You create your slide after you generate a slide template. The
15
+ template includes helper features for creating and publishing your
16
+ slide. These helper features are provided as Rake tasks. You can run
17
+ an useful task by a command line. Here is a list for useful features:
18
+
19
+ * Showing your slide.
20
+ * Generating a PDF from your slide source.
21
+ * Publishing your slide to RubyGems.org as a gem.
22
+ * Publishing your slide to SlideShare.
23
+
24
+ Let's create a good slide, do a good presentation and share your good
25
+ slide!
26
+
27
+ You can view published slide gems at
28
+ ((<URL:http://slide.rabbit-shocker.org/>)).
29
+
30
+ == Templates generation
31
+
32
+ First, you generate templates by ((%rabbit-slide%)) command. You pass
33
+ slide information to the command. It is inconvenient because you need
34
+ to pass many information in command line. ((%rabbit-slide%)) will
35
+ provide GUI to pass slide information.
36
+
37
+ Here is a command line that generates templates for a teheme benchmark
38
+ slide:
39
+
40
+ % rabbit-slide new \
41
+ --id theme-benchmark-en \
42
+ --base-name theme-benchmark \
43
+ --markup-language rd \
44
+ --name "Kouhei Sutou" \
45
+ --email kou@cozmixng.org \
46
+ --rubygems-user kou \
47
+ --tags rabbit
48
+
49
+ ((%--id%)) and ((%--base-name%)) is the required parameters.
50
+
51
+ ((%--id%)) is the slide ID. You need to use only ASCII characters.
52
+
53
+ ((%--base-name%)) is the base name. The base name is a name that is
54
+ computed by removing extension from slide source file name. You need
55
+ to use oly ASCII characters.
56
+
57
+ If you publish your slide as a gem on RubyGems.org, you need to
58
+ specify user information by ((%--name%)), ((%--email%)),
59
+ ((%--rubygems-user%)) and so on.
60
+
61
+ TODO: Describe all parameters.
62
+
63
+ You can confirm all patermeters by ((%--help%)):
64
+
65
+ Usage: rabbit-slide COMMAND [OPTIONS]
66
+ e.g.: rabbit-slide new \
67
+ --id rubykaigi2012 \
68
+ --base-name rabbit-introduction \
69
+ --markup-language rd \
70
+ --name "Kouhei Sutou" \
71
+ --email kou@cozmixng.org \
72
+ --rubygems-user kou \
73
+ --slideshare-user kou \
74
+ --speaker-deck-user kou
75
+
76
+ COMMAND
77
+ new: create a new slide
78
+ change: change an existing slide
79
+
80
+ Slide information
81
+ --id=ID Slide ID
82
+ (e.g.: --id=rubykaigi2012)
83
+ (must)
84
+ --base-name=NAME Base name for the slide source file and generated PDF file
85
+ (e.g.: --base-name=rabbit-introduction)
86
+ (must)
87
+ --markup-language=LANGUAGE Markup language for the new slide
88
+ (e.g.: --markup-language=rd)
89
+ (available markup languages: [rd, hiki, markdown])
90
+ (default: rd)
91
+ (optional)
92
+ --title=TITLE Title of the new slide
93
+ (e.g.: --title="Rabbit Introduction")
94
+ (optional)
95
+ --tags=TAG,TAG,... Tags of the new slide
96
+ (e.g.: --tags=rabbit,presentation,ruby)
97
+ (optional)
98
+ --allotted-time=TIME Allotted time in presentaion
99
+ (e.g.: --allotted-time=5m)
100
+ (optional)
101
+ --presentation-date=DATE Presentation date with the new slide
102
+ (e.g.: --presentation-date=2012/06/29)
103
+ (optional)
104
+ Your information
105
+ --name=NAME Author name of the new slide
106
+ (e.g.: --name="Kouhei Sutou")
107
+ (default: Kouhei Sutou)
108
+ (optional)
109
+ --email=EMAIL Author e-mail of the new slide
110
+ (e.g.: --email=kou@cozmixng.org)
111
+ (default: kou@clear-code.com)
112
+ (optional)
113
+ --rubygems-user=USER Account for RubyGems.org
114
+ It is used to publish your slide to RubyGems.org
115
+ (e.g.: --rubygems-user=kou)
116
+ (default: kou)
117
+ (optional)
118
+ --slideshare-user=USER Account for SlideShare
119
+ It is used to publish your slide to SlideShare
120
+ (e.g.: --slideshare-user=kou)
121
+ (default: kou)
122
+ (optional)
123
+ --speaker-deck-user=USER Account for Speaker Deck
124
+ It is used to publish your slide to Speaker Deck
125
+ (e.g.: --speaker-deck-user=kou)
126
+ (default: kou)
127
+ (optional)
128
+
129
+ Common options
130
+ --options-file=FILE Load options from FILE.
131
+ (none)
132
+
133
+ --locale-dir=DIR Specify locale dir as [DIR].
134
+ (auto)
135
+
136
+ --logger-type=TYPE Specify logger type as [TYPE].
137
+ Select from [gui, stderr].
138
+ (STDERR)
139
+ --log-level=LEVEL Specify log level as [LEVEL].
140
+ Select from [debug, info, warning, error, fatal, unknown].
141
+ (info)
142
+
143
+ --help Show this message.
144
+ --version Show version.
145
+
146
+ == Display
147
+
148
+ You can find the directory that name is same as the slide ID after you
149
+ generate slide template. You move to the directory. This documentation
150
+ assumes that you specified ((%--id theme-benchmark-en%)):
151
+
152
+ % cd theme-benchmark-en
153
+
154
+ You can display your slide by ((%rake%)):
155
+
156
+ % rake
157
+
158
+ You edit your source file with checking displayed slide. You edit your
159
+ source file, displayed slide is updated automatically.
160
+
161
+ == PDF generation
162
+
163
+ Let's publish your slide after you did presentation. You can confirm
164
+ your slide as PDF on your computer before you publish your slide. You
165
+ can generate PDF for your slide by ((%rake pdf%)):
166
+
167
+ % rake pdf
168
+
169
+ It generates ((%pdf/theme-benchmark-en.pdf%)). You open the PDF by
170
+ your favorite PDF viewer. You can use ((%rabbit%)) command because
171
+ Rabbit is a PDF viewer:
172
+
173
+ % cd pdf
174
+ % rabbit theme-benchmark-en.pdf
175
+
176
+ == Publication
177
+
178
+ There are publication features for RubyGems.org and SlideShare. There
179
+ is no publication feature for Speaker Deck because Speaker Deck
180
+ doesn't provide API to upload a presentation.
181
+
182
+ You need to specify the following parameters for publication on
183
+ generating templates:
184
+
185
+ * ((%--name%))
186
+ * ((%--email%))
187
+ * ((%--rubygems-user%)): for publishing to RubyGems.org
188
+ * ((%--slideshare-user%)): for publishing to SlideShare
189
+
190
+ You need to edit the following part in ((%README.rd%)):
191
+
192
+ = TODO: SLIDE TITLE
193
+
194
+ TODO: SLIDE DESCRIPTION
195
+
196
+ For example, here is a theme-benchmark-en case:
197
+
198
+ = Theme benchmark
199
+
200
+ It's a slide for checking a Rabbit's theme. It contains many
201
+ elements. So it's useful for confirming your theme.
202
+
203
+ You can publish your slide to both RubyGems.org and SlideShare by
204
+ ((%rabbit publish%)). The following documentation describes to publish
205
+ your slide separately.
206
+
207
+ === Publication for RubyGems.org
208
+
209
+ You can publish your slide to RubyGems.org by ((%rabbit
210
+ publish:rubygems%)):
211
+
212
+ % rake publish:rubygems
213
+
214
+ You can display a slide published on RubyGems.org by
215
+ ((%rabbit #{the user name on RubyGems.org}-#{the slide ID}.gem%)).
216
+ For theme-benchmark-en case, "the user name on RubyGems.org" is
217
+ ((%rabbit%)) and "the slide ID" is ((%theme-benchmark-en%)). So you
218
+ can display by the following command:
219
+
220
+ % rabbit rabbit-theme-benchmark-en.gem
221
+
222
+ You can view a slide published on RubyGems.org on ((<Rabbit Slide
223
+ Show|URL:http://slide.rabbit-shocker.org/>)). URL is
224
+ ((%http://slide.rabbit-shocker.org/authors/#{the user name on
225
+ RubyGems.org}/#{the slide ID}/%)).
226
+
227
+ Rabbit Slide Show collects and displays all slides published on
228
+ RubyGems.org automatically. So you don't need to publish your slide to
229
+ Rabbit Slide Share explicitly. You only need to publish your slide to
230
+ RubyGems.org.
231
+
232
+ === Publication for SlideShare
233
+
234
+ You can publish your slide to SlideShare by ((%rabbit publish:slideshare%)).
235
+
236
+ % rake publish:slideshare
237
+
238
+ If the task is completed successfully, the slide page on SlideShare is
239
+ opened by your favorite browser automatically.