rabbit-theme-nyankosakana 0.2.22
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rd +24 -0
- data/Rakefile +10 -0
- data/config.yaml +15 -0
- data/data/close-quote-sakana.png +0 -0
- data/data/mini-nyanko.png +0 -0
- data/data/mini-sakana.png +0 -0
- data/data/nyankosakana.png +0 -0
- data/data/open-quote-sakana.png +0 -0
- data/pdf/theme-benchmark-en.pdf +0 -0
- data/pdf/theme-benchmark-ja.pdf +0 -0
- data/theme.rb +123 -0
- metadata +73 -0
data/README.rd
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
= にゃんこさかな
|
2
|
+
|
3
|
+
にゃんことさかなのせめぎあい
|
4
|
+
|
5
|
+
== 作者向け
|
6
|
+
|
7
|
+
=== 表示
|
8
|
+
|
9
|
+
rake
|
10
|
+
|
11
|
+
=== 公開
|
12
|
+
|
13
|
+
rake publish
|
14
|
+
|
15
|
+
== 利用者用
|
16
|
+
|
17
|
+
=== インストール
|
18
|
+
|
19
|
+
gem install rabbit-theme-nyankosakana
|
20
|
+
|
21
|
+
=== 表示
|
22
|
+
|
23
|
+
rabbit -t rabbit-theme-nyankosakana 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
|
+
Rabbit::Task::Theme.new do |task|
|
6
|
+
# task.spec.licenses = ["CC BY-SA 3.0"]
|
7
|
+
# task.spec.files += Dir.glob("doc/**/*.*")
|
8
|
+
# task.spec.files -= Dir.glob("private/**/*.*")
|
9
|
+
# task.spec.add_runtime_dependency("DEPENDED THEME")
|
10
|
+
end
|
data/config.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
id: nyankosakana
|
3
|
+
tags:
|
4
|
+
- nyanko
|
5
|
+
- sakana
|
6
|
+
version: 0.2.22
|
7
|
+
licenses:
|
8
|
+
- CC BY-SA 3.0
|
9
|
+
author:
|
10
|
+
markup_language: :rd
|
11
|
+
name: Masafumi Yokoyama
|
12
|
+
email: myokoym@gmail.com
|
13
|
+
rubygems_user: myokoym
|
14
|
+
slideshare_user: myokoym
|
15
|
+
speaker_deck_user: myokoym
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/theme.rb
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
@font_family = find_font_family("ubuntu") || @font_family
|
2
|
+
|
3
|
+
base_color = "#ffde00"
|
4
|
+
base_dark_color = "#ffde00"
|
5
|
+
base_dark_background_color = "#c1d2f4"
|
6
|
+
base_background_color = "#ffffff"
|
7
|
+
|
8
|
+
set_graffiti_color("#{base_color}99")
|
9
|
+
set_graffiti_line_width(30)
|
10
|
+
|
11
|
+
set_progress_foreground(base_color)
|
12
|
+
set_progress_background(base_background_color)
|
13
|
+
|
14
|
+
@default_item1_mark_color = base_color
|
15
|
+
@default_item1_mark_type = "circle"
|
16
|
+
@default_item2_mark_color = base_color
|
17
|
+
@default_item2_mark_type = "circle"
|
18
|
+
@default_item3_mark_color = base_color
|
19
|
+
@default_item3_mark_type = "circle"
|
20
|
+
@default_enum_item1_mark_color = base_color
|
21
|
+
@default_enum_item1_mark_type = "circle"
|
22
|
+
@default_enum_item2_mark_color = base_color
|
23
|
+
@default_enum_item2_mark_type = "circle"
|
24
|
+
@default_description_item1_mark_color = base_color
|
25
|
+
@default_description_item1_mark_type = "circle"
|
26
|
+
@default_block_quote_item1_mark_color = base_color
|
27
|
+
@default_block_quote_item1_mark_type = "circle"
|
28
|
+
@description_term_line_color = base_color
|
29
|
+
|
30
|
+
@default_emphasis_color = base_dark_color
|
31
|
+
|
32
|
+
@preformatted_frame_color = base_color
|
33
|
+
@preformatted_fill_color = base_background_color
|
34
|
+
|
35
|
+
@block_quote_frame_color = base_color
|
36
|
+
@block_quote_fill_color = base_background_color
|
37
|
+
|
38
|
+
@table_frame_color = base_color
|
39
|
+
@table_fill_color = base_background_color
|
40
|
+
@table_body_frame_color = base_color
|
41
|
+
@table_body_fill_color = base_background_color
|
42
|
+
@table_head_frame_color = base_color
|
43
|
+
@table_head_fill_color = base_dark_background_color
|
44
|
+
|
45
|
+
add_image_path("rabbit-images")
|
46
|
+
@image_slide_number_image ||= "mini-nyanko.png"
|
47
|
+
@image_timer_image ||= "mini-sakana.png"
|
48
|
+
@image_slide_number_start_flag_color = base_color
|
49
|
+
@image_slide_number_goal_flag_color = base_dark_background_color
|
50
|
+
@block_quote_open_quote_image = "open-quote-sakana.png"
|
51
|
+
@block_quote_close_quote_image = "close-quote-sakana.png"
|
52
|
+
|
53
|
+
@block_quote_frame_width = 0
|
54
|
+
@block_quote_fill_color = "#fff0"
|
55
|
+
@block_quote_padding_left = 0
|
56
|
+
@block_quote_padding_right = 0
|
57
|
+
@block_quote_padding_top = 0
|
58
|
+
@block_quote_padding_bottom = 0
|
59
|
+
@block_quote_image_background_alpha = 0.3
|
60
|
+
@block_quote_image_frame = true
|
61
|
+
|
62
|
+
@margin_bottom = canvas.height * 0.05
|
63
|
+
|
64
|
+
include_theme("default")
|
65
|
+
|
66
|
+
@lightning_talk_proc_name = "lightning-nyankosakana"
|
67
|
+
@lightning_talk_as_large_as_possible = true
|
68
|
+
include_theme("lightning-talk-toolkit")
|
69
|
+
|
70
|
+
match(Slide) do |slides|
|
71
|
+
slides.each do |slide|
|
72
|
+
if slide.lightning_talk?
|
73
|
+
slide.lightning_talk
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
match(TitleSlide, "*") do |elements|
|
79
|
+
elements.horizontal_centering = false
|
80
|
+
elements.align = Pango::Layout::ALIGN_RIGHT
|
81
|
+
end
|
82
|
+
|
83
|
+
match(TitleSlide, Title) do |titles|
|
84
|
+
titles.padding_bottom = @space * 2
|
85
|
+
titles.align = Pango::Layout::ALIGN_LEFT
|
86
|
+
end
|
87
|
+
|
88
|
+
match(Slide, HeadLine) do |heads|
|
89
|
+
name = "head-line"
|
90
|
+
heads.delete_post_draw_proc_by_name(name)
|
91
|
+
|
92
|
+
heads.horizontal_centering = true
|
93
|
+
end
|
94
|
+
|
95
|
+
match(Slide, Body) do |bodies|
|
96
|
+
bodies.vertical_centering = true
|
97
|
+
bodies.each do |body|
|
98
|
+
next if body.elements.all? {|element| element.is_a?(Image)}
|
99
|
+
next if body.elements.any? {|element| element.is_a?(BlockQuote)}
|
100
|
+
next if body.elements.any? {|element| element.is_a?(PreformattedBlock)}
|
101
|
+
next if body.elements.any? {|element| element.is_a?(Table)}
|
102
|
+
body.margin_left = canvas.width * 0.05
|
103
|
+
body.margin_right = canvas.width * 0.05
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
match("**", BlockQuote) do |quotes|
|
108
|
+
quotes.each do |quote|
|
109
|
+
first_element = quote.elements.first
|
110
|
+
next unless first_element.is_a?(Paragraph)
|
111
|
+
first_element.indent = first_element.prop_get("size")
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
@slide_logo_image ||= "nyankosakana.png"
|
116
|
+
include_theme("slide-logo")
|
117
|
+
|
118
|
+
@icon_images = ["nyankosakana.png"]
|
119
|
+
include_theme("icon")
|
120
|
+
|
121
|
+
@slide_footer_info_left_text ||= canvas.title.gsub(/\n/, '')
|
122
|
+
@slide_footer_info_right_text ||= "Powered by Rabbit #{Rabbit::VERSION}"
|
123
|
+
include_theme("slide-footer-info")
|
metadata
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rabbit-theme-nyankosakana
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.22
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Masafumi Yokoyama
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-02-23 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rabbit
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.0.2
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.0.2
|
30
|
+
description: にゃんことさかなのせめぎあい
|
31
|
+
email:
|
32
|
+
- myokoym@gmail.com
|
33
|
+
executables: []
|
34
|
+
extensions: []
|
35
|
+
extra_rdoc_files: []
|
36
|
+
files:
|
37
|
+
- config.yaml
|
38
|
+
- Rakefile
|
39
|
+
- theme.rb
|
40
|
+
- README.rd
|
41
|
+
- data/close-quote-sakana.png
|
42
|
+
- data/nyankosakana.png
|
43
|
+
- data/mini-nyanko.png
|
44
|
+
- data/mini-sakana.png
|
45
|
+
- data/open-quote-sakana.png
|
46
|
+
- pdf/theme-benchmark-en.pdf
|
47
|
+
- pdf/theme-benchmark-ja.pdf
|
48
|
+
homepage: http://theme.rabbit-shocker.org/themes/nyankosakana/
|
49
|
+
licenses:
|
50
|
+
- CC BY-SA 3.0
|
51
|
+
post_install_message:
|
52
|
+
rdoc_options: []
|
53
|
+
require_paths:
|
54
|
+
- lib
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ! '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
requirements: []
|
68
|
+
rubyforge_project:
|
69
|
+
rubygems_version: 1.8.23
|
70
|
+
signing_key:
|
71
|
+
specification_version: 3
|
72
|
+
summary: にゃんこさかな
|
73
|
+
test_files: []
|