sdoc 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -1
- data/README.md +8 -0
- data/config.ru +30 -0
- data/lib/rdoc/generator/template/merge/index.rhtml +1 -1
- data/lib/rdoc/generator/template/rails/_context.rhtml +5 -5
- data/lib/rdoc/generator/template/rails/_panel.rhtml +4 -1
- data/lib/rdoc/generator/template/rails/class.rhtml +4 -6
- data/lib/rdoc/generator/template/rails/file.rhtml +3 -2
- data/lib/rdoc/generator/template/rails/index.rhtml +6 -7
- data/lib/rdoc/generator/template/rails/resources/css/main.css +8 -6
- data/lib/rdoc/generator/template/rails/resources/css/panel.css +124 -7
- data/lib/rdoc/generator/template/rails/resources/i/arrow-down-current.svg +8 -0
- data/lib/rdoc/generator/template/rails/resources/i/arrow-right-current.svg +8 -0
- data/lib/rdoc/generator/template/rails/search_index.rhtml +6 -2
- data/lib/rdoc/generator/template/sdoc/class.rhtml +3 -4
- data/lib/rdoc/generator/template/sdoc/file.rhtml +3 -4
- data/lib/rdoc/generator/template/sdoc/index.rhtml +3 -4
- data/lib/rdoc/generator/template/sdoc/resources/panel/index.html +2 -1
- data/lib/rdoc/generator/template/sdoc/search_index.rhtml +6 -2
- data/lib/sdoc/version.rb +1 -1
- data/sdoc.gemspec +2 -0
- metadata +19 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2501b7ecbe5f0166265183e512bea38f69a47e7fdf350346307b2b1d06ac208c
|
4
|
+
data.tar.gz: b45da3c5d1044c713b3972888a69b58e318e616bbb0285db327621470b203f5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b960da6795d44598a71048843a15eda6d115fe67bf44c4251aec6496a17674b4f47095978868d09dc35fd2dca81289f36d6b65a7de5eb574c3e228d53b0156cf
|
7
|
+
data.tar.gz: 4df53cf2db5874f971f343c2ccea52b59a0341cd15153a9580608800bfa10dc65e114377496bd439ea0955ece61835c9b1de980006ef87507be313c70bd4b445
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,37 @@
|
|
1
|
+
2.1.0
|
2
|
+
=====
|
3
|
+
|
4
|
+
* #154 Make panel responsive for mobile [@MikeRogers0](https://github.com/MikeRogers0) and [@p8](https://github.com/p8)
|
5
|
+
* #153 Add viewport metatag to views for improved Lighthouse score. [@MikeRogers0](https://github.com/MikeRogers0)
|
6
|
+
* #150 Use semantic headers for better SEO [@p8](https://github.com/p8)
|
7
|
+
|
8
|
+
2.0.4
|
9
|
+
=====
|
10
|
+
|
11
|
+
* #149 Using HTML5 doctype accross all HTML files. [@MikeRogers0](https://github.com/MikeRogers0)
|
12
|
+
* #148 Fix overflow CSS property of panel elements. [@cveneziani](https://github.com/cveneziani)
|
13
|
+
|
14
|
+
2.0.3
|
15
|
+
=====
|
16
|
+
|
17
|
+
* #147 Use @options.title for the index [@p8](https://github.com/p8)
|
18
|
+
|
19
|
+
2.0.2
|
20
|
+
=====
|
21
|
+
|
22
|
+
* Remove accidental rack inclusion in gemspec
|
23
|
+
|
24
|
+
2.0.1
|
25
|
+
=====
|
26
|
+
|
27
|
+
* #142 Fix arrow icons for selected panel items [@p8](https://github.com/p8)
|
28
|
+
* #141 Always use only one metatag for keywords [@p8](https://github.com/p8)
|
29
|
+
* #140 Use h2 instead of h1 for banner header [@p8](https://github.com/p8)
|
30
|
+
|
1
31
|
2.0.0
|
2
32
|
=====
|
3
33
|
|
4
|
-
* #137 Replace frames based implementation with a css
|
34
|
+
* #137 Replace frames based implementation with a css [@p8](https://github.com/p8)
|
5
35
|
* #132 Deprecate safe_level of ERB.new in Ruby 2.6
|
6
36
|
|
7
37
|
1.1.0
|
data/README.md
CHANGED
@@ -101,6 +101,14 @@ rake test:rails
|
|
101
101
|
This task will generate documentation for the Rails master branch.
|
102
102
|
Since the task doesn't do any file filtering it contains a lot of extra pages.
|
103
103
|
|
104
|
+
To view the just generated documentation start up a rack application by running:
|
105
|
+
|
106
|
+
```bash
|
107
|
+
rackup config.ru
|
108
|
+
```
|
109
|
+
|
110
|
+
Then open http://localhost:9292 in the browser to view the documentation.
|
111
|
+
|
104
112
|
### Who?
|
105
113
|
|
106
114
|
* Vladimir Kolesnikov ([voloko](https://github.com/voloko))
|
data/config.ru
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# Rack application for serving the documentation locally.
|
2
|
+
# After generating the documentation run:
|
3
|
+
#
|
4
|
+
# bundle exec rackup config.ru
|
5
|
+
#
|
6
|
+
require 'bundler/setup'
|
7
|
+
|
8
|
+
root = "doc/rails"
|
9
|
+
unless Dir.exists?(root)
|
10
|
+
puts <<~MESSAGE
|
11
|
+
Could not find any docs in #{root}.
|
12
|
+
Run the following command to generate sample documentation:
|
13
|
+
bundle exec rake test:rails
|
14
|
+
MESSAGE
|
15
|
+
exit
|
16
|
+
end
|
17
|
+
|
18
|
+
use Rack::Static,
|
19
|
+
:urls => ["/files", "/images", "/js", "/css", "/panel", "/i", "/classes"],
|
20
|
+
:root => root
|
21
|
+
run lambda { |env|
|
22
|
+
[
|
23
|
+
200,
|
24
|
+
{
|
25
|
+
'Content-Type' => 'text/html',
|
26
|
+
'Cache-Control' => 'public, max-age=86400'
|
27
|
+
},
|
28
|
+
File.open("#{root}/index.html", File::RDONLY)
|
29
|
+
]
|
30
|
+
}
|
@@ -2,8 +2,8 @@
|
|
2
2
|
<html lang="en">
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
|
-
|
6
5
|
<title><%= @title %></title>
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
7
7
|
</head>
|
8
8
|
<frameset cols="300,*" frameborder="1" border="1" bordercolor="#999999" framespacing="1">
|
9
9
|
<frame src="panel/index.html" title="Search" name="panel" />
|
@@ -101,7 +101,7 @@
|
|
101
101
|
|
102
102
|
<% unless constants.empty? %>
|
103
103
|
<!-- Section constants -->
|
104
|
-
<
|
104
|
+
<h2 class="sectiontitle">Constants</h2>
|
105
105
|
<table border='0' cellpadding='5'>
|
106
106
|
<% constants.each do |const| %>
|
107
107
|
<tr valign='top'>
|
@@ -122,7 +122,7 @@
|
|
122
122
|
|
123
123
|
<% unless attributes.empty? %>
|
124
124
|
<!-- Section attributes -->
|
125
|
-
<
|
125
|
+
<h2 class="sectiontitle">Attributes</h2>
|
126
126
|
<table border='0' cellpadding='5'>
|
127
127
|
<% attributes.each do |attrib| %>
|
128
128
|
<tr valign='top'>
|
@@ -145,17 +145,17 @@
|
|
145
145
|
visibilities.each do |visibility, methods|
|
146
146
|
next if methods.empty?
|
147
147
|
%>
|
148
|
-
<
|
148
|
+
<h2 class="sectiontitle"><%= type.capitalize %> <%= visibility.to_s.capitalize %> methods</h2>
|
149
149
|
<% methods.each do |method| %>
|
150
150
|
<div class="method">
|
151
|
-
<
|
151
|
+
<h3 class="title method-title" id="<%= method.aref %>">
|
152
152
|
<% if method.call_seq %>
|
153
153
|
<b><%= method.call_seq.gsub(/->/, '→').gsub(/\n(.)/, '<br />\1') %></b>
|
154
154
|
<% else %>
|
155
155
|
<b><%= h method.name %></b><%= h method.params %>
|
156
156
|
<% end %>
|
157
157
|
<a href="<%= "#{rel_prefix}/#{context.path}##{method.aref}"%>" name="<%= method.aref %>" class="permalink">Link</a>
|
158
|
-
</
|
158
|
+
</h3>
|
159
159
|
|
160
160
|
<% if method.comment %>
|
161
161
|
<div class="description">
|
@@ -1,6 +1,9 @@
|
|
1
|
+
<input type="checkbox" id="hamburger" class="panel_checkbox">
|
2
|
+
<label class="panel_mobile_button" for="hamburger"><span></span> Menu</label>
|
1
3
|
<div class="panel panel_tree" id="panel" data-turbolinks-permanent>
|
2
4
|
<div class="header">
|
3
|
-
<input type="text" placeholder="Search for a class, method, ..." autosave="searchdoc" results="10" id="search" autocomplete="off" />
|
5
|
+
<input type="text" placeholder="Search for a class, method, ..." autosave="searchdoc" results="10" id="search" autocomplete="off" tabindex="-1" />
|
6
|
+
<label class="panel_mobile_button_close" for="hamburger"><span></span> Close</label>
|
4
7
|
</div>
|
5
8
|
<div class="tree">
|
6
9
|
<ul>
|
@@ -3,6 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<title><%= h klass.full_name %></title>
|
5
5
|
<meta charset="<%= @options.charset %>" />
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
7
|
<%= include_template '_head.rhtml', {:rel_prefix => rel_prefix, :tree_keys => klass.full_name.split('::') } %>
|
7
8
|
|
8
9
|
<meta property="og:title" value="<%= klass.full_name %>">
|
@@ -13,10 +14,7 @@
|
|
13
14
|
<meta property="og:description" content="<%= human_desc %>">
|
14
15
|
<% end %>
|
15
16
|
|
16
|
-
<meta name="keywords" content="<%= klass.full_name %> class">
|
17
|
-
<% unless klass.method_list.empty? %>
|
18
|
-
<meta name="keywords" content="<%= klass.method_list.map(&:name).join(", ") %>">
|
19
|
-
<% end %>
|
17
|
+
<meta name="keywords" content="<%= klass.full_name %> class, <%= klass.method_list.map(&:name).join(", ") %>">
|
20
18
|
</head>
|
21
19
|
|
22
20
|
<body>
|
@@ -27,7 +25,7 @@
|
|
27
25
|
<% if ENV['HORO_PROJECT_NAME'] %>
|
28
26
|
<span><%= ERB::Util.html_escape(ENV['HORO_PROJECT_NAME']) %> <%= ERB::Util.html_escape(ENV['HORO_PROJECT_VERSION']) %></span><br />
|
29
27
|
<% end %>
|
30
|
-
<
|
28
|
+
<h2>
|
31
29
|
<span class="type"><%= klass.module? ? 'Module' : 'Class' %></span>
|
32
30
|
<%= h klass.full_name %>
|
33
31
|
<% if klass.type == 'class' %>
|
@@ -39,7 +37,7 @@
|
|
39
37
|
<% end %>
|
40
38
|
</span>
|
41
39
|
<% end %>
|
42
|
-
</
|
40
|
+
</h2>
|
43
41
|
<ul class="files">
|
44
42
|
<% klass.in_files.each do |file| %>
|
45
43
|
<li><a href="<%= "#{rel_prefix}/#{h file.path}" %>"><%= h file.absolute_name %></a></li>
|
@@ -3,6 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<title><%= h file.name %></title>
|
5
5
|
<meta charset="<%= @options.charset %>" />
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
7
|
<%= include_template '_head.rhtml', {:rel_prefix => rel_prefix, :tree_keys => [] } %>
|
7
8
|
</head>
|
8
9
|
|
@@ -14,9 +15,9 @@
|
|
14
15
|
<% if ENV['HORO_PROJECT_NAME'] %>
|
15
16
|
<span><%= ERB::Util.html_escape(ENV['HORO_PROJECT_NAME']) %> <%= ERB::Util.html_escape(ENV['HORO_PROJECT_VERSION']) %></span><br />
|
16
17
|
<% end %>
|
17
|
-
<
|
18
|
+
<h2>
|
18
19
|
<%= h file.name %>
|
19
|
-
</
|
20
|
+
</h2>
|
20
21
|
<ul class="files">
|
21
22
|
<%
|
22
23
|
github = github_url(file.relative_name) if options.github
|
@@ -1,10 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
5
3
|
<head>
|
6
|
-
<title><%=
|
4
|
+
<title><%= @options.title %></title>
|
7
5
|
<meta http-equiv="Content-Type" content="text/html; charset=<%= @options.charset %>" />
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
8
7
|
<%= include_template '_head.rhtml', {:rel_prefix => rel_prefix, tree_keys: []} %>
|
9
8
|
</head>
|
10
9
|
|
@@ -16,9 +15,9 @@
|
|
16
15
|
<% if ENV['HORO_PROJECT_NAME'] %>
|
17
16
|
<span><%= ERB::Util.html_escape(ENV['HORO_PROJECT_NAME']) %> <%= ERB::Util.html_escape(ENV['HORO_PROJECT_VERSION']) %></span><br />
|
18
17
|
<% end %>
|
19
|
-
<
|
18
|
+
<h2>
|
20
19
|
<%= h index.name %>
|
21
|
-
</
|
20
|
+
</h2>
|
22
21
|
<ul class="files">
|
23
22
|
<li><%= h index.relative_name %></li>
|
24
23
|
<li>Last modified: <%= index.last_modified %></li>
|
@@ -7,8 +7,10 @@ body {
|
|
7
7
|
line-height: 1.25em;
|
8
8
|
}
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
@media (min-width: 40em) {
|
11
|
+
.banner, #bodyContent {
|
12
|
+
margin-left: 300px;
|
13
|
+
}
|
12
14
|
}
|
13
15
|
|
14
16
|
a:link, a:active, a:visited, a:hover {
|
@@ -125,20 +127,20 @@ ol li
|
|
125
127
|
padding: 1em;
|
126
128
|
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
|
127
129
|
}
|
128
|
-
.banner
|
130
|
+
.banner h2
|
129
131
|
{
|
130
132
|
font-size: 1.2em;
|
131
133
|
margin: 0;
|
132
134
|
}
|
133
135
|
|
134
|
-
.banner
|
136
|
+
.banner h2 .type
|
135
137
|
{
|
136
138
|
font-size: 0.833em;
|
137
139
|
display:block;
|
138
140
|
}
|
139
141
|
|
140
|
-
.banner
|
141
|
-
.banner
|
142
|
+
.banner h2 .type,
|
143
|
+
.banner h2 .parent
|
142
144
|
{
|
143
145
|
color: #CCC;
|
144
146
|
}
|
@@ -1,17 +1,118 @@
|
|
1
1
|
/* Panel (begin) */
|
2
|
+
.panel_checkbox, .panel_mobile_button, .panel_mobile_button_close
|
3
|
+
{
|
4
|
+
display: none;
|
5
|
+
}
|
6
|
+
|
7
|
+
@media (max-width: 39.99em) {
|
8
|
+
.panel_mobile_button {
|
9
|
+
display: block;
|
10
|
+
height: 40px;
|
11
|
+
position: sticky;
|
12
|
+
top: 0;
|
13
|
+
background: #000;
|
14
|
+
color: #fff;
|
15
|
+
padding-right: 10px;
|
16
|
+
text-align: right;
|
17
|
+
line-height: 40px;
|
18
|
+
cursor: pointer;
|
19
|
+
z-index: 2;
|
20
|
+
}
|
21
|
+
.panel_checkbox:checked ~ .panel_mobile_button {
|
22
|
+
}
|
23
|
+
|
24
|
+
.panel_checkbox:checked ~ .panel .panel_mobile_button_close {
|
25
|
+
display: block;
|
26
|
+
height: 40px;
|
27
|
+
position: absolute;
|
28
|
+
top: 0;
|
29
|
+
right: 10px;
|
30
|
+
z-index: 3000;
|
31
|
+
text-align: right;
|
32
|
+
line-height: 40px;
|
33
|
+
cursor: pointer;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.panel_mobile_button span {
|
38
|
+
position: relative;
|
39
|
+
display: inline-block;
|
40
|
+
width: 1em;
|
41
|
+
height: 0.55em;
|
42
|
+
margin-right: 0.3em;
|
43
|
+
border-top: 0.1em solid #fff;
|
44
|
+
border-bottom: 0.1em solid #fff;
|
45
|
+
}
|
46
|
+
|
47
|
+
.panel_mobile_button span:before {
|
48
|
+
content: "";
|
49
|
+
position: absolute;
|
50
|
+
top: 0.25em;
|
51
|
+
left: 0px;
|
52
|
+
width: 100%;
|
53
|
+
border-top: 0.1em solid #fff;
|
54
|
+
}
|
55
|
+
|
56
|
+
.panel_mobile_button_close span {
|
57
|
+
position: relative;
|
58
|
+
display: inline-block;
|
59
|
+
width: 1em;
|
60
|
+
height: 0.625em;
|
61
|
+
}
|
62
|
+
|
63
|
+
.panel_mobile_button_close span:before, .panel_mobile_button_close span:after {
|
64
|
+
content: "";
|
65
|
+
position: absolute;
|
66
|
+
top: 0.2em;
|
67
|
+
left: 0px;
|
68
|
+
width: 100%;
|
69
|
+
border-top: 0.1em solid #000;
|
70
|
+
}
|
71
|
+
|
72
|
+
.panel_mobile_button_close span:before {
|
73
|
+
transform: rotate(45deg);
|
74
|
+
}
|
75
|
+
|
76
|
+
.panel_mobile_button_close span:after {
|
77
|
+
transform: rotate(-45deg);
|
78
|
+
}
|
79
|
+
|
2
80
|
.panel
|
3
81
|
{
|
4
82
|
position: fixed;
|
83
|
+
top: 0;
|
5
84
|
width: 300px;
|
6
85
|
height: 100%;
|
7
86
|
background: #FFF;
|
8
|
-
z-index:
|
87
|
+
z-index: 10;
|
9
88
|
font-family: "Helvetica Neue", "Arial", sans-serif;
|
10
89
|
overflow-x: hidden;
|
11
90
|
border-right: 1px #ccc solid;
|
12
91
|
line-height: 1;
|
13
92
|
}
|
14
93
|
|
94
|
+
@media (max-width: 39.99em) {
|
95
|
+
.panel
|
96
|
+
{
|
97
|
+
transition: left 0s ease-in-out;
|
98
|
+
left: -100%;
|
99
|
+
width: 100%;
|
100
|
+
bottom: 0;
|
101
|
+
visibility: hidden;
|
102
|
+
}
|
103
|
+
|
104
|
+
.panel_checkbox:checked ~ .panel {
|
105
|
+
left: 0%;
|
106
|
+
transition: left 0.3s ease-in-out;
|
107
|
+
visibility: visible;
|
108
|
+
}
|
109
|
+
|
110
|
+
.panel_checkbox:checked ~ #bodyContent {
|
111
|
+
visibility: hidden;
|
112
|
+
display: none;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
15
116
|
.panel_tree .results,
|
16
117
|
.panel_results .tree
|
17
118
|
{
|
@@ -27,11 +128,19 @@
|
|
27
128
|
height: 40px;
|
28
129
|
width: 300px;
|
29
130
|
position: fixed;
|
131
|
+
position: sticky;
|
30
132
|
left: 0; top: 0;
|
31
133
|
z-index: 300;
|
32
134
|
overflow-x: hidden;
|
33
135
|
}
|
34
136
|
|
137
|
+
@media (max-width: 39.99em) {
|
138
|
+
.panel .header
|
139
|
+
{
|
140
|
+
width: 100%;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
|
35
144
|
.panel .header input
|
36
145
|
{
|
37
146
|
border: 0;
|
@@ -46,6 +155,15 @@
|
|
46
155
|
outline: none;
|
47
156
|
}
|
48
157
|
|
158
|
+
@media (max-width: 39.99em) {
|
159
|
+
.panel .header input
|
160
|
+
{
|
161
|
+
width: 70%;
|
162
|
+
width: calc(100% - 100px);
|
163
|
+
font-size: 16px;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
49
167
|
/* Header with search box (end) */
|
50
168
|
|
51
169
|
|
@@ -54,10 +172,10 @@
|
|
54
172
|
{
|
55
173
|
position: relative;
|
56
174
|
bottom: 0;
|
57
|
-
top:
|
175
|
+
top: 0;
|
58
176
|
left: 0;
|
59
177
|
width: 100%;
|
60
|
-
overflow-y:
|
178
|
+
overflow-y: auto;
|
61
179
|
overflow-x: hidden;
|
62
180
|
z-index: 2;
|
63
181
|
}
|
@@ -220,11 +338,10 @@
|
|
220
338
|
{
|
221
339
|
background: white;
|
222
340
|
position: relative;
|
223
|
-
top: 40px;
|
224
341
|
bottom: 0;
|
225
342
|
left: 0;
|
226
343
|
width: 100%;
|
227
|
-
overflow-y:
|
344
|
+
overflow-y: auto;
|
228
345
|
overflow-x: hidden;
|
229
346
|
z-index: 30;
|
230
347
|
}
|
@@ -320,13 +437,13 @@
|
|
320
437
|
|
321
438
|
.panel .tree ul li.current .icon
|
322
439
|
{
|
323
|
-
background: url(../i/arrow-
|
440
|
+
background: url(../i/arrow-down-current.svg);
|
324
441
|
background-size: 10px;
|
325
442
|
}
|
326
443
|
|
327
444
|
.panel .tree ul li.current.closed .icon
|
328
445
|
{
|
329
|
-
background: url(../i/arrow-
|
446
|
+
background: url(../i/arrow-right-current.svg);
|
330
447
|
background-size: 10px;
|
331
448
|
}
|
332
449
|
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
3
|
+
viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
4
|
+
<style type="text/css">
|
5
|
+
.st0{fill:#FFFFFF;}
|
6
|
+
</style>
|
7
|
+
<polygon class="st0" points="27.8,3.1 0.6,3.1 14.2,26.2 "/>
|
8
|
+
</svg>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
3
|
+
viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
4
|
+
<style type="text/css">
|
5
|
+
.st0{fill:#FFFFFF;}
|
6
|
+
</style>
|
7
|
+
<polygon class="st0" points="2.6,1.1 2.6,28.2 25.8,14.6 "/>
|
8
|
+
</svg>
|
@@ -1,5 +1,9 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<title>File Index</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
</head>
|
3
7
|
<body>
|
4
8
|
<% @files.each do |file| %>
|
5
9
|
<a href="../<%= file.path %>"><%= file.relative_name %></a>
|
@@ -1,10 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
5
3
|
<head>
|
6
4
|
<title><%= h klass.full_name %></title>
|
7
5
|
<meta http-equiv="Content-Type" content="text/html; charset=<%= @options.charset %>" />
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
8
7
|
<%= include_template '_head.rhtml', {:rel_prefix => rel_prefix} %>
|
9
8
|
|
10
9
|
<meta property="og:title" value="<%= klass.full_name %>">
|
@@ -1,10 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
5
3
|
<head>
|
6
4
|
<title><%= h file.name %></title>
|
7
5
|
<meta http-equiv="Content-Type" content="text/html; charset=<%= @options.charset %>" />
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
8
7
|
<%= include_template '_head.rhtml', {:rel_prefix => rel_prefix} %>
|
9
8
|
</head>
|
10
9
|
|
@@ -1,10 +1,9 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
5
3
|
<head>
|
6
4
|
<meta http-equiv="Content-Type" content="text/html; charset=<%= @options.charset %>" />
|
7
5
|
<title><%= @options.title %></title>
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
8
7
|
</head>
|
9
8
|
<frameset cols="300,*" frameborder="1" border="1" bordercolor="#999999" framespacing="1">
|
10
9
|
<frame src="panel/index.html" title="Search" name="panel" />
|
@@ -1,7 +1,8 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html lang="en">
|
3
3
|
<head>
|
4
|
-
<title>
|
4
|
+
<title>Search Index</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
5
6
|
<link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" charset="utf-8" />
|
6
7
|
<link rel="stylesheet" href="../css/panel.css" type="text/css" media="screen" charset="utf-8" />
|
7
8
|
<script src="../js/search_index.js" type="text/javascript" charset="utf-8"></script>
|
@@ -1,5 +1,9 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<title>File Index</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
</head>
|
3
7
|
<body>
|
4
8
|
<% @files.each do |file| %>
|
5
9
|
<a href="../<%= file.path %>"><%= file.relative_name %></a>
|
data/lib/sdoc/version.rb
CHANGED
data/sdoc.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Kolesnikov
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2021-03-31 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rdoc
|
@@ -27,6 +27,20 @@ dependencies:
|
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '5.0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rack
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
37
|
+
type: :development
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
30
44
|
description: rdoc generator html with javascript search index.
|
31
45
|
email: voloko@gmail.com mail@zzak.io
|
32
46
|
executables:
|
@@ -45,6 +59,7 @@ files:
|
|
45
59
|
- Rakefile
|
46
60
|
- bin/sdoc
|
47
61
|
- bin/sdoc-merge
|
62
|
+
- config.ru
|
48
63
|
- lib/rdoc/discover.rb
|
49
64
|
- lib/rdoc/generator/template/merge/index.rhtml
|
50
65
|
- lib/rdoc/generator/template/rails/_context.rhtml
|
@@ -59,7 +74,9 @@ files:
|
|
59
74
|
- lib/rdoc/generator/template/rails/resources/css/panel.css
|
60
75
|
- lib/rdoc/generator/template/rails/resources/css/reset.css
|
61
76
|
- lib/rdoc/generator/template/rails/resources/favicon.ico
|
77
|
+
- lib/rdoc/generator/template/rails/resources/i/arrow-down-current.svg
|
62
78
|
- lib/rdoc/generator/template/rails/resources/i/arrow-down.svg
|
79
|
+
- lib/rdoc/generator/template/rails/resources/i/arrow-right-current.svg
|
63
80
|
- lib/rdoc/generator/template/rails/resources/i/arrow-right.svg
|
64
81
|
- lib/rdoc/generator/template/rails/resources/i/search.svg
|
65
82
|
- lib/rdoc/generator/template/rails/resources/i/tree_bg.svg
|