gitlab-rdoc 6.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. checksums.yaml +7 -0
  2. data/CONTRIBUTING.rdoc +220 -0
  3. data/CVE-2013-0256.rdoc +49 -0
  4. data/ExampleMarkdown.md +37 -0
  5. data/ExampleRDoc.rdoc +208 -0
  6. data/Gemfile +12 -0
  7. data/History.rdoc +1666 -0
  8. data/LEGAL.rdoc +50 -0
  9. data/LICENSE.rdoc +57 -0
  10. data/README.rdoc +133 -0
  11. data/RI.rdoc +57 -0
  12. data/Rakefile +101 -0
  13. data/TODO.rdoc +59 -0
  14. data/bin/console +7 -0
  15. data/bin/setup +6 -0
  16. data/exe/rdoc +44 -0
  17. data/exe/ri +12 -0
  18. data/lib/rdoc/alias.rb +112 -0
  19. data/lib/rdoc/anon_class.rb +11 -0
  20. data/lib/rdoc/any_method.rb +361 -0
  21. data/lib/rdoc/attr.rb +176 -0
  22. data/lib/rdoc/class_module.rb +802 -0
  23. data/lib/rdoc/code_object.rb +421 -0
  24. data/lib/rdoc/code_objects.rb +6 -0
  25. data/lib/rdoc/comment.rb +250 -0
  26. data/lib/rdoc/constant.rb +187 -0
  27. data/lib/rdoc/context/section.rb +232 -0
  28. data/lib/rdoc/context.rb +1266 -0
  29. data/lib/rdoc/cross_reference.rb +202 -0
  30. data/lib/rdoc/encoding.rb +136 -0
  31. data/lib/rdoc/erb_partial.rb +19 -0
  32. data/lib/rdoc/erbio.rb +42 -0
  33. data/lib/rdoc/extend.rb +10 -0
  34. data/lib/rdoc/generator/darkfish.rb +790 -0
  35. data/lib/rdoc/generator/json_index.rb +300 -0
  36. data/lib/rdoc/generator/markup.rb +160 -0
  37. data/lib/rdoc/generator/pot/message_extractor.rb +68 -0
  38. data/lib/rdoc/generator/pot/po.rb +84 -0
  39. data/lib/rdoc/generator/pot/po_entry.rb +141 -0
  40. data/lib/rdoc/generator/pot.rb +98 -0
  41. data/lib/rdoc/generator/ri.rb +31 -0
  42. data/lib/rdoc/generator/template/darkfish/.document +0 -0
  43. data/lib/rdoc/generator/template/darkfish/_footer.rhtml +5 -0
  44. data/lib/rdoc/generator/template/darkfish/_head.rhtml +22 -0
  45. data/lib/rdoc/generator/template/darkfish/_sidebar_VCS_info.rhtml +19 -0
  46. data/lib/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +9 -0
  47. data/lib/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +15 -0
  48. data/lib/rdoc/generator/template/darkfish/_sidebar_in_files.rhtml +9 -0
  49. data/lib/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +15 -0
  50. data/lib/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +15 -0
  51. data/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +12 -0
  52. data/lib/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +11 -0
  53. data/lib/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +12 -0
  54. data/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +11 -0
  55. data/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml +14 -0
  56. data/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +11 -0
  57. data/lib/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +18 -0
  58. data/lib/rdoc/generator/template/darkfish/class.rhtml +172 -0
  59. data/lib/rdoc/generator/template/darkfish/css/fonts.css +167 -0
  60. data/lib/rdoc/generator/template/darkfish/css/rdoc.css +639 -0
  61. data/lib/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf +0 -0
  62. data/lib/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf +0 -0
  63. data/lib/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf +0 -0
  64. data/lib/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf +0 -0
  65. data/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf +0 -0
  66. data/lib/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf +0 -0
  67. data/lib/rdoc/generator/template/darkfish/images/add.png +0 -0
  68. data/lib/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
  69. data/lib/rdoc/generator/template/darkfish/images/brick.png +0 -0
  70. data/lib/rdoc/generator/template/darkfish/images/brick_link.png +0 -0
  71. data/lib/rdoc/generator/template/darkfish/images/bug.png +0 -0
  72. data/lib/rdoc/generator/template/darkfish/images/bullet_black.png +0 -0
  73. data/lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png +0 -0
  74. data/lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png +0 -0
  75. data/lib/rdoc/generator/template/darkfish/images/date.png +0 -0
  76. data/lib/rdoc/generator/template/darkfish/images/delete.png +0 -0
  77. data/lib/rdoc/generator/template/darkfish/images/find.png +0 -0
  78. data/lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif +0 -0
  79. data/lib/rdoc/generator/template/darkfish/images/macFFBgHack.png +0 -0
  80. data/lib/rdoc/generator/template/darkfish/images/package.png +0 -0
  81. data/lib/rdoc/generator/template/darkfish/images/page_green.png +0 -0
  82. data/lib/rdoc/generator/template/darkfish/images/page_white_text.png +0 -0
  83. data/lib/rdoc/generator/template/darkfish/images/page_white_width.png +0 -0
  84. data/lib/rdoc/generator/template/darkfish/images/plugin.png +0 -0
  85. data/lib/rdoc/generator/template/darkfish/images/ruby.png +0 -0
  86. data/lib/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
  87. data/lib/rdoc/generator/template/darkfish/images/tag_green.png +0 -0
  88. data/lib/rdoc/generator/template/darkfish/images/transparent.png +0 -0
  89. data/lib/rdoc/generator/template/darkfish/images/wrench.png +0 -0
  90. data/lib/rdoc/generator/template/darkfish/images/wrench_orange.png +0 -0
  91. data/lib/rdoc/generator/template/darkfish/images/zoom.png +0 -0
  92. data/lib/rdoc/generator/template/darkfish/index.rhtml +22 -0
  93. data/lib/rdoc/generator/template/darkfish/js/darkfish.js +84 -0
  94. data/lib/rdoc/generator/template/darkfish/js/search.js +110 -0
  95. data/lib/rdoc/generator/template/darkfish/page.rhtml +18 -0
  96. data/lib/rdoc/generator/template/darkfish/servlet_not_found.rhtml +18 -0
  97. data/lib/rdoc/generator/template/darkfish/servlet_root.rhtml +62 -0
  98. data/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +58 -0
  99. data/lib/rdoc/generator/template/json_index/.document +1 -0
  100. data/lib/rdoc/generator/template/json_index/js/navigation.js +105 -0
  101. data/lib/rdoc/generator/template/json_index/js/searcher.js +229 -0
  102. data/lib/rdoc/generator.rb +51 -0
  103. data/lib/rdoc/ghost_method.rb +7 -0
  104. data/lib/rdoc/i18n/locale.rb +102 -0
  105. data/lib/rdoc/i18n/text.rb +126 -0
  106. data/lib/rdoc/i18n.rb +10 -0
  107. data/lib/rdoc/include.rb +10 -0
  108. data/lib/rdoc/known_classes.rb +73 -0
  109. data/lib/rdoc/markdown/entities.rb +2132 -0
  110. data/lib/rdoc/markdown/literals.kpeg +23 -0
  111. data/lib/rdoc/markdown/literals.rb +417 -0
  112. data/lib/rdoc/markdown.kpeg +1237 -0
  113. data/lib/rdoc/markdown.rb +16685 -0
  114. data/lib/rdoc/markup/attr_changer.rb +23 -0
  115. data/lib/rdoc/markup/attr_span.rb +36 -0
  116. data/lib/rdoc/markup/attribute_manager.rb +409 -0
  117. data/lib/rdoc/markup/attributes.rb +71 -0
  118. data/lib/rdoc/markup/blank_line.rb +28 -0
  119. data/lib/rdoc/markup/block_quote.rb +15 -0
  120. data/lib/rdoc/markup/document.rb +165 -0
  121. data/lib/rdoc/markup/formatter.rb +266 -0
  122. data/lib/rdoc/markup/hard_break.rb +32 -0
  123. data/lib/rdoc/markup/heading.rb +79 -0
  124. data/lib/rdoc/markup/include.rb +43 -0
  125. data/lib/rdoc/markup/indented_paragraph.rb +48 -0
  126. data/lib/rdoc/markup/list.rb +102 -0
  127. data/lib/rdoc/markup/list_item.rb +100 -0
  128. data/lib/rdoc/markup/paragraph.rb +29 -0
  129. data/lib/rdoc/markup/parser.rb +575 -0
  130. data/lib/rdoc/markup/pre_process.rb +296 -0
  131. data/lib/rdoc/markup/raw.rb +70 -0
  132. data/lib/rdoc/markup/regexp_handling.rb +41 -0
  133. data/lib/rdoc/markup/rule.rb +21 -0
  134. data/lib/rdoc/markup/table.rb +47 -0
  135. data/lib/rdoc/markup/to_ansi.rb +94 -0
  136. data/lib/rdoc/markup/to_bs.rb +77 -0
  137. data/lib/rdoc/markup/to_html.rb +444 -0
  138. data/lib/rdoc/markup/to_html_crossref.rb +176 -0
  139. data/lib/rdoc/markup/to_html_snippet.rb +285 -0
  140. data/lib/rdoc/markup/to_joined_paragraph.rb +47 -0
  141. data/lib/rdoc/markup/to_label.rb +75 -0
  142. data/lib/rdoc/markup/to_markdown.rb +192 -0
  143. data/lib/rdoc/markup/to_rdoc.rb +362 -0
  144. data/lib/rdoc/markup/to_table_of_contents.rb +89 -0
  145. data/lib/rdoc/markup/to_test.rb +70 -0
  146. data/lib/rdoc/markup/to_tt_only.rb +121 -0
  147. data/lib/rdoc/markup/verbatim.rb +84 -0
  148. data/lib/rdoc/markup.rb +867 -0
  149. data/lib/rdoc/meta_method.rb +7 -0
  150. data/lib/rdoc/method_attr.rb +419 -0
  151. data/lib/rdoc/mixin.rb +121 -0
  152. data/lib/rdoc/normal_class.rb +93 -0
  153. data/lib/rdoc/normal_module.rb +74 -0
  154. data/lib/rdoc/options.rb +1285 -0
  155. data/lib/rdoc/parser/c.rb +1225 -0
  156. data/lib/rdoc/parser/changelog.rb +335 -0
  157. data/lib/rdoc/parser/markdown.rb +24 -0
  158. data/lib/rdoc/parser/rd.rb +23 -0
  159. data/lib/rdoc/parser/ripper_state_lex.rb +590 -0
  160. data/lib/rdoc/parser/ruby.rb +2327 -0
  161. data/lib/rdoc/parser/ruby_tools.rb +167 -0
  162. data/lib/rdoc/parser/simple.rb +61 -0
  163. data/lib/rdoc/parser/text.rb +12 -0
  164. data/lib/rdoc/parser.rb +277 -0
  165. data/lib/rdoc/rd/block_parser.rb +1056 -0
  166. data/lib/rdoc/rd/block_parser.ry +639 -0
  167. data/lib/rdoc/rd/inline.rb +72 -0
  168. data/lib/rdoc/rd/inline_parser.rb +1208 -0
  169. data/lib/rdoc/rd/inline_parser.ry +593 -0
  170. data/lib/rdoc/rd.rb +100 -0
  171. data/lib/rdoc/rdoc.rb +579 -0
  172. data/lib/rdoc/require.rb +52 -0
  173. data/lib/rdoc/ri/driver.rb +1572 -0
  174. data/lib/rdoc/ri/formatter.rb +6 -0
  175. data/lib/rdoc/ri/paths.rb +171 -0
  176. data/lib/rdoc/ri/store.rb +7 -0
  177. data/lib/rdoc/ri/task.rb +71 -0
  178. data/lib/rdoc/ri.rb +21 -0
  179. data/lib/rdoc/rubygems_hook.rb +246 -0
  180. data/lib/rdoc/servlet.rb +451 -0
  181. data/lib/rdoc/single_class.rb +26 -0
  182. data/lib/rdoc/stats/normal.rb +58 -0
  183. data/lib/rdoc/stats/quiet.rb +60 -0
  184. data/lib/rdoc/stats/verbose.rb +46 -0
  185. data/lib/rdoc/stats.rb +462 -0
  186. data/lib/rdoc/store.rb +979 -0
  187. data/lib/rdoc/task.rb +329 -0
  188. data/lib/rdoc/text.rb +304 -0
  189. data/lib/rdoc/token_stream.rb +119 -0
  190. data/lib/rdoc/tom_doc.rb +263 -0
  191. data/lib/rdoc/top_level.rb +289 -0
  192. data/lib/rdoc/version.rb +8 -0
  193. data/lib/rdoc.rb +201 -0
  194. data/man/ri.1 +247 -0
  195. data/rdoc.gemspec +249 -0
  196. metadata +279 -0
@@ -0,0 +1,19 @@
1
+ <%- if !svninfo.empty? then %>
2
+ <div id="file-svninfo-section" class="nav-section">
3
+ <h3>VCS Info</h3>
4
+
5
+ <div class="section-body">
6
+ <dl class="svninfo">
7
+ <dt>Rev
8
+ <dd><%= svninfo[:rev] %>
9
+
10
+ <dt>Last Checked In
11
+ <dd><%= svninfo[:commitdate].strftime('%Y-%m-%d %H:%M:%S') %>
12
+ (<%= svninfo[:commitdelta] %> ago)
13
+
14
+ <dt>Checked in by
15
+ <dd><%= svninfo[:committer] %>
16
+ </dl>
17
+ </div>
18
+ </div>
19
+ <%- end -%>
@@ -0,0 +1,9 @@
1
+ <div id="classindex-section" class="nav-section">
2
+ <h3>Class and Module Index</h3>
3
+
4
+ <ul class="link-list">
5
+ <%- @modsort.each do |index_klass| -%>
6
+ <li><a href="<%= rel_prefix %>/<%= index_klass.path %>"><%= index_klass.full_name %></a>
7
+ <%- end -%>
8
+ </ul>
9
+ </div>
@@ -0,0 +1,15 @@
1
+ <%- unless klass.extends.empty? then %>
2
+ <div id="extends-section" class="nav-section">
3
+ <h3>Extended With Modules</h3>
4
+
5
+ <ul class="link-list">
6
+ <%- klass.each_extend do |ext| -%>
7
+ <%- unless String === ext.module then -%>
8
+ <li><a class="extend" href="<%= klass.aref_to ext.module.path %>"><%= ext.module.full_name %></a>
9
+ <%- else -%>
10
+ <li><span class="extend"><%= ext.name %></span>
11
+ <%- end -%>
12
+ <%- end -%>
13
+ </ul>
14
+ </div>
15
+ <%- end -%>
@@ -0,0 +1,9 @@
1
+ <div id="file-list-section" class="nav-section">
2
+ <h3>Defined In</h3>
3
+
4
+ <ul>
5
+ <%- klass.in_files.each do |tl| -%>
6
+ <li><%= h tl.relative_name %>
7
+ <%- end -%>
8
+ </ul>
9
+ </div>
@@ -0,0 +1,15 @@
1
+ <%- unless klass.includes.empty? then %>
2
+ <div id="includes-section" class="nav-section">
3
+ <h3>Included Modules</h3>
4
+
5
+ <ul class="link-list">
6
+ <%- klass.each_include do |inc| -%>
7
+ <%- unless String === inc.module then -%>
8
+ <li><a class="include" href="<%= klass.aref_to inc.module.path %>"><%= inc.module.full_name %></a>
9
+ <%- else -%>
10
+ <li><span class="include"><%= inc.name %></span>
11
+ <%- end -%>
12
+ <%- end -%>
13
+ </ul>
14
+ </div>
15
+ <%- end -%>
@@ -0,0 +1,15 @@
1
+ <div id="home-section" class="nav-section">
2
+ <h3>Documentation</h3>
3
+
4
+ <ul>
5
+ <%- installed.each do |name, href, exists, type, _| -%>
6
+ <%- next if type == :extra -%>
7
+ <li class="folder">
8
+ <%- if exists then -%>
9
+ <a href="<%= href %>"><%= h name %></a>
10
+ <%- else -%>
11
+ <%= h name %>
12
+ <%- end -%>
13
+ <%- end -%>
14
+ </ul>
15
+ </div>
@@ -0,0 +1,12 @@
1
+ <%- unless klass.method_list.empty? then %>
2
+ <!-- Method Quickref -->
3
+ <div id="method-list-section" class="nav-section">
4
+ <h3>Methods</h3>
5
+
6
+ <ul class="link-list" role="directory">
7
+ <%- klass.each_method do |meth| -%>
8
+ <li <%- if meth.calls_super %>class="calls-super" <%- end %>><a href="#<%= meth.aref %>"><%= meth.singleton ? '::' : '#' %><%= h meth.name -%></a>
9
+ <%- end -%>
10
+ </ul>
11
+ </div>
12
+ <%- end -%>
@@ -0,0 +1,11 @@
1
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
2
+ <h2>
3
+ <a href="<%= rel_prefix %>/index.html" rel="home">Home</a>
4
+ </h2>
5
+
6
+ <div id="table-of-contents-navigation">
7
+ <a href="<%= rel_prefix %>/table_of_contents.html#pages">Pages</a>
8
+ <a href="<%= rel_prefix %>/table_of_contents.html#classes">Classes</a>
9
+ <a href="<%= rel_prefix %>/table_of_contents.html#methods">Methods</a>
10
+ </div>
11
+ </div>
@@ -0,0 +1,12 @@
1
+ <%- simple_files = @files.select { |f| f.text? } %>
2
+ <%- unless simple_files.empty? then -%>
3
+ <div id="fileindex-section" class="nav-section">
4
+ <h3>Pages</h3>
5
+
6
+ <ul class="link-list">
7
+ <%- simple_files.each do |f| -%>
8
+ <li><a href="<%= rel_prefix %>/<%= f.path %>"><%= h f.page_name %></a>
9
+ <%- end -%>
10
+ </ul>
11
+ </div>
12
+ <%- end -%>
@@ -0,0 +1,11 @@
1
+ <%- if klass.type == 'class' then %>
2
+ <div id="parent-class-section" class="nav-section">
3
+ <h3>Parent</h3>
4
+
5
+ <%- if klass.superclass and not String === klass.superclass then -%>
6
+ <p class="link"><a href="<%= klass.aref_to klass.superclass.path %>"><%= klass.superclass.full_name %></a>
7
+ <%- else -%>
8
+ <p class="link"><%= klass.superclass %>
9
+ <%- end -%>
10
+ </div>
11
+ <%- end -%>
@@ -0,0 +1,14 @@
1
+ <div id="search-section" role="search" class="project-section initially-hidden">
2
+ <form action="#" method="get" accept-charset="utf-8">
3
+ <div id="search-field-wrapper">
4
+ <input id="search-field" role="combobox" aria-label="Search"
5
+ aria-autocomplete="list" aria-controls="search-results"
6
+ type="text" name="search" placeholder="Search" spellcheck="false"
7
+ title="Type to search, Up and Down to navigate, Enter to load">
8
+ </div>
9
+
10
+ <ul id="search-results" aria-label="Search Results"
11
+ aria-busy="false" aria-expanded="false"
12
+ aria-atomic="false" class="initially-hidden"></ul>
13
+ </form>
14
+ </div>
@@ -0,0 +1,11 @@
1
+ <%- unless klass.sections.length == 1 then %>
2
+ <div id="sections-section" class="nav-section">
3
+ <h3>Sections</h3>
4
+
5
+ <ul class="link-list" role="directory">
6
+ <%- klass.sort_sections.each do |section| -%>
7
+ <li><a href="#<%= section.aref %>"><%= h section.title %></a></li>
8
+ <%- end -%>
9
+ </ul>
10
+ </div>
11
+ <%- end -%>
@@ -0,0 +1,18 @@
1
+ <%- comment = if current.respond_to? :comment_location then
2
+ current.comment_location
3
+ else
4
+ current.comment
5
+ end
6
+ table = current.parse(comment).table_of_contents
7
+
8
+ if table.length > 1 then %>
9
+ <div class="nav-section">
10
+ <h3>Table of Contents</h3>
11
+
12
+ <ul class="link-list" role="directory">
13
+ <%- table.each do |heading| -%>
14
+ <li><a href="#<%= heading.label current %>"><%= heading.plain_html %></a>
15
+ <%- end -%>
16
+ </ul>
17
+ </div>
18
+ <%- end -%>
@@ -0,0 +1,172 @@
1
+ <body id="top" role="document" class="<%= klass.type %>">
2
+ <nav role="navigation">
3
+ <div id="project-navigation">
4
+ <%= render '_sidebar_navigation.rhtml' %>
5
+ <%= render '_sidebar_search.rhtml' %>
6
+ </div>
7
+
8
+ <%= render '_sidebar_table_of_contents.rhtml' %>
9
+
10
+ <div id="class-metadata">
11
+ <%= render '_sidebar_sections.rhtml' %>
12
+ <%= render '_sidebar_parent.rhtml' %>
13
+ <%= render '_sidebar_includes.rhtml' %>
14
+ <%= render '_sidebar_extends.rhtml' %>
15
+ <%= render '_sidebar_methods.rhtml' %>
16
+ </div>
17
+ </nav>
18
+
19
+ <main role="main" aria-labelledby="<%=h klass.aref %>">
20
+ <h1 id="<%=h klass.aref %>" class="<%= klass.type %>">
21
+ <%= klass.type %> <%= klass.full_name %>
22
+ </h1>
23
+
24
+ <section class="description">
25
+ <%= klass.description %>
26
+ </section>
27
+
28
+ <%- klass.each_section do |section, constants, attributes| -%>
29
+ <section id="<%= section.aref %>" class="documentation-section">
30
+ <%- if section.title then -%>
31
+ <header class="documentation-section-title">
32
+ <h2>
33
+ <%= section.title %>
34
+ </h2>
35
+ <span class="section-click-top">
36
+ <a href="#top">&uarr; top</a>
37
+ </span>
38
+ </header>
39
+ <%- end -%>
40
+
41
+ <%- if section.comment then -%>
42
+ <div>
43
+ <%= section.description %>
44
+ </div>
45
+ <%- end -%>
46
+
47
+ <%- unless constants.empty? then -%>
48
+ <section class="constants-list">
49
+ <header>
50
+ <h3>Constants</h3>
51
+ </header>
52
+ <dl>
53
+ <%- constants.each do |const| -%>
54
+ <dt id="<%= const.name %>"><%= const.name %>
55
+ <%- if const.comment then -%>
56
+ <dd><%= const.description.strip %>
57
+ <%- else -%>
58
+ <dd class="missing-docs">(Not documented)
59
+ <%- end -%>
60
+ <%- end -%>
61
+ </dl>
62
+ </section>
63
+ <%- end -%>
64
+
65
+ <%- unless attributes.empty? then -%>
66
+ <section class="attribute-method-details" class="method-section">
67
+ <header>
68
+ <h3>Attributes</h3>
69
+ </header>
70
+
71
+ <%- attributes.each do |attrib| -%>
72
+ <div id="<%= attrib.aref %>" class="method-detail">
73
+ <div class="method-heading attribute-method-heading">
74
+ <span class="method-name"><%= h attrib.name %></span><span
75
+ class="attribute-access-type">[<%= attrib.rw %>]</span>
76
+ </div>
77
+
78
+ <div class="method-description">
79
+ <%- if attrib.comment then -%>
80
+ <%= attrib.description.strip %>
81
+ <%- else -%>
82
+ <p class="missing-docs">(Not documented)
83
+ <%- end -%>
84
+ </div>
85
+ </div>
86
+ <%- end -%>
87
+ </section>
88
+ <%- end -%>
89
+
90
+ <%- klass.methods_by_type(section).each do |type, visibilities|
91
+ next if visibilities.empty?
92
+ visibilities.each do |visibility, methods|
93
+ next if methods.empty? %>
94
+ <section id="<%= visibility %>-<%= type %>-<%= section.aref %>-method-details" class="method-section">
95
+ <header>
96
+ <h3><%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods</h3>
97
+ </header>
98
+
99
+ <%- methods.each do |method| -%>
100
+ <div id="<%= method.aref %>" class="method-detail <%= method.is_alias_for ? "method-alias" : '' %>">
101
+ <%- if (call_seq = method.call_seq) then -%>
102
+ <%- call_seq.strip.split("\n").each_with_index do |call_seq, i| -%>
103
+ <div class="method-heading">
104
+ <span class="method-callseq">
105
+ <%= h(call_seq.strip.
106
+ gsub( /^\w+\./m, '')).
107
+ gsub(/(.*)[-=]&gt;/, '\1&rarr;') %>
108
+ </span>
109
+ <%- if i == 0 and method.token_stream then -%>
110
+ <span class="method-click-advice">click to toggle source</span>
111
+ <%- end -%>
112
+ </div>
113
+ <%- end -%>
114
+ <%- else -%>
115
+ <div class="method-heading">
116
+ <span class="method-name"><%= h method.name %></span><span
117
+ class="method-args"><%= h method.param_seq %></span>
118
+ <%- if method.token_stream then -%>
119
+ <span class="method-click-advice">click to toggle source</span>
120
+ <%- end -%>
121
+ </div>
122
+ <%- end -%>
123
+
124
+ <div class="method-description">
125
+ <%- if method.comment then -%>
126
+ <%= method.description.strip %>
127
+ <%- else -%>
128
+ <p class="missing-docs">(Not documented)
129
+ <%- end -%>
130
+ <%- if method.calls_super then -%>
131
+ <div class="method-calls-super">
132
+ Calls superclass method
133
+ <%=
134
+ method.superclass_method ?
135
+ method.formatter.link(method.superclass_method.full_name, method.superclass_method.full_name) : nil
136
+ %>
137
+ </div>
138
+ <%- end -%>
139
+
140
+ <%- if method.token_stream then -%>
141
+ <div class="method-source-code" id="<%= method.html_name %>-source">
142
+ <pre><%= method.markup_code %></pre>
143
+ </div>
144
+ <%- end -%>
145
+ </div>
146
+
147
+ <%- unless method.aliases.empty? then -%>
148
+ <div class="aliases">
149
+ Also aliased as: <%= method.aliases.map do |aka|
150
+ if aka.parent then # HACK lib/rexml/encodings
151
+ %{<a href="#{klass.aref_to aka.path}">#{h aka.name}</a>}
152
+ else
153
+ h aka.name
154
+ end
155
+ end.join ", " %>
156
+ </div>
157
+ <%- end -%>
158
+
159
+ <%- if method.is_alias_for then -%>
160
+ <div class="aliases">
161
+ Alias for: <a href="<%= klass.aref_to method.is_alias_for.path %>"><%= h method.is_alias_for.name %></a>
162
+ </div>
163
+ <%- end -%>
164
+ </div>
165
+
166
+ <%- end -%>
167
+ </section>
168
+ <%- end
169
+ end %>
170
+ </section>
171
+ <%- end -%>
172
+ </main>
@@ -0,0 +1,167 @@
1
+ /*
2
+ * Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/),
3
+ * with Reserved Font Name "Source". All Rights Reserved. Source is a
4
+ * trademark of Adobe Systems Incorporated in the United States and/or other
5
+ * countries.
6
+ *
7
+ * This Font Software is licensed under the SIL Open Font License, Version
8
+ * 1.1.
9
+ *
10
+ * This license is copied below, and is also available with a FAQ at:
11
+ * http://scripts.sil.org/OFL
12
+ */
13
+
14
+ @font-face {
15
+ font-family: "Source Code Pro";
16
+ font-style: normal;
17
+ font-weight: 400;
18
+ src: local("Source Code Pro"),
19
+ local("SourceCodePro-Regular"),
20
+ url("../fonts/SourceCodePro-Regular.ttf") format("truetype");
21
+ }
22
+
23
+ @font-face {
24
+ font-family: "Source Code Pro";
25
+ font-style: normal;
26
+ font-weight: 700;
27
+ src: local("Source Code Pro Bold"),
28
+ local("SourceCodePro-Bold"),
29
+ url("../fonts/SourceCodePro-Bold.ttf") format("truetype");
30
+ }
31
+
32
+ /*
33
+ * Copyright (c) 2010, Łukasz Dziedzic (dziedzic@typoland.com),
34
+ * with Reserved Font Name Lato.
35
+ *
36
+ * This Font Software is licensed under the SIL Open Font License, Version
37
+ * 1.1.
38
+ *
39
+ * This license is copied below, and is also available with a FAQ at:
40
+ * http://scripts.sil.org/OFL
41
+ */
42
+
43
+ @font-face {
44
+ font-family: "Lato";
45
+ font-style: normal;
46
+ font-weight: 300;
47
+ src: local("Lato Light"),
48
+ local("Lato-Light"),
49
+ url("../fonts/Lato-Light.ttf") format("truetype");
50
+ }
51
+
52
+ @font-face {
53
+ font-family: "Lato";
54
+ font-style: italic;
55
+ font-weight: 300;
56
+ src: local("Lato Light Italic"),
57
+ local("Lato-LightItalic"),
58
+ url("../fonts/Lato-LightItalic.ttf") format("truetype");
59
+ }
60
+
61
+ @font-face {
62
+ font-family: "Lato";
63
+ font-style: normal;
64
+ font-weight: 700;
65
+ src: local("Lato Regular"),
66
+ local("Lato-Regular"),
67
+ url("../fonts/Lato-Regular.ttf") format("truetype");
68
+ }
69
+
70
+ @font-face {
71
+ font-family: "Lato";
72
+ font-style: italic;
73
+ font-weight: 700;
74
+ src: local("Lato Italic"),
75
+ local("Lato-Italic"),
76
+ url("../fonts/Lato-RegularItalic.ttf") format("truetype");
77
+ }
78
+
79
+ /*
80
+ * -----------------------------------------------------------
81
+ * SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
82
+ * -----------------------------------------------------------
83
+ *
84
+ * PREAMBLE
85
+ * The goals of the Open Font License (OFL) are to stimulate worldwide
86
+ * development of collaborative font projects, to support the font creation
87
+ * efforts of academic and linguistic communities, and to provide a free and
88
+ * open framework in which fonts may be shared and improved in partnership
89
+ * with others.
90
+ *
91
+ * The OFL allows the licensed fonts to be used, studied, modified and
92
+ * redistributed freely as long as they are not sold by themselves. The
93
+ * fonts, including any derivative works, can be bundled, embedded,
94
+ * redistributed and/or sold with any software provided that any reserved
95
+ * names are not used by derivative works. The fonts and derivatives,
96
+ * however, cannot be released under any other type of license. The
97
+ * requirement for fonts to remain under this license does not apply
98
+ * to any document created using the fonts or their derivatives.
99
+ *
100
+ * DEFINITIONS
101
+ * "Font Software" refers to the set of files released by the Copyright
102
+ * Holder(s) under this license and clearly marked as such. This may
103
+ * include source files, build scripts and documentation.
104
+ *
105
+ * "Reserved Font Name" refers to any names specified as such after the
106
+ * copyright statement(s).
107
+ *
108
+ * "Original Version" refers to the collection of Font Software components as
109
+ * distributed by the Copyright Holder(s).
110
+ *
111
+ * "Modified Version" refers to any derivative made by adding to, deleting,
112
+ * or substituting -- in part or in whole -- any of the components of the
113
+ * Original Version, by changing formats or by porting the Font Software to a
114
+ * new environment.
115
+ *
116
+ * "Author" refers to any designer, engineer, programmer, technical
117
+ * writer or other person who contributed to the Font Software.
118
+ *
119
+ * PERMISSION & CONDITIONS
120
+ * Permission is hereby granted, free of charge, to any person obtaining
121
+ * a copy of the Font Software, to use, study, copy, merge, embed, modify,
122
+ * redistribute, and sell modified and unmodified copies of the Font
123
+ * Software, subject to the following conditions:
124
+ *
125
+ * 1) Neither the Font Software nor any of its individual components,
126
+ * in Original or Modified Versions, may be sold by itself.
127
+ *
128
+ * 2) Original or Modified Versions of the Font Software may be bundled,
129
+ * redistributed and/or sold with any software, provided that each copy
130
+ * contains the above copyright notice and this license. These can be
131
+ * included either as stand-alone text files, human-readable headers or
132
+ * in the appropriate machine-readable metadata fields within text or
133
+ * binary files as long as those fields can be easily viewed by the user.
134
+ *
135
+ * 3) No Modified Version of the Font Software may use the Reserved Font
136
+ * Name(s) unless explicit written permission is granted by the corresponding
137
+ * Copyright Holder. This restriction only applies to the primary font name as
138
+ * presented to the users.
139
+ *
140
+ * 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
141
+ * Software shall not be used to promote, endorse or advertise any
142
+ * Modified Version, except to acknowledge the contribution(s) of the
143
+ * Copyright Holder(s) and the Author(s) or with their explicit written
144
+ * permission.
145
+ *
146
+ * 5) The Font Software, modified or unmodified, in part or in whole,
147
+ * must be distributed entirely under this license, and must not be
148
+ * distributed under any other license. The requirement for fonts to
149
+ * remain under this license does not apply to any document created
150
+ * using the Font Software.
151
+ *
152
+ * TERMINATION
153
+ * This license becomes null and void if any of the above conditions are
154
+ * not met.
155
+ *
156
+ * DISCLAIMER
157
+ * THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
158
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
159
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
160
+ * OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
161
+ * COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
162
+ * INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
163
+ * DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
164
+ * FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
165
+ * OTHER DEALINGS IN THE FONT SOFTWARE.
166
+ */
167
+