rdoc-babel 1.1.1 → 1.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1327fb42125f98ea0570da581237805d4f8b888f0e7539ff2f3852434305742
4
- data.tar.gz: 03dc94dc98373a2fc6f8e10f33be216311a570708f80eeadff28a9725db381cb
3
+ metadata.gz: 55f4e3e723fcdd5967ec422747a0de38dba85db8c8a7e3592232e67346b3aa92
4
+ data.tar.gz: '0855f9b0383d9b91ada6369e90436d8d9532d4116f8d2fb29369c3bdb1e13864'
5
5
  SHA512:
6
- metadata.gz: eaefb9b9fb643aa8af53622b97fc668846ec6dbd90d3f4b2e508a15f41ab9ba807ff5ac475bf9ea1ab798c2179d56d65b9e2dfa334be04fed454d3e6e61a3c83
7
- data.tar.gz: 171c83b49f1a3c6ead84ce1abe9b5a6a00da7361a7949f626763783349acae9c81915d26d6e5e2affdb0002493a066c9b1b131625447a5878c09a508f7862423
6
+ metadata.gz: 77548381b3e7ed0f445016295b94eb7498f8d84686fa5df90319ec72138d4ab12d07f2e872bae59b54e4acc79506c85e2f39727dc5e20809f9852ebdffe70ba2
7
+ data.tar.gz: d3a6fd0e292026ece7ceefdd68f6654e7ebef7c6c3aca5d41283927e830c13679ac9fa198980e26c2b52b86452bf00df58d563f61e50e8f4d057cb5cc9537ad0
data/HISTORY.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.2.0
2
+
3
+ * add resizing of indexes in left frame
4
+ * prefer Noto Sans over Verdana
5
+ * refactor javascript, remove jQuery
6
+ * tune code coloring
1
7
 
2
8
  === 1.1.1
3
9
 
data/README.rdoc CHANGED
@@ -12,7 +12,7 @@ and to contribute alternate templates or style sheets.
12
12
 
13
13
  === Features of the "ruby-lang" template
14
14
 
15
- - Look and feel inspired from ruby-lang.org[http://www.ruby-lang.org/].
15
+ - Look and feel inspired from ruby-lang.org[https://www.ruby-lang.org/] (in 2010).
16
16
  - Dual-frame output, with indexes on the left.
17
17
  - Search boxes for classes and methods.
18
18
  - Links to undocumented classes/methods are grayed.
@@ -33,7 +33,7 @@ class RDoc::Generator::Babel
33
33
 
34
34
  RDoc::RDoc.add_generator(self)
35
35
 
36
- VERSION = '1.1.1'
36
+ VERSION = '1.2.0'
37
37
  DESCRIPTION = 'Alternate HTML documentation'
38
38
 
39
39
  include ERB::Util
@@ -4,7 +4,7 @@
4
4
  <meta charset="<%= @options.charset %>">
5
5
  <title><%= @class.type.capitalize %> <%= @class.full_name %></title>
6
6
  <link href="<%= @stylesheet_url %>" rel="stylesheet">
7
- <script src="<%= @rel_prefix %>/scripts/jquery.js" type="text/javascript"></script>
7
+ <link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet">
8
8
  <script src="<%= @rel_prefix %>/scripts/mainFrame.js" type="text/javascript"></script>
9
9
  </head>
10
10
  <body>
@@ -4,7 +4,7 @@
4
4
  <meta charset="<%= @options.charset %>">
5
5
  <title>File <%= @file.base_name %></title>
6
6
  <link href="<%= @stylesheet_url %>" rel="stylesheet">
7
- <script src="<%= @rel_prefix %>/scripts/jquery.js" type="text/javascript"></script>
7
+ <link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet">
8
8
  <script src="<%= @rel_prefix %>/scripts/mainFrame.js" type="text/javascript"></script>
9
9
  </head>
10
10
  <body>
@@ -4,8 +4,8 @@
4
4
  <meta charset="<%= @options.charset %>">
5
5
  <title>Index of <%= @simple_files.empty? ? '' : 'Files, ' %> Classes &amp; Methods in <%= h @options.title %></title>
6
6
  <link href="<%= @stylesheet_url %>" rel="stylesheet">
7
- <script src="scripts/jquery.js" type="text/javascript"></script>
8
- <script src="scripts/jquery.quicksearch.js" type="text/javascript"></script>
7
+ <link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet">
8
+ <script src="scripts/quicksearch.js" type="text/javascript"></script>
9
9
  <script src="scripts/indexFrame.js" type="text/javascript"></script>
10
10
  <base target="mainFrame">
11
11
  </head>
@@ -13,13 +13,14 @@
13
13
  <% $stderr.sync = true %>
14
14
  <% unless @files_to_display.empty? %>
15
15
  <div id="file-index">
16
- <div class="title">Files</div>
16
+ <div class="title"><span class="text">Files</span></div>
17
17
  <div class="entries">
18
18
  <% @files_to_display.each do |file| %>
19
19
  <p><a href="<%= file.path %>"><%= h file.absolute_name %></a></p>
20
20
  <% end %>
21
21
  </div>
22
22
  </div>
23
+ <div id="file-class-resizer"></div>
23
24
  <% end %>
24
25
  <div id="class-index">
25
26
  <div class="title">
@@ -33,7 +34,7 @@
33
34
  <% end %>
34
35
  </div>
35
36
  </div>
36
-
37
+ <div id="class-method-resizer"></div>
37
38
  <div id="method-index">
38
39
  <div class="title">
39
40
  <span class="text">Methods </span><input type="text" value="" class="search-field">
@@ -8,7 +8,7 @@
8
8
  * { padding: 0; margin: 0; }
9
9
 
10
10
  body {
11
- font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
11
+ font-family: "Noto Sans", Verdana, Geneva, Arial, Helvetica, sans-serif;
12
12
  background-color: white;
13
13
  color: black;
14
14
  font-size: 10pt;
@@ -90,9 +90,7 @@ a:hover {
90
90
  #header, .index .title {
91
91
  color: white;
92
92
  background-color: #275382;
93
- background: -moz-linear-gradient(left, #164270, #77a1d1); /* firefox 3.6+ */
94
- background: -webkit-gradient(linear, left top, right top, from(#164270), to(#77a1d1)); /* webkit browsers */
95
- filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr='#164270', EndColorStr='#77a1d1'); /* IE */
93
+ background: linear-gradient(to right, #164270, #77a1d1);
96
94
  }
97
95
 
98
96
  /*
@@ -111,21 +109,23 @@ body.index {
111
109
  }
112
110
 
113
111
  .index .title {
114
- padding: 3px 2px 5px 5px; /* TRBL */
115
112
  font-family: Georgia, Palatino, "Times New Roman", Times, serif;
113
+ padding: 3px 2px 5px 5px; /* TRBL */
114
+ }
115
+ .index .title .text {
116
+ display: inline-block;
117
+ padding-top: 2px; /* TRBL */
116
118
  }
117
119
  .search-field {
118
120
  font-family: Consolas, Monaco, "Lucida Console", monospace;
119
121
  position: absolute;
120
122
  right: 3px;
121
123
  padding: 0 1px 2px 2px; /* TRBL */
122
- background: #f5f5f5;
123
124
  border: 1px solid silver;
124
- color: silver;
125
+ color: gray;
125
126
  width: 8em; /* search... */
126
127
  }
127
- .search-field.active {
128
- background: #fffffa; /* very pale yellow */
128
+ .search-field:focus {
129
129
  color: black;
130
130
  }
131
131
 
@@ -149,6 +149,28 @@ body.index {
149
149
  padding: 0 0.5ex;
150
150
  }
151
151
 
152
+ /* the resizers, and a 9-pixel wide area around them */
153
+ #file-class-resizer, #class-method-resizer {
154
+ position: fixed;
155
+ left: 0;
156
+ width: 100%;
157
+ top: 90px;
158
+ height: 0px;
159
+ /*
160
+ background-color: red;
161
+ */
162
+ }
163
+ #file-class-resizer::after, #class-method-resizer::after {
164
+ content: "";
165
+ position: absolute;
166
+ left: 0;
167
+ right: 0;
168
+ height: 9px;
169
+ margin-top: -4px;
170
+ background-color: transparent;
171
+ cursor: ns-resize;
172
+ }
173
+
152
174
  /*
153
175
  * =============
154
176
  * Main files