ddollar-hanna 0.1.4

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.
@@ -0,0 +1,97 @@
1
+ - for section in values["sections"]
2
+ #section
3
+ - if section["sectitle"]
4
+ %h2= link_to section["sectitle"], section["secsequence"]
5
+ - if section["seccomment"]
6
+ .section-comment= section["seccomment"]
7
+ - if section["classlist"]
8
+ #class-list
9
+ %h3 Classes and Modules
10
+ = section["classlist"]
11
+
12
+ - if section["constants"]
13
+ #constants-list
14
+ %h3.section-bar Constants
15
+ .name-list
16
+ %table{ :summary => "Constants" }
17
+ - for const in section["constants"]
18
+ %tr.top-aligned-row.context-row
19
+ %td.context-item-name
20
+ = const["name"]
21
+ %td
22
+ \=
23
+ %td.context-item-value
24
+ = const["value"]
25
+ - if const["desc"] then
26
+ %td
27
+  
28
+ %td.context-item-desc
29
+ = const["desc"]
30
+
31
+ - if section["aliases"]
32
+ #aliases-list
33
+ %h3.section-bar External Aliases
34
+ .name-list
35
+ %table{ :summary => "aliases" }
36
+ - for alia in section["aliases"]
37
+ %tr.top-aligned-row.context-row
38
+ %td.context-item-name
39
+ = alia["old_name"]
40
+ %td
41
+ \->
42
+ %td.context-item-value
43
+ = alia["new_name"]
44
+ - if alia["desc"] then
45
+ %tr.top-aligned-row.context-row
46
+ %td
47
+  
48
+ %td.context-item-desc{ :colspan => "2" }
49
+ = alia["desc"]
50
+
51
+ - if section["attributes"]
52
+ #attribute-list
53
+ %h3.section-bar Attributes
54
+ .name-list
55
+ %table
56
+ - for attr in section["attributes"]
57
+ %tr.top-aligned-row.context-row
58
+ %td.context-item-name
59
+ = attr["name"]
60
+ - if attr["rw"] then
61
+ %td.context-item-value
62
+ = "[#{attr['rw']}]"
63
+ - else
64
+ %td.context-item-value  
65
+ %td.context-item-desc
66
+ = attr["a_desc"]
67
+
68
+ - if section["method_list"]
69
+ #methods
70
+ - for list in section["method_list"]
71
+ - if list["methods"] then
72
+ %h3== #{list["type"]} #{list["category"].downcase} methods
73
+
74
+ - for method in list["methods"]
75
+ .method{ :id => "method-#{method['aref']}", :class => "#{list['type']}-#{list['category']}".downcase }
76
+ %a{ :name => method["aref"] }
77
+ .synopsis
78
+ - method_html = capture_haml do
79
+ - if method["callseq"]
80
+ %span.name= method["callseq"]
81
+ - else
82
+ %span.name= method["name"]
83
+ %span.arguments= method["params"]
84
+ - if method["codeurl"]
85
+ %a.method-signature{ :href => method["codeurl"], :onclick => "popupCode(this.href); return false", :target => "Code" }
86
+ = method_html
87
+ - else
88
+ = method_html
89
+ - if method["m_desc"]
90
+ .description
91
+ ~ method["m_desc"]
92
+ - if method["sourcecode"]
93
+ .source
94
+ - name = "#{method['aref']}-source"
95
+ %a.source-toggle{ :href => "#", :onclick => "toggleCode('#{name}'); return false" }
96
+ [show source]
97
+ ~ "<pre id='#{name}'>#{method["sourcecode"]}</pre>"
@@ -0,0 +1,359 @@
1
+ !title_font = Georgia, serif
2
+ !code_font_family = Monaco, "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace
3
+ !code_font_size = 14px
4
+ !code_font = !code_font_size !code_font_family
5
+
6
+ !light_link = #369
7
+ !link = !light_link - 40
8
+ !light_text = #666
9
+ !dark_blue_text = #0E3062
10
+
11
+ html, body
12
+ :height 100%
13
+ body
14
+ :font-family Verdana, Arial, Helvetica, sans-serif
15
+ :font-size 90%
16
+ :margin 0
17
+ :padding 0
18
+ :background white
19
+ :color black
20
+
21
+ #wrapper
22
+ :min-height 100%
23
+ :height auto !important
24
+ :height 100%
25
+ :margin 0 auto -43px
26
+ #footer-push
27
+ :height 43px
28
+ div.header, #footer
29
+ :background #eee
30
+ #footer
31
+ :border-top 1px solid silver
32
+ :margin-top 12px
33
+ :padding 0 2em
34
+ :line-height 30px
35
+ :text-align center
36
+ :font-variant small-caps
37
+ :font-size 95%
38
+
39
+ // self-clearing
40
+ .clearing
41
+ &:after
42
+ :content "."
43
+ :visibility hidden
44
+ :height 0
45
+ :display block
46
+ :clear both
47
+ * html &
48
+ :height 1px
49
+ *:first-child + html
50
+ :overflow hidden
51
+
52
+ h1, h2, h3, h4, h5, h6
53
+ :margin 0
54
+ :font-weight normal
55
+
56
+ a
57
+ :color = !link
58
+ &:hover
59
+ :background = !light_link
60
+ :text-decoration none
61
+ :color #eef
62
+
63
+ #diagram
64
+ img
65
+ :border = 0
66
+
67
+ #description, .method .description, .header
68
+ a
69
+ :color = !light_link
70
+ &:hover
71
+ :color #eee
72
+ h1, h2, h3, h4, h5, h6
73
+ a
74
+ :color = !link
75
+
76
+ ol
77
+ :margin 0
78
+ :padding 0
79
+ :list-style none
80
+ li
81
+ :margin-left 0
82
+ :white-space nowrap
83
+ &.other
84
+ :display none
85
+ ol.expanded li.other
86
+ :display list-item
87
+
88
+ table
89
+ :margin-bottom 1em
90
+ :font-size 1em
91
+ :border-collapse collapse
92
+ td, th
93
+ :padding .4em .8em
94
+ thead
95
+ :background-color #e8e8e8
96
+ th
97
+ :font-variant small-caps
98
+ :color = !light_text
99
+ tr
100
+ :border-bottom 1px solid silver
101
+
102
+ #index, div.header
103
+ a.show
104
+ :text-decoration underline
105
+ :font-style italic
106
+ :color = !light_text
107
+ &:after
108
+ :content " ..."
109
+ &:hover
110
+ :color black
111
+ :background #ffe
112
+
113
+ #index
114
+ :font 85%/1.2 Arial, Helvetica, sans-serif
115
+ a
116
+ :text-decoration none
117
+ h1
118
+ :padding .2em .5em .1em
119
+ :background #ccc
120
+ :font = "small-caps 1.2em" !title_font
121
+ :color #333
122
+ :border-bottom 1px solid gray
123
+ form
124
+ :margin 0
125
+ :padding 0
126
+ input
127
+ :margin .4em
128
+ :margin-bottom 0
129
+ :width 90%
130
+ #search.untouched
131
+ :color #777777
132
+ ol
133
+ :padding .4em .5em
134
+ li
135
+ :white-space nowrap
136
+ #index-entries.classes
137
+ :font-size 1.1em
138
+ ol
139
+ :padding 0
140
+ span.nodoc
141
+ :display none
142
+ span.nodoc, a
143
+ :font-weight bold
144
+ .parent
145
+ :font-weight normal
146
+ #index-entries.methods, #search-results.methods
147
+ li
148
+ :margin-bottom 0.2em
149
+ a
150
+ .method_name
151
+ :margin-right 0.25em
152
+ .module_name
153
+ :color #666666
154
+
155
+ div.header
156
+ :font-size 80%
157
+ :padding .5em 2%
158
+ :font-family Arial, Helvetica, sans-serif
159
+ :border-bottom 1px solid silver
160
+ .name
161
+ :font-size 1.6em
162
+ :font-family = !title_font
163
+ .type
164
+ :color = !light_text
165
+ :font-size 80%
166
+ :font-variant small-caps
167
+ h1.name
168
+ :font-size 2.2em
169
+ .paths, .last-update, .parent
170
+ :color = !light_text
171
+ .last-update .datetime
172
+ :color = !light_text - 30
173
+ .parent
174
+ :margin-top .3em
175
+ strong
176
+ :font-weight normal
177
+ :color = !light_text - 30
178
+
179
+ #content
180
+ :padding 12px 2%
181
+ div.class &
182
+ :position relative
183
+ :width 72%
184
+
185
+ pre, .method .synopsis
186
+ :font = !code_font
187
+ pre
188
+ :color black
189
+ :background #eee
190
+ :border 1px solid silver
191
+ :padding 0 .5em .8em .5em
192
+ :overflow auto
193
+ p, li, dl
194
+ code, tt
195
+ :font = !code_font
196
+ :background #ffffe3
197
+ :padding 2px 3px
198
+ :line-height 1.4
199
+ h1, h2, h3, h4, h5, h6
200
+ code, tt
201
+ :font-size 1.1em
202
+
203
+ #text
204
+ :position relative
205
+
206
+ #description
207
+ // :max-width 60em
208
+ p
209
+ :margin-top .5em
210
+ h1, h2, h3, h4, h5, h6
211
+ :font-family = !title_font
212
+ h1
213
+ :font-size 2.2em
214
+ :margin-bottom .2em
215
+ :border-bottom 3px double #d8d8d8
216
+ :padding-bottom .1em
217
+ h2
218
+ :font-size 1.8em
219
+ :color = !dark_blue_text
220
+ :margin .8em 0 .3em 0
221
+ h3
222
+ :font-size 1.6em
223
+ :margin .8em 0 .3em 0
224
+ :color = !light_text
225
+ h4
226
+ :font-size 1.4em
227
+ :margin .8em 0 .3em 0
228
+ h5
229
+ :font-size 1.2em
230
+ :margin .8em 0 .3em 0
231
+ :color = !dark_blue_text
232
+ h6
233
+ :font-size 1.0em
234
+ :margin .8em 0 .3em 0
235
+ :color = !light_text
236
+
237
+ #description, .method .description
238
+ ul, ol
239
+ :margin .8em 0
240
+ :padding-left 1.5em
241
+ ol
242
+ :list-style decimal
243
+ li
244
+ :white-space normal
245
+
246
+ #method-list
247
+ :position absolute
248
+ :top 0px
249
+ :right -33%
250
+ :width 28%
251
+ :background #eee
252
+ :border 1px solid silver
253
+ :padding .4em 1%
254
+ :overflow hidden
255
+ h2
256
+ :font-size 1.3em
257
+ h3
258
+ :font-variant small-caps
259
+ :text-transform capitalize
260
+ :font-family = !title_font
261
+ :color #666
262
+ :font-size 1.1em
263
+ ol
264
+ :padding 0 0 .5em .5em
265
+
266
+ #context
267
+ :border-top 1px dashed silver
268
+ :margin-top 1em
269
+ :margin-bottom 1em
270
+ h2
271
+ :color #333
272
+ :font = "bold small-caps 1.3em" !title_font
273
+ :margin .5em 0 .1em 0
274
+
275
+ #section
276
+ h3
277
+ :margin-top 1em
278
+
279
+ #methods
280
+ h3
281
+ :font = "small-caps 1.2em" !title_font
282
+ :color #444
283
+ :margin 1em 0 .2em 0
284
+ h4
285
+ :font = "1.1em" !title_font
286
+ :color = !dark_blue_text
287
+ :margin 1em 0 .2em 0
288
+
289
+ .method
290
+ :border 1px solid silver
291
+ :margin-top .5em
292
+ :background #eee
293
+ .synopsis
294
+ :color black
295
+ :background silver
296
+ :padding .2em 1em
297
+ .name
298
+ :font-weight bold
299
+ a
300
+ :text-decoration none
301
+ .description
302
+ :padding 0 1em
303
+ pre
304
+ :background #f8f8f8
305
+ .source
306
+ :margin .5em 0
307
+ .source-toggle
308
+ :font-size 85%
309
+ :margin-left 1em
310
+ .public-class
311
+ :background #ffffe4
312
+ .public-instance .synopsis
313
+ :color #eee
314
+ :background = !light_link
315
+
316
+ #content .method .source pre
317
+ :background #262626
318
+ :color #ffdead
319
+ :margin 1em
320
+ :padding 0.5em
321
+ :border 1px dashed #999
322
+ :overflow auto
323
+
324
+ .ruby-constant
325
+ :color #7fffd4
326
+ :background transparent
327
+
328
+ .ruby-keyword
329
+ :color #00ffff
330
+ :background transparent
331
+
332
+ .ruby-ivar
333
+ :color #eedd82
334
+ :background transparent
335
+
336
+ .ruby-operator
337
+ :color #00ffee
338
+ :background transparent
339
+
340
+ .ruby-identifier
341
+ :color #ffdead
342
+ :background transparent
343
+
344
+ .ruby-node
345
+ :color #ffa07a
346
+ :background transparent
347
+
348
+ .ruby-comment
349
+ :color #b22222
350
+ :font-weight bold
351
+ :background transparent
352
+
353
+ .ruby-regexp
354
+ :color #ffa07a
355
+ :background transparent
356
+
357
+ .ruby-value
358
+ :color #7fffd4
359
+ :background transparent