rabbit 1.0.9 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. data/GPL +19 -20
  2. data/Rakefile +25 -10
  3. data/bin/rabbit +20 -844
  4. data/bin/rabbit-command +25 -36
  5. data/bin/rabbit-slide +22 -0
  6. data/bin/rabbit-theme +22 -0
  7. data/bin/rabbit-theme-manager +30 -30
  8. data/data/account.kou.gpg +0 -0
  9. data/data/locale/en/LC_MESSAGES/rabbit.mo +0 -0
  10. data/data/locale/fr/LC_MESSAGES/rabbit.mo +0 -0
  11. data/data/locale/ja/LC_MESSAGES/rabbit.mo +0 -0
  12. data/doc/_config.yml +8 -0
  13. data/doc/_includes/en.menu.html +8 -0
  14. data/doc/_includes/ja.menu.html +8 -0
  15. data/doc/_layouts/en.html +19 -16
  16. data/doc/_layouts/ja.html +19 -16
  17. data/doc/_plugins/converters/rd.rb +1 -1
  18. data/doc/_plugins/support_symlink.rb +11 -0
  19. data/doc/en/development.rd +2 -2
  20. data/doc/en/how-to-make/index.rd +5 -5
  21. data/doc/en/how-to-make/rd.rd +1 -1
  22. data/doc/en/index.rd +6 -12
  23. data/doc/en/sample/index.rd +3 -3
  24. data/doc/en/slides.rd +2 -0
  25. data/doc/en/usage.rd +14 -356
  26. data/doc/en/usage/rabbit.rd +360 -0
  27. data/doc/en/users.rd +3 -1
  28. data/doc/images/screenshots/en/blue-circle-raw.png +0 -0
  29. data/doc/images/screenshots/en/blue-circle.png +0 -0
  30. data/doc/images/screenshots/en/clear-blue-raw.png +0 -0
  31. data/doc/images/screenshots/en/clear-blue.png +0 -0
  32. data/doc/images/screenshots/en/cozmixng-raw.png +0 -0
  33. data/doc/images/screenshots/en/cozmixng.png +0 -0
  34. data/doc/images/screenshots/en/dark-gradation-raw.png +0 -0
  35. data/doc/images/screenshots/en/dark-gradation.png +0 -0
  36. data/doc/images/screenshots/en/day-white.png +0 -0
  37. data/doc/images/screenshots/en/debian-raw.png +0 -0
  38. data/doc/images/screenshots/en/debian.png +0 -0
  39. data/doc/images/screenshots/en/green-circle-raw.png +0 -0
  40. data/doc/images/screenshots/en/green-circle.png +0 -0
  41. data/doc/images/screenshots/en/night-black.png +0 -0
  42. data/doc/images/screenshots/en/rabbit-raw.png +0 -0
  43. data/doc/images/screenshots/en/rabbit.png +0 -0
  44. data/doc/images/screenshots/en/ranguba-raw.png +0 -0
  45. data/doc/images/screenshots/en/ranguba.png +0 -0
  46. data/doc/images/screenshots/en/red-frame-raw.png +0 -0
  47. data/doc/images/screenshots/en/red-frame.png +0 -0
  48. data/doc/images/screenshots/en/ruby-gnome2-raw.png +0 -0
  49. data/doc/images/screenshots/en/ruby-gnome2.png +0 -0
  50. data/doc/images/screenshots/en/rubykaigi2011-raw.png +0 -0
  51. data/doc/images/screenshots/en/rubykaigi2011.png +0 -0
  52. data/doc/images/screenshots/ja/blue-circle-raw.png +0 -0
  53. data/doc/images/screenshots/ja/blue-circle.png +0 -0
  54. data/doc/images/screenshots/ja/clear-blue-raw.png +0 -0
  55. data/doc/images/screenshots/ja/clear-blue.png +0 -0
  56. data/doc/images/screenshots/ja/cozmixng-raw.png +0 -0
  57. data/doc/images/screenshots/ja/cozmixng.png +0 -0
  58. data/doc/images/screenshots/ja/dark-gradation-raw.png +0 -0
  59. data/doc/images/screenshots/ja/dark-gradation.png +0 -0
  60. data/doc/images/screenshots/ja/day-white.png +0 -0
  61. data/doc/images/screenshots/ja/debian-raw.png +0 -0
  62. data/doc/images/screenshots/ja/debian.png +0 -0
  63. data/doc/images/screenshots/ja/green-circle-raw.png +0 -0
  64. data/doc/images/screenshots/ja/green-circle.png +0 -0
  65. data/doc/images/screenshots/ja/night-black.png +0 -0
  66. data/doc/images/screenshots/ja/rabbit-raw.png +0 -0
  67. data/doc/images/screenshots/ja/rabbit.png +0 -0
  68. data/doc/images/screenshots/ja/ranguba-raw.png +0 -0
  69. data/doc/images/screenshots/ja/ranguba.png +0 -0
  70. data/doc/images/screenshots/ja/red-frame-raw.png +0 -0
  71. data/doc/images/screenshots/ja/red-frame.png +0 -0
  72. data/doc/images/screenshots/ja/ruby-gnome2-raw.png +0 -0
  73. data/doc/images/screenshots/ja/ruby-gnome2.png +0 -0
  74. data/doc/images/screenshots/ja/rubykaigi2011-raw.png +0 -0
  75. data/doc/images/screenshots/ja/rubykaigi2011.png +0 -0
  76. data/doc/index.html.en +1 -1
  77. data/doc/index.html.ja +1 -1
  78. data/doc/ja/about.rd +3 -3
  79. data/doc/ja/development.rd +2 -2
  80. data/doc/ja/how-to-make/index.rd +5 -5
  81. data/doc/ja/index.rd +10 -16
  82. data/doc/ja/install/macports.rd +1 -1
  83. data/doc/ja/news.rd +4 -4
  84. data/doc/ja/sample/index.rd +3 -3
  85. data/doc/ja/usage.rd +13 -358
  86. data/doc/ja/usage/rabbit.rd +362 -0
  87. data/doc/ja/users.rd +1 -1
  88. data/lib/rabbit/action.rb +2 -2
  89. data/lib/rabbit/author-configuration.rb +73 -0
  90. data/lib/rabbit/canvas.rb +0 -14
  91. data/lib/rabbit/command/rabbit-slide.rb +571 -0
  92. data/lib/rabbit/command/rabbit-theme.rb +381 -0
  93. data/lib/rabbit/command/rabbit.rb +898 -0
  94. data/lib/rabbit/config.rb +40 -0
  95. data/lib/rabbit/console.rb +124 -55
  96. data/lib/rabbit/gem-finder.rb +61 -0
  97. data/lib/rabbit/gettext.rb +6 -79
  98. data/lib/rabbit/html/generator.rb +1 -0
  99. data/lib/rabbit/image.rb +1 -1
  100. data/lib/rabbit/logger.rb +12 -2
  101. data/lib/rabbit/logger/base.rb +33 -32
  102. data/lib/rabbit/logger/stderr.rb +1 -1
  103. data/lib/rabbit/menu.rb +1 -1
  104. data/lib/rabbit/parser.rb +2 -0
  105. data/lib/rabbit/parser/ext/image.rb +14 -20
  106. data/lib/rabbit/path-manipulatable.rb +40 -0
  107. data/lib/rabbit/rabbit.rb +18 -8
  108. data/lib/rabbit/renderer/base.rb +3 -4
  109. data/lib/rabbit/renderer/color.rb +0 -1
  110. data/lib/rabbit/slideshare.rb +116 -0
  111. data/lib/rabbit/source/base.rb +1 -1
  112. data/lib/rabbit/stock.rb +1 -1
  113. data/lib/rabbit/task.rb +18 -0
  114. data/lib/rabbit/task/slide.rb +162 -0
  115. data/lib/rabbit/task/theme.rb +122 -0
  116. data/lib/rabbit/theme-browser/tree.rb +1 -1
  117. data/lib/rabbit/theme/applier.rb +9 -0
  118. data/lib/rabbit/theme/background-image-toolkit/background-image-toolkit.rb +1 -2
  119. data/lib/rabbit/theme/blue-bar/blue-bar.rb +0 -11
  120. data/lib/rabbit/theme/clear-blue/clear-blue.rb +0 -11
  121. data/lib/rabbit/theme/cozmixng/cozmixng.rb +0 -11
  122. data/lib/rabbit/theme/day-white/day-white.rb +0 -6
  123. data/lib/rabbit/theme/default/default.rb +7 -1
  124. data/lib/rabbit/theme/enishi-green/property.rb +2 -2
  125. data/lib/rabbit/theme/entry.rb +85 -27
  126. data/lib/rabbit/theme/image-slide-number/image-slide-number.rb +4 -1
  127. data/lib/rabbit/theme/lightning-monochrome/lightning-monochrome.rb +0 -1
  128. data/lib/rabbit/theme/lightning-simple/lightning-simple.rb +0 -1
  129. data/lib/rabbit/theme/nari/nari.rb +6 -16
  130. data/lib/rabbit/theme/nari/property.rb +3 -0
  131. data/lib/rabbit/theme/night-black/night-black.rb +0 -6
  132. data/lib/rabbit/theme/pdf/pdf.rb +0 -4
  133. data/lib/rabbit/theme/rabbit/rabbit.rb +0 -6
  134. data/lib/rabbit/theme/ranguba/ranguba.rb +0 -12
  135. data/lib/rabbit/theme/ruby-gnome2/ruby-gnome2.rb +7 -4
  136. data/lib/rabbit/theme/rubykaigi2011/rubykaigi2011.rb +2 -9
  137. data/lib/rabbit/theme/searcher.rb +38 -16
  138. data/lib/rabbit/theme/syntax-highlighting/property.rb +2 -2
  139. data/lib/rabbit/version.rb +19 -0
  140. data/po/en/rabbit.po +1605 -1425
  141. data/po/fr/rabbit.po +1756 -1684
  142. data/po/ja/rabbit.po +2198 -2097
  143. data/po/rabbit.pot +1556 -1419
  144. metadata +34 -100
  145. data/bin/rabbirack +0 -99
  146. data/bin/rabbiter +0 -108
  147. data/bin/rabrick +0 -95
  148. data/bin/rabwii +0 -77
  149. data/lib/rabbit/default-config.rb +0 -24
  150. data/lib/rabbit/div/comment-i.erb +0 -7
  151. data/lib/rabbit/div/comment.erb +0 -45
  152. data/lib/rabbit/div/css.erb +0 -1
  153. data/lib/rabbit/div/js.erb +0 -1
  154. data/lib/rabbit/div/log.erb +0 -5
  155. data/lib/rabbit/div/main-i.erb +0 -24
  156. data/lib/rabbit/div/main.css +0 -40
  157. data/lib/rabbit/div/main.erb +0 -33
  158. data/lib/rabbit/div/navi-i.erb +0 -6
  159. data/lib/rabbit/div/navi.erb +0 -6
  160. data/lib/rabbit/div/prototype.js +0 -4320
  161. data/lib/rabbit/div/slide-i.erb +0 -2
  162. data/lib/rabbit/div/slide.erb +0 -5
  163. data/lib/rabbit/div/tofu.rb +0 -309
  164. data/lib/rabbit/middleware/config.ru +0 -42
  165. data/lib/rabbit/middleware/controller.rb +0 -63
  166. data/lib/rabbit/middleware/public/stylesheets/rabbirack.css +0 -12
  167. data/lib/rabbit/middleware/views/index.haml +0 -13
  168. data/lib/rabbit/middleware/views/layout.haml +0 -8
  169. data/lib/rabbit/post-setup.rb +0 -8
  170. data/lib/rabbit/pre-clean.rb +0 -2
  171. data/lib/rabbit/pre-distclean.rb +0 -2
  172. data/lib/rabbit/theme/twitter-comment/property.rb +0 -4
  173. data/lib/rabbit/theme/twitter-comment/twitter-comment.rb +0 -15
  174. data/lib/rabbit/twitter.rb +0 -239
  175. data/sample/theme-bench-en.hiki +0 -100
  176. data/sample/theme-bench-en.rab +0 -127
  177. data/sample/theme-bench.hiki +0 -101
  178. data/sample/theme-bench.rab +0 -128
  179. data/setup.rb +0 -1585
  180. data/update-mo.rb +0 -20
  181. data/update-po.rb +0 -57
data/bin/rabbit-command CHANGED
@@ -5,88 +5,80 @@ require 'drb/drb'
5
5
 
6
6
  require "rabbit/console"
7
7
 
8
+ include Rabbit::GetText
9
+
8
10
  def parse(args=ARGV, logger=nil)
9
- Rabbit::Console.parse!(args, logger) do |opts, options|
10
- options.rabbit_uri = "druby://localhost:10101"
11
- options.druby_uri_specified = false
11
+ Rabbit::Console.parse!(args, logger) do |parser, options|
12
+ options.rabbit_uri = options.druby_uri
12
13
  options.commands = []
13
14
 
14
- opts.separator ""
15
+ parser.separator ""
15
16
 
16
- opts.on("--rabbit-uri=URI",
17
- _("Specify Rabbit's dRuby URI as [URI]."),
18
- "(#{options.rabbit_uri})") do |uri|
17
+ parser.on("--rabbit-uri=URI",
18
+ _("Specify Rabbit's dRuby URI as [URI]."),
19
+ "(#{options.rabbit_uri})") do |uri|
19
20
  options.rabbit_uri = uri
20
21
  end
21
22
 
22
- opts.on("--druby-uri=URI",
23
- _("Deprecated."),
24
- _("Use --rabbit-uri instead."),
25
- _("Specify Rabbit's dRuby URI as [URI]."),
26
- "(#{options.rabbit_uri})") do |uri|
27
- options.rabbit_uri = uri
28
- options.druby_uri_specified = true
29
- end
23
+ parser.separator(_("Move commands"))
30
24
 
31
- opts.separator(_("Move commands"))
32
-
33
- opts.on("--previous", _("Move to previous")) do
25
+ parser.on("--previous", _("Move to previous")) do
34
26
  options.commands << [false, :move_to_previous_if_can]
35
27
  end
36
28
 
37
- opts.on("--next", _("Move to next")) do
29
+ parser.on("--next", _("Move to next")) do
38
30
  options.commands << [false, :move_to_next_if_can]
39
31
  end
40
32
 
41
- opts.on("--previous-slide", _("Move to the previous slide")) do
33
+ parser.on("--previous-slide", _("Move to the previous slide")) do
42
34
  options.commands << [false, :move_to_previous_slide_if_can]
43
35
  end
44
36
 
45
- opts.on("--next-slide", _("Move to the next slide")) do
37
+ parser.on("--next-slide", _("Move to the next slide")) do
46
38
  options.commands << [false, :move_to_next_slide_if_can]
47
39
  end
48
40
 
49
- opts.on("--first-slide", _("Move to the first slide")) do
41
+ parser.on("--first-slide", _("Move to the first slide")) do
50
42
  options.commands << [false, :move_to_first]
51
43
  end
52
44
 
53
- opts.on("--last-slide", _("Move to the last slide")) do
45
+ parser.on("--last-slide", _("Move to the last slide")) do
54
46
  options.commands << [false, :move_to_last]
55
47
  end
56
48
 
57
- opts.on("--jump-to=N", Integer, _("Move to the Nth slide")) do |n|
49
+ parser.on("--jump-to=N", Integer, _("Move to the Nth slide")) do |n|
58
50
  options.commands << [false, :move_to_if_can, n]
59
51
  end
60
52
 
61
- opts.separator(_("Get commands"))
53
+ parser.separator(_("Get commands"))
62
54
 
63
- opts.on("--source", _("Show source")) do
55
+ parser.on("--source", _("Show source")) do
64
56
  options.commands << [:puts, :source]
65
57
  end
66
58
 
67
- opts.on("--current-slide-rd", _("Show the current slide source as RD")) do
59
+ parser.on("--current-slide-rd", _("Show the current slide source as RD")) do
68
60
  options.commands << [:puts, :current_slide_rd]
69
61
  end
70
62
 
71
- opts.separator(_("Control commands"))
63
+ parser.separator(_("Control commands"))
72
64
 
73
- opts.on("--toggle-fullscreen", _("Toggle fullscreen")) do
65
+ parser.on("--toggle-fullscreen", _("Toggle fullscreen")) do
74
66
  options.commands << [false, :toggle_fullscreen]
75
67
  end
76
68
 
77
- opts.on("--toggle-index-mode", _("Toggle index mode")) do
69
+ parser.on("--toggle-index-mode", _("Toggle index mode")) do
78
70
  options.commands << [false, :toggle_index_mode]
79
71
  end
80
72
 
81
- opts.on("--toggle-whiteout", _("Toggle whiteout")) do
73
+ parser.on("--toggle-whiteout", _("Toggle whiteout")) do
82
74
  options.commands << [false, :toggle_whiteout]
83
75
  end
84
76
 
85
- opts.on("--toggle-blackout", _("Toggle blackout")) do
77
+ parser.on("--toggle-blackout", _("Toggle blackout")) do
86
78
  options.commands << [false, :toggle_blackout]
87
79
  end
88
80
 
89
- opts.on("--quit", _("Quit")) do
81
+ parser.on("--quit", _("Quit")) do
90
82
  options.commands << [false, :quit]
91
83
  end
92
84
  end
@@ -95,9 +87,6 @@ end
95
87
  def main
96
88
  options, logger = parse
97
89
 
98
- if options.druby_uri_specified
99
- logger.warning(_("--druby-uri is deprecated. Use --rabbit-uri instead."))
100
- end
101
90
  rabbit = DRbObject.new_with_uri(options.rabbit_uri)
102
91
  options.commands.each do |output, method, *args|
103
92
  result = rabbit.send(method, *args)
data/bin/rabbit-slide ADDED
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env ruby
2
+ # -*- ruby -*-
3
+ #
4
+ # Copyright (C) 2012 Kouhei Sutou <kou@cozmixng.org>
5
+ #
6
+ # This program is free software; you can redistribute it and/or modify
7
+ # it under the terms of the GNU General Public License as published by
8
+ # the Free Software Foundation; either version 2 of the License, or
9
+ # (at your option) any later version.
10
+ #
11
+ # This program is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ # GNU General Public License for more details.
15
+ #
16
+ # You should have received a copy of the GNU General Public License along
17
+ # with this program; if not, write to the Free Software Foundation, Inc.,
18
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
+
20
+ require "rabbit/command/rabbit-slide"
21
+
22
+ exit(Rabbit::Command::RabbitSlide.run(*ARGV))
data/bin/rabbit-theme ADDED
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env ruby
2
+ # -*- ruby -*-
3
+ #
4
+ # Copyright (C) 2012 Kouhei Sutou <kou@cozmixng.org>
5
+ #
6
+ # This program is free software; you can redistribute it and/or modify
7
+ # it under the terms of the GNU General Public License as published by
8
+ # the Free Software Foundation; either version 2 of the License, or
9
+ # (at your option) any later version.
10
+ #
11
+ # This program is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ # GNU General Public License for more details.
15
+ #
16
+ # You should have received a copy of the GNU General Public License along
17
+ # with this program; if not, write to the Free Software Foundation, Inc.,
18
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
+
20
+ require "rabbit/command/rabbit-theme"
21
+
22
+ exit(Rabbit::Command::RabbitTheme.run(*ARGV))
@@ -8,7 +8,7 @@ require "rabbit/console"
8
8
  COMMANDS = %w(generate browse)
9
9
 
10
10
  def parse(args=ARGV, logger=nil)
11
- Rabbit::Console.parse!(args, logger) do |opts, options|
11
+ Rabbit::Console.parse!(args, logger) do |parser, options|
12
12
  options.startup_theme = nil
13
13
  options.theme_doc_dir = "theme-doc"
14
14
  options.locale_dir = nil
@@ -17,64 +17,64 @@ def parse(args=ARGV, logger=nil)
17
17
  options.height = 400
18
18
 
19
19
 
20
- opts.banner = "#{opts.banner} [COMMAND]"
20
+ parser.banner = "#{parser.banner} [COMMAND]"
21
21
 
22
- opts.separator _("[COMMAND] is one of them: [%s]") % COMMANDS.join(', ')
23
- opts.separator "(#{COMMANDS.first})"
24
- opts.separator ""
22
+ parser.separator _("[COMMAND] is one of them: [%s]") % COMMANDS.join(', ')
23
+ parser.separator "(#{COMMANDS.first})"
24
+ parser.separator ""
25
25
 
26
- opts.on("-I", "--include [PATH]",
27
- _("Add [PATH] to load path.")) do |path|
26
+ parser.on("-I", "--include [PATH]",
27
+ _("Add [PATH] to load path.")) do |path|
28
28
  $LOAD_PATH.unshift(path)
29
29
  end
30
30
 
31
- opts.separator ""
31
+ parser.separator ""
32
32
 
33
- opts.on("--startup-theme [THEME]",
34
- _("Show [THEME] when startup."),
35
- "(#{options.startup_theme})") do |theme|
33
+ parser.on("--startup-theme [THEME]",
34
+ _("Show [THEME] when startup."),
35
+ "(#{options.startup_theme})") do |theme|
36
36
  options.startup_theme = theme
37
37
  end
38
38
 
39
- opts.separator ""
39
+ parser.separator ""
40
40
 
41
- opts.on("-w", "--width [WIDTH]",
42
- Integer,
43
- _("Set window width to [WIDTH]."),
44
- "(#{options.width})") do |width|
41
+ parser.on("-w", "--width [WIDTH]",
42
+ Integer,
43
+ _("Set window width to [WIDTH]."),
44
+ "(#{options.width})") do |width|
45
45
  options.width = width
46
46
  end
47
47
 
48
- opts.on("-h", "--height [HEIGHT]",
49
- Integer,
50
- _("Set window height to [HEIGHT]."),
51
- "(#{options.height})") do |height|
48
+ parser.on("-h", "--height [HEIGHT]",
49
+ Integer,
50
+ _("Set window height to [HEIGHT]."),
51
+ "(#{options.height})") do |height|
52
52
  options.height = height
53
53
  end
54
54
 
55
55
  message = _("Set window width and height to\n" \
56
56
  "[WIDTH] and [HEIGHT].")
57
57
  message = message.split(/\n/) + ["(#{options.width},#{options.height})"]
58
- opts.on("-S", "--size [WIDTH],[HEIGHT]",
59
- Array,
60
- *message) do |size|
58
+ parser.on("-S", "--size [WIDTH],[HEIGHT]",
59
+ Array,
60
+ *message) do |size|
61
61
  width, height = size.collect{|x| Integer(x)}
62
62
  options.width = width
63
63
  options.height = height
64
64
  end
65
65
 
66
- opts.separator ""
66
+ parser.separator ""
67
67
 
68
- opts.on("--theme-doc-dir [DIR]",
69
- _("Specify theme document directory as [DIR].")) do |dir|
68
+ parser.on("--theme-doc-dir [DIR]",
69
+ _("Specify theme document directory as [DIR].")) do |dir|
70
70
  options.theme_doc_dir = dir
71
71
  end
72
72
 
73
- opts.separator ""
73
+ parser.separator ""
74
74
 
75
- opts.on("--locales [LOC1,LOC2,...]",
76
- _("Specify target locales as [LOC1,LOC2,...]."),
77
- "([#{options.locales.join(', ')}])") do |locales|
75
+ parser.on("--locales [LOC1,LOC2,...]",
76
+ _("Specify target locales as [LOC1,LOC2,...]."),
77
+ "([#{options.locales.join(', ')}])") do |locales|
78
78
  options.locales = locales
79
79
  end
80
80
  end
Binary file
Binary file
Binary file
Binary file
data/doc/_config.yml CHANGED
@@ -1,2 +1,10 @@
1
1
  markdown: rdiscount
2
2
  pygments: true
3
+ version: 2.0.0
4
+ release_date: 2012-08-29
5
+ rabbiter_version: 2.0.0
6
+ rabbiter_release_date: 2012-08-29
7
+ rabbirack_version: 2.0.0
8
+ rabbirack_release_date: 2012-08-29
9
+ rabwii_version: 2.0.0
10
+ rabwii_release_date: 2012-08-29
@@ -0,0 +1,8 @@
1
+ <ul>
2
+ <li><a href="/en/">README</a></li>
3
+ <li><a href="/en/install/">Install</a></li>
4
+ <li><a href="/en/usage.html">Usage</a></li>
5
+ <li><a href="/en/how-to-make/">How to make</a></li>
6
+ <li><a href="/en/users.html">Shockers</a></li>
7
+ <li><a href="/en/development.html">Development</a></li>
8
+ </ul>
@@ -0,0 +1,8 @@
1
+ <ul>
2
+ <li><a href="/ja/">はじめに</a></li>
3
+ <li><a href="/ja/install/">インストール</a></li>
4
+ <li><a href="/ja/usage.html">使い方</a></li>
5
+ <li><a href="/ja/how-to-make/">作り方</a></li>
6
+ <li><a href="/ja/users.html">ショッカー</a></li>
7
+ <li><a href="/ja/development.html">開発</a></li>
8
+ </ul>
data/doc/_layouts/en.html CHANGED
@@ -5,14 +5,7 @@ country: US
5
5
  ---
6
6
  {% if page.lang_suffix == null %}
7
7
  <nav class="menu">
8
- <ul>
9
- <li><a href="/en/">README</a></li>
10
- <li><a href="/en/install/">Install</a></li>
11
- <li><a href="/en/usage.html">Usage</a></li>
12
- <li><a href="/en/how-to-make/">How to make</a></li>
13
- <li><a href="/en/users.html">Shockers</a></li>
14
- <li><a href="/en/development.html">Development</a></li>
15
- </ul>
8
+ {% include en.menu.html %}
16
9
  </nav>
17
10
  {% endif %}
18
11
  {% if page.no_sidebar %}
@@ -22,16 +15,26 @@ country: US
22
15
  {{ content }}
23
16
  <nav id="sidebar">
24
17
  <h3>The Latest Release</h3>
25
- <p><a href="en/news.html">1.0.8</a> is the latest release. It had been released at 2012-06-17.</p>
26
- <h3>Links</h3>
27
18
  <ul>
28
- <li><a href="/en/">README</a></li>
29
- <li><a href="/en/install/">Install</a></li>
30
- <li><a href="/en/usage.html">Usage</a></li>
31
- <li><a href="/en/how-to-make/">How to make</a></li>
32
- <li><a href="/en/users.html">Shockers</a></li>
33
- <li><a href="/en/development.html">Development</a></li>
19
+ <li>
20
+ Rabbit <a href="/en/news.html">{{ site.version }}</a>:
21
+ {{ site.release_date }}
22
+ </li>
23
+ <li>
24
+ <a href="/en/rabbiter/">Rabbiter</a> <a href="/en/rabbiter/news.html">{{ site.rabbiter_version }}</a>:
25
+ {{ site.rabbiter_release_date }}
26
+ </li>
27
+ <li>
28
+ <a href="/en/rabbirack">RabbiRack</a> <a href="/en/rabbirack/news.html">{{ site.rabbirack_version }}</a>:
29
+ {{ site.rabbirack_release_date }}
30
+ </li>
31
+ <li>
32
+ <a href="/en/rabwii">RabWii</a> <a href="/en/rabwii/news.html">{{ site.rabwii_version }}</a>:
33
+ {{ site.rabwii_release_date }}
34
+ </li>
34
35
  </ul>
36
+ <h3>Links</h3>
37
+ {% include en.menu.html %}
35
38
  </nav>
36
39
  </div>
37
40
  {% endif %}
data/doc/_layouts/ja.html CHANGED
@@ -5,14 +5,7 @@ country: JP
5
5
  ---
6
6
  {% if page.lang_suffix == null %}
7
7
  <nav class="menu">
8
- <ul>
9
- <li><a href="/ja/">はじめに</a></li>
10
- <li><a href="/ja/install/">インストール</a></li>
11
- <li><a href="/ja/usage.html">使い方</a></li>
12
- <li><a href="/ja/how-to-make/">作り方</a></li>
13
- <li><a href="/ja/users.html">ショッカー</a></li>
14
- <li><a href="/ja/development.html">開発</a></li>
15
- </ul>
8
+ {% include ja.menu.html %}
16
9
  </nav>
17
10
  {% endif %}
18
11
  {% if page.no_sidebar %}
@@ -22,16 +15,26 @@ country: JP
22
15
  {{ content }}
23
16
  <nav id="sidebar">
24
17
  <h3>最新リリース</h3>
25
- <p>2012-06-17にリリースされた<a href="/ja/news.html">1.0.8</a>が最新リリースです。</p>
26
- <h3>リンク</h3>
27
18
  <ul>
28
- <li><a href="/ja/">はじめに</a></li>
29
- <li><a href="/ja/install/">インストール</a></li>
30
- <li><a href="/ja/usage.html">使い方</a></li>
31
- <li><a href="/ja/how-to-make/">作り方</a></li>
32
- <li><a href="/ja/users.html">ショッカー</a></li>
33
- <li><a href="/ja/development.html">開発</a></li>
19
+ <li>
20
+ Rabbit <a href="/ja/news.html">{{ site.version }}</a>:
21
+ {{ site.release_date }}
22
+ </li>
23
+ <li>
24
+ <a href="/ja/rabbiter/">Rabbiter</a> <a href="/ja/rabbiter/news.html">{{ site.rabbiter_version }}</a>:
25
+ {{ site.rabbiter_release_date }}
26
+ </li>
27
+ <li>
28
+ <a href="/ja/rabbirack">RabbiRack</a> <a href="/ja/rabbirack/news.html">{{ site.rabbirack_version }}</a>:
29
+ {{ site.rabbirack_release_date }}
30
+ </li>
31
+ <li>
32
+ <a href="/ja/rabwii">RabWii</a> <a href="/ja/rabwii/news.html">{{ site.rabwii_version }}</a>:
33
+ {{ site.rabwii_release_date }}
34
+ </li>
34
35
  </ul>
36
+ <h3>リンク</h3>
37
+ {% include ja.menu.html %}
35
38
  </nav>
36
39
  </div>
37
40
  {% endif %}
@@ -42,7 +42,7 @@ module Jekyll
42
42
  def add_number(source, around=nil)
43
43
  i = 1
44
44
  puts source
45
- lines = source.to_a[0..-2]
45
+ lines = source.lines.to_a[0..-2]
46
46
  if around
47
47
  i = [1, around - SNIPPET_SIZE].max
48
48
  lines = lines[i, 2 * SNIPPET_SIZE]
@@ -0,0 +1,11 @@
1
+ module Jekyll
2
+ class Site
3
+ class File < ::File
4
+ class << self
5
+ def symlink?(path)
6
+ super and !exist?(readlink(path))
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -21,7 +21,7 @@ to the ML, send an e-mail like the following.
21
21
 
22
22
  == Bug report
23
23
 
24
- Use mailing list (see ((<users.html/Users>)) page about
24
+ Use mailing list (see ((<users.rd/Users>)) page about
25
25
  mailing list) or ((<Issues on
26
26
  GitHub|URL:https://github.com/shockers/rabbit/issues>)) for
27
27
  reporting a bug or a request.
@@ -38,7 +38,7 @@ when you create a theme.
38
38
  === Documentation
39
39
 
40
40
  Rabbit lacks documentation in English. Please consider that
41
- you write your tips to ((<faq.html/FAQ>)) page.
41
+ you write your tips to ((<faq.rd/FAQ>)) page.
42
42
 
43
43
  === Translation
44
44