rabbit-theme-rurema 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. checksums.yaml +7 -0
  2. data/README.rd +24 -0
  3. data/Rakefile +10 -0
  4. data/config.yaml +15 -0
  5. data/property.rb +4 -0
  6. data/theme.rb +65 -0
  7. metadata +64 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 65313356a42916d625c484bb1c696a5b6b08d753
4
+ data.tar.gz: 2ca363d55002987209e3b14f192fead7cfe3890b
5
+ SHA512:
6
+ metadata.gz: 4b41703ca526616f9c05d95c4444731a402611d372e197bf671c0d935c5c258ed8900dff12f335f509a17727c60c4cc39658ec272ee02454fe4c46822c315d8a
7
+ data.tar.gz: 14e4ea5177a3a76a45486ce3a8f3c1e08ba408a26d6d49cd1d60fa992635ee5d36f45bc5072c65925b7d39342ac993ee203de274e720f614a89980b3d46dda06
data/README.rd ADDED
@@ -0,0 +1,24 @@
1
+ = rurema
2
+
3
+ For rurema
4
+
5
+ == 作者向け
6
+
7
+ === 表示
8
+
9
+ rake
10
+
11
+ === 公開
12
+
13
+ rake publish
14
+
15
+ == 利用者用
16
+
17
+ === インストール
18
+
19
+ gem install rabbit-theme-rurema
20
+
21
+ === 表示
22
+
23
+ rabbit -t rabbit-theme-rurema rabbit-theme-benchmark-ja.gem
24
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "rabbit/task/theme"
2
+
3
+ # Edit ./config.yaml to customize meta data
4
+
5
+ spec = nil
6
+ Rabbit::Task::Theme.new do |task|
7
+ task.spec.licenses = ["GPLv3+", "CC BY-SA 3.0"]
8
+ task.spec.files = %w[README.rd Rakefile config.yaml property.rb theme.rb]
9
+ spec = task.spec
10
+ end
data/config.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ id: rurema
3
+ tags:
4
+ - rurema
5
+ version: 1.0.0
6
+ licenses:
7
+ - GPLv3+
8
+ - CC BY-SA 3.0
9
+ author:
10
+ markup_language: rd
11
+ name: okkez
12
+ email: okkez000@gmail.com
13
+ rubygems_user: okkez
14
+ slideshare_user: okkez
15
+ speaker_deck_user:
data/property.rb ADDED
@@ -0,0 +1,4 @@
1
+ @category = N_("Theme")
2
+ @title = N_("rurema")
3
+ @abstract = N_("RubyReferenceManual theme")
4
+ @description = N_("RubyReferenceManual theme")
data/theme.rb ADDED
@@ -0,0 +1,65 @@
1
+ @block_quote_frame_width = 1
2
+ @block_quote_fill_color = "#eeeeee"
3
+
4
+ # FIXME
5
+ @default_item1_mark_color = "#000000"
6
+ @default_item2_mark_color = "#333333"
7
+ @default_item3_mark_color = "#666666"
8
+ @default_enum_item1_mark_color = "#333333"
9
+ @default_enum_item2_mark_color = "#666666"
10
+ @default_description_item1_mark_color = "#ff9933"
11
+ @default_block_quote_item1_mark_color = "#ff9933"
12
+
13
+ @description_term_line_color = "#3333aa"
14
+
15
+ @preformatted_frame_width = 1
16
+ @preformatted_fill_color = "#eeeeee"
17
+
18
+ @table_frame_width = 1
19
+ @table_caption_color = "#000000"
20
+ @table_head_fill_color = "#dddddd"
21
+ @table_fill_color = "#eeeeee"
22
+ include_theme("default")
23
+
24
+ set_foreground("black")
25
+ set_background("white")
26
+
27
+ match(Slide, HeadLine) do |heads|
28
+ name = "head-line"
29
+
30
+ heads.delete_post_draw_proc_by_name(name)
31
+
32
+ heads.horizontal_centering = false
33
+ heads.prop_set("foreground", "white")
34
+
35
+ x_space = screen_x(2)
36
+ y_space = screen_y(1)
37
+
38
+ heads.padding_top = y_space * 2
39
+ heads.padding_bottom = y_space * 2
40
+
41
+ color = "#3333aa"
42
+
43
+ heads.each do |head|
44
+ pre_y = nil
45
+ width = nil
46
+ height = nil
47
+ head.add_pre_draw_proc(name) do |canvas, x, y, w, h, simulation|
48
+ pre_y = y
49
+ unless simulation
50
+ border_x = x - x_space * 2
51
+ border_y = y - y_space * 2
52
+ border_width = width + x_space * 4
53
+ border_height = height + y_space * 4
54
+ canvas.draw_rectangle(true, border_x, border_y,
55
+ border_width, border_height, color)
56
+ end
57
+ [x, y, w, h]
58
+ end
59
+ head.add_post_draw_proc(name) do |canvas, x, y, w, h, simulation|
60
+ width = w
61
+ height = y - pre_y
62
+ [x, y, w, h]
63
+ end
64
+ end
65
+ end
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rabbit-theme-rurema
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - okkez
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-05-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rabbit
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 2.0.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 2.0.2
27
+ description: For rurema
28
+ email:
29
+ - okkez000@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - README.rd
35
+ - Rakefile
36
+ - config.yaml
37
+ - property.rb
38
+ - theme.rb
39
+ homepage: http://theme.rabbit-shocker.org/themes/rurema/
40
+ licenses:
41
+ - GPLv3+
42
+ - CC BY-SA 3.0
43
+ metadata: {}
44
+ post_install_message:
45
+ rdoc_options: []
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - '>='
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - '>='
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ requirements: []
59
+ rubyforge_project:
60
+ rubygems_version: 2.0.2
61
+ signing_key:
62
+ specification_version: 4
63
+ summary: rurema
64
+ test_files: []