hanna-nouveau 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +1 -2
- data/VERSION +1 -1
- data/lib/hanna-nouveau/template_files/class_index.erb +4 -0
- data/lib/hanna-nouveau/template_files/file_index.erb +9 -0
- data/lib/hanna-nouveau/template_files/index.erb +15 -0
- data/lib/hanna-nouveau/template_files/layout.erb +34 -0
- data/lib/hanna-nouveau/template_files/method_index.erb +11 -0
- data/lib/hanna-nouveau/template_files/method_list.erb +58 -0
- data/lib/hanna-nouveau/template_files/method_search.js +41 -59
- data/lib/hanna-nouveau/template_files/page.erb +48 -0
- data/lib/hanna-nouveau/template_files/sections.erb +92 -0
- data/lib/hanna-nouveau/template_files/styles.css +4 -0
- data/lib/hanna-nouveau.rb +46 -45
- metadata +13 -31
- data/lib/hanna-nouveau/template_files/class_index.haml +0 -3
- data/lib/hanna-nouveau/template_files/file_index.haml +0 -12
- data/lib/hanna-nouveau/template_files/index.haml +0 -11
- data/lib/hanna-nouveau/template_files/layout.haml +0 -34
- data/lib/hanna-nouveau/template_files/method_index.haml +0 -13
- data/lib/hanna-nouveau/template_files/method_list.haml +0 -56
- data/lib/hanna-nouveau/template_files/page.haml +0 -48
- data/lib/hanna-nouveau/template_files/prototype-1.6.0.3.js +0 -4320
- data/lib/hanna-nouveau/template_files/sections.haml +0 -88
@@ -1,88 +0,0 @@
|
|
1
|
-
- unless values[:entry].classes_and_modules.empty?
|
2
|
-
#class-list
|
3
|
-
%h2 Classes and Modules
|
4
|
-
%ol
|
5
|
-
- (values[:entry].modules.sort + values[:entry].classes.sort).each do |mod|
|
6
|
-
%li= link_to mod.full_name, values[:entry].aref_to(mod.path)
|
7
|
-
|
8
|
-
- values[:sections].sort_by{|s, h| s.title.to_s}.each do |section, h|
|
9
|
-
- constants, attributes, alias_types, method_types = h.values_at(:constants, :attributes, :alias_types, :method_types)
|
10
|
-
#section
|
11
|
-
- if section.title.to_s != ''
|
12
|
-
%h2
|
13
|
-
%a{ :name =>section.aref }= section.title
|
14
|
-
- if section.comment
|
15
|
-
.section-comment= section.description
|
16
|
-
|
17
|
-
- unless constants.empty?
|
18
|
-
#constants-list
|
19
|
-
%h2 Constants
|
20
|
-
.name-list
|
21
|
-
%table{ :summary => "Constants" }
|
22
|
-
- constants.each do |const|
|
23
|
-
%tr.top-aligned-row.context-row
|
24
|
-
%td.context-item-name= const.name
|
25
|
-
%td =
|
26
|
-
%td.context-item-value= const.value
|
27
|
-
- if const.description then
|
28
|
-
%td
|
29
|
-
%td.context-item-desc= const.description
|
30
|
-
|
31
|
-
- unless alias_types.empty?
|
32
|
-
- alias_types.each do |type, aliases|
|
33
|
-
#aliases-list
|
34
|
-
%h2 #{type} Aliases
|
35
|
-
.name-list
|
36
|
-
%table{ :summary => "#{type} Aliases" }
|
37
|
-
- aliases.each do |alia|
|
38
|
-
%tr.top-aligned-row.context-row
|
39
|
-
%td.context-item-name= alia.name
|
40
|
-
%td ->
|
41
|
-
%td.context-item-value= link_to alia.is_alias_for.name, "##{alia.is_alias_for.aref}"
|
42
|
-
- unless alia.description.empty?
|
43
|
-
%td.context-item-desc= alia.description
|
44
|
-
|
45
|
-
- unless attributes.empty?
|
46
|
-
#attribute-list
|
47
|
-
%h2.section-bar Attributes
|
48
|
-
.name-list
|
49
|
-
%table
|
50
|
-
- attributes.each do |attrib|
|
51
|
-
%tr.top-aligned-row.context-row
|
52
|
-
%td.context-item-name
|
53
|
-
%a{:name => attrib.aref}=attrib.name
|
54
|
-
%td.context-item-value= attrib.rw ? "[#{attrib.rw}]" : ' '
|
55
|
-
%td.context-item-desc~ sanitize_code_blocks(attrib.description)
|
56
|
-
|
57
|
-
- unless method_types.empty?
|
58
|
-
#methods
|
59
|
-
- method_types.each do |type, list|
|
60
|
-
- unless list.empty?
|
61
|
-
%h2== #{type} methods
|
62
|
-
|
63
|
-
- list.each do |method|
|
64
|
-
.method{ :id => "method-#{method.aref}", :class => "#{type.gsub(/\s+/, '-')}".downcase }
|
65
|
-
%a{ :name => method.aref }
|
66
|
-
.synopsis
|
67
|
-
- method_html = capture_haml do
|
68
|
-
- if method.call_seq
|
69
|
-
%span.name
|
70
|
-
- method.call_seq.split(/\r?\n/).each do |seq|
|
71
|
-
%div=seq
|
72
|
-
- else
|
73
|
-
%span.name>= method.name
|
74
|
-
%span.arguments= method.params
|
75
|
-
-#- if method[:codeurl]
|
76
|
-
-#%a.method-signature{ :href => method[:codeurl], :onclick => "popupCode(this.href); return false", :target => "Code" }
|
77
|
-
-#= method_html
|
78
|
-
-#- else
|
79
|
-
= method_html
|
80
|
-
- if method.description
|
81
|
-
.description
|
82
|
-
~ sanitize_code_blocks method.description
|
83
|
-
- if method.markup_code
|
84
|
-
.source
|
85
|
-
- name = "#{method.aref}-source"
|
86
|
-
%a.source-toggle{ :href => "#", :onclick => "toggleCode('#{name}'); return false" }
|
87
|
-
[show source]
|
88
|
-
~ "<pre id='#{name}'>#{method.markup_code}</pre>"
|