bitclust-core 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/bitclust/template.offline/class +85 -26
- data/data/bitclust/template.offline/class-index +31 -4
- data/data/bitclust/template.offline/doc +37 -7
- data/data/bitclust/template.offline/function +37 -7
- data/data/bitclust/template.offline/function-index +31 -5
- data/data/bitclust/template.offline/layout +4 -4
- data/data/bitclust/template.offline/library +38 -6
- data/data/bitclust/template.offline/library-index +31 -4
- data/data/bitclust/template.offline/method +52 -10
- data/lib/bitclust/classentry.rb +1 -0
- data/lib/bitclust/completion.rb +1 -0
- data/lib/bitclust/docentry.rb +1 -0
- data/lib/bitclust/libraryentry.rb +3 -1
- data/lib/bitclust/methodentry.rb +5 -4
- data/lib/bitclust/methodid.rb +1 -0
- data/lib/bitclust/nameutils.rb +7 -7
- data/lib/bitclust/preprocessor.rb +2 -2
- data/lib/bitclust/rdcompiler.rb +17 -8
- data/lib/bitclust/requesthandler.rb +3 -3
- data/lib/bitclust/ridatabase.rb +2 -1
- data/lib/bitclust/rrdparser.rb +0 -1
- data/lib/bitclust/screen.rb +30 -2
- data/lib/bitclust/simplesearcher.rb +1 -1
- data/lib/bitclust/subcommands/methods_command.rb +1 -1
- data/lib/bitclust/subcommands/server_command.rb +6 -1
- data/lib/bitclust/subcommands/setup_command.rb +1 -1
- data/lib/bitclust/subcommands/statichtml_command.rb +23 -7
- data/lib/bitclust/syntax_highlighter.rb +4 -3
- data/lib/bitclust/version.rb +1 -1
- data/test/test_bitclust.rb +1 -1
- data/test/test_syntax_highlighter.rb +8 -2
- data/theme/default/rurema.png +0 -0
- data/theme/default/rurema.svg +31 -0
- data/theme/default/script.js +35 -0
- data/theme/default/style.css +65 -0
- metadata +15 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f79dad5d50c6ae45ebf5e028d9b26e73562a71163fc22e4e2bfb218ea790e6a
|
4
|
+
data.tar.gz: d4f215f77dc34e08d46b26ed93c2ddca3d5f90e22ecd28a20c324ff5067fb1f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d819f311b99228af293af81eff952c0f6b05c4320ec2ed42d0046f4d4b6ce61b6e42f7d699893ef8aa39001533bc1664b8371347cfb2bc327302dc249e3244e4
|
7
|
+
data.tar.gz: d7d5e8d7d6e7a307b809c637c1d5337276e46f8b4a398779b9f7dffd547dcda330cd0d78bca449b55e7488113e5c7770f16249a697d1dcec9b1eeeaf47a1f8cf
|
@@ -2,51 +2,111 @@
|
|
2
2
|
@title = "#{@entry.type} #{@entry.name}"
|
3
3
|
@description = @entry.description
|
4
4
|
%>
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
<% if @conf[:canonical_base_url] %>
|
6
|
+
<script type="application/ld+json">
|
7
|
+
<%=
|
8
|
+
breadcrumb_json_ld(
|
9
|
+
[
|
10
|
+
{
|
11
|
+
name: manual_home_name,
|
12
|
+
url: absolute_url_to(@urlmapper.document_url('index'))
|
13
|
+
},
|
14
|
+
{
|
15
|
+
name: _('All Libraries'),
|
16
|
+
url: absolute_url_to(library_index_url)
|
17
|
+
},
|
18
|
+
{
|
19
|
+
name: friendly_library_name(@entry.library.name),
|
20
|
+
url: absolute_url_to(@urlmapper.library_url(@entry.library.name))
|
21
|
+
},
|
22
|
+
{
|
23
|
+
name: _("#{@entry.type} %s", @entry.name),
|
24
|
+
url: canonical_url
|
25
|
+
}
|
26
|
+
]
|
27
|
+
)
|
28
|
+
%>
|
29
|
+
</script>
|
30
|
+
<% end %>
|
31
|
+
<header>
|
32
|
+
<nav>
|
33
|
+
<ol class="inline-breadcrumb-list">
|
34
|
+
<li>
|
35
|
+
<%= manual_home_link() %>
|
36
|
+
</li>
|
37
|
+
<li>
|
38
|
+
<a href="<%= library_index_url() %>"><%= _('All Libraries') %></a>
|
39
|
+
</li>
|
40
|
+
<li>
|
41
|
+
<%= friendly_library_link(@entry.library.name) %>
|
42
|
+
</li>
|
43
|
+
<li>
|
44
|
+
<%=h _(@entry.type.to_s + ' %s', @entry.name) %>
|
45
|
+
</li>
|
46
|
+
</ol>
|
47
|
+
</nav>
|
48
|
+
</header>
|
11
49
|
|
12
50
|
<%
|
13
51
|
headline_init
|
14
52
|
%>
|
15
53
|
<%= headline("#{@entry.type} #{@entry.name}" + @entry.ancestors[1..@alevel].map{|c| " + #{c.name}" }.join) %>
|
16
|
-
<p>
|
17
54
|
<%
|
18
55
|
myself, *supers = @entry.ancestors
|
19
56
|
n = 0
|
20
57
|
%>
|
58
|
+
|
21
59
|
<% unless @entry.alias? %>
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
<%
|
26
|
-
|
60
|
+
<nav>
|
61
|
+
<%= _('ancestors') %>:
|
62
|
+
<ol class="inline-ancestors-list">
|
63
|
+
<% supers.reverse_each do |c| %>
|
64
|
+
<li>
|
65
|
+
<%= class_link(c.name) %>
|
66
|
+
</li>
|
67
|
+
<% n += 1 %>
|
68
|
+
<% end %>
|
69
|
+
<li>
|
70
|
+
<%= escape_html(myself.name) %>
|
71
|
+
</li>
|
72
|
+
</ol>
|
73
|
+
</nav>
|
27
74
|
<% end %>
|
28
75
|
|
29
76
|
<% unless @entry.extended.empty? %>
|
30
|
-
<
|
77
|
+
<p>
|
78
|
+
extend: <%= @entry.extended.map {|c| class_link(c.name) }.join(', ') %>
|
79
|
+
</p>
|
31
80
|
<% end %>
|
81
|
+
|
32
82
|
<% unless @entry.aliases.empty? %>
|
33
|
-
<
|
83
|
+
<p>
|
84
|
+
aliases: <%=h @entry.aliases.map{|c| c.name}.join(', ') %>
|
85
|
+
</p>
|
34
86
|
<% end %>
|
87
|
+
|
35
88
|
<% unless @entry.dynamically_included.empty? %>
|
36
|
-
<
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
89
|
+
<p>
|
90
|
+
dynamic include:
|
91
|
+
<%=
|
92
|
+
@entry.dynamically_included.map {|m|
|
93
|
+
class_link(m.name) + " (by " + library_link(m.library.name) + ")"
|
94
|
+
}.join(", ")
|
95
|
+
%>
|
96
|
+
</p>
|
41
97
|
<% end %>
|
98
|
+
|
42
99
|
<% unless @entry.dynamically_extended.empty? %>
|
43
|
-
<
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
100
|
+
<p>
|
101
|
+
dynamic extend:
|
102
|
+
<%=
|
103
|
+
@entry.dynamically_extended.map {|m|
|
104
|
+
class_link(m.name) + " (by " + library_link(m.library.name) + ")"
|
105
|
+
}.join(", ")
|
106
|
+
%>
|
49
107
|
</p>
|
108
|
+
<% end %>
|
109
|
+
|
50
110
|
<%
|
51
111
|
headline_push
|
52
112
|
%>
|
@@ -125,4 +185,3 @@ end %>
|
|
125
185
|
end
|
126
186
|
headline_pop
|
127
187
|
%>
|
128
|
-
|
@@ -2,10 +2,37 @@
|
|
2
2
|
@title = _('Class Index')
|
3
3
|
@description = _('Class Index')
|
4
4
|
%>
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
<% if @conf[:canonical_base_url] %>
|
6
|
+
<script type="application/ld+json">
|
7
|
+
<%=
|
8
|
+
breadcrumb_json_ld(
|
9
|
+
[
|
10
|
+
{
|
11
|
+
name: manual_home_name,
|
12
|
+
url: absolute_url_to(@urlmapper.document_url('index'))
|
13
|
+
},
|
14
|
+
{
|
15
|
+
name: _('All Classes'),
|
16
|
+
url: canonical_url
|
17
|
+
}
|
18
|
+
]
|
19
|
+
)
|
20
|
+
%>
|
21
|
+
</script>
|
22
|
+
<% end %>
|
23
|
+
<header>
|
24
|
+
<nav>
|
25
|
+
<ol class="inline-breadcrumb-list">
|
26
|
+
<li>
|
27
|
+
<%= manual_home_link() %>
|
28
|
+
</li>
|
29
|
+
<li>
|
30
|
+
<%= _('All Classes') %>
|
31
|
+
</li>
|
32
|
+
</ol>
|
33
|
+
</nav>
|
34
|
+
</header>
|
35
|
+
|
9
36
|
<%
|
10
37
|
headline_init
|
11
38
|
%>
|
@@ -2,14 +2,44 @@
|
|
2
2
|
@title = @entry.title
|
3
3
|
@description = @entry.description
|
4
4
|
%>
|
5
|
-
|
6
|
-
|
7
|
-
<%=
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
<% if @conf[:canonical_base_url] %>
|
6
|
+
<script type="application/ld+json">
|
7
|
+
<%=
|
8
|
+
items = [
|
9
|
+
{
|
10
|
+
name: manual_home_name,
|
11
|
+
url: absolute_url_to(@urlmapper.document_url('index'))
|
12
|
+
}
|
13
|
+
]
|
14
|
+
if @entry.name != 'index'
|
15
|
+
items << {
|
16
|
+
name: breadcrumb_title,
|
17
|
+
url: canonical_url
|
18
|
+
}
|
19
|
+
end
|
20
|
+
breadcrumb_json_ld(items)
|
21
|
+
%>
|
22
|
+
</script>
|
11
23
|
<% end %>
|
12
|
-
|
24
|
+
<header>
|
25
|
+
<nav>
|
26
|
+
<ol class="inline-breadcrumb-list">
|
27
|
+
<% if @entry.name == 'index' %>
|
28
|
+
<li>
|
29
|
+
<%= manual_home_name %>
|
30
|
+
</li>
|
31
|
+
<% else %>
|
32
|
+
<li>
|
33
|
+
<%= manual_home_link() %>
|
34
|
+
</li>
|
35
|
+
<li>
|
36
|
+
<%=h breadcrumb_title %>
|
37
|
+
</li>
|
38
|
+
<% end %>
|
39
|
+
</ol>
|
40
|
+
</nav>
|
41
|
+
</header>
|
42
|
+
|
13
43
|
<% headline_init %>
|
14
44
|
<%= headline(@entry.title) %>
|
15
45
|
<% headline_push %>
|
@@ -3,12 +3,43 @@
|
|
3
3
|
@title = "#{entry.type_label} #{entry.label}"
|
4
4
|
@description = @entry.description
|
5
5
|
%>
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
6
|
+
<% if @conf[:canonical_base_url] %>
|
7
|
+
<script type="application/ld+json">
|
8
|
+
<%=
|
9
|
+
breadcrumb_json_ld(
|
10
|
+
[
|
11
|
+
{
|
12
|
+
name: manual_home_name,
|
13
|
+
url: absolute_url_to(@urlmapper.document_url('index'))
|
14
|
+
},
|
15
|
+
{
|
16
|
+
name: _('All Functions'),
|
17
|
+
url: absolute_url_to(function_index_url)
|
18
|
+
},
|
19
|
+
{
|
20
|
+
name: "#{entry.name}#{' (static)' unless entry.public?}",
|
21
|
+
url: canonical_url
|
22
|
+
}
|
23
|
+
]
|
24
|
+
)
|
25
|
+
%>
|
26
|
+
</script>
|
27
|
+
<% end %>
|
28
|
+
<header>
|
29
|
+
<nav>
|
30
|
+
<ol class="inline-breadcrumb-list">
|
31
|
+
<li>
|
32
|
+
<%= manual_home_link() %>
|
33
|
+
</li>
|
34
|
+
<li>
|
35
|
+
<a href="<%= function_index_url() %>"><%= _('All Functions') %></a>
|
36
|
+
</li>
|
37
|
+
<li>
|
38
|
+
<%=h entry.name %> <% unless entry.public? %>(static)<% end %>
|
39
|
+
</li>
|
40
|
+
</ol>
|
41
|
+
</nav>
|
42
|
+
</header>
|
12
43
|
|
13
44
|
<% headline_init %>
|
14
45
|
<%= headline("#{entry.type_label} #{entry.label}") %>
|
@@ -20,4 +51,3 @@
|
|
20
51
|
<%= compile_function(entry) %>
|
21
52
|
</dd>
|
22
53
|
</dl>
|
23
|
-
|
@@ -2,10 +2,37 @@
|
|
2
2
|
@title = _('Function Index')
|
3
3
|
@description = _('Function Index')
|
4
4
|
%>
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
<% if @conf[:canonical_base_url] %>
|
6
|
+
<script type="application/ld+json">
|
7
|
+
<%=
|
8
|
+
breadcrumb_json_ld(
|
9
|
+
[
|
10
|
+
{
|
11
|
+
name: manual_home_name,
|
12
|
+
url: absolute_url_to(@urlmapper.document_url('index'))
|
13
|
+
},
|
14
|
+
{
|
15
|
+
name: _('All Functions'),
|
16
|
+
url: canonical_url
|
17
|
+
}
|
18
|
+
]
|
19
|
+
)
|
20
|
+
%>
|
21
|
+
</script>
|
22
|
+
<% end %>
|
23
|
+
<header>
|
24
|
+
<nav>
|
25
|
+
<ol class="inline-breadcrumb-list">
|
26
|
+
<li>
|
27
|
+
<%= manual_home_link() %>
|
28
|
+
</li>
|
29
|
+
<li>
|
30
|
+
<%= _('All Functions') %>
|
31
|
+
</li>
|
32
|
+
</ol>
|
33
|
+
</nav>
|
34
|
+
</header>
|
35
|
+
|
9
36
|
<%
|
10
37
|
headline_init
|
11
38
|
%>
|
@@ -24,4 +51,3 @@
|
|
24
51
|
headline_pop
|
25
52
|
%>
|
26
53
|
</table>
|
27
|
-
|
@@ -4,7 +4,6 @@
|
|
4
4
|
<%= google_tag_manager %>
|
5
5
|
<%= meta_robots %>
|
6
6
|
<meta http-equiv="Content-Type" content="text/html; charset=<%=h charset() %>">
|
7
|
-
<meta http-equiv="Content-Language" content="ja-JP">
|
8
7
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
9
8
|
<link rel="stylesheet" type="text/css" href="<%=h css_url() %>">
|
10
9
|
<link rel="stylesheet" type="text/css" href="<%=h custom_css_url("syntax-highlight.css") %>">
|
@@ -12,8 +11,9 @@
|
|
12
11
|
<% if @conf[:canonical_base_url] %>
|
13
12
|
<link rel="canonical" href="<%= canonical_url() %>">
|
14
13
|
<% end %>
|
15
|
-
<title><%=h @title %> (Ruby <%=h ruby_version %>)</title>
|
14
|
+
<title><%=h @title %> (Ruby <%=h ruby_version %> リファレンスマニュアル)</title>
|
16
15
|
<meta name="description" content="<%=h @description %>">
|
16
|
+
<script src="<%=h custom_js_url('script.js') %>"></script>
|
17
17
|
</head>
|
18
18
|
<body>
|
19
19
|
<%= yield %>
|
@@ -22,7 +22,7 @@
|
|
22
22
|
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/3.0/88x31.png" />
|
23
23
|
</a>
|
24
24
|
|
25
|
-
フィードバックは<a href="https://github.com/rurema/doctree">こちら</a>
|
26
|
-
</div>
|
25
|
+
フィードバックは<a href="https://github.com/rurema/doctree/issues/new" id="feedback-link">こちら</a>
|
26
|
+
<script>if (window.URLSearchParams) { document.getElementById("feedback-link").search = new URLSearchParams({'body': document.location}); }</script></div>
|
27
27
|
</body>
|
28
28
|
</html>
|
@@ -2,11 +2,44 @@
|
|
2
2
|
@title = "library #{@entry.name}"
|
3
3
|
@description = @entry.description
|
4
4
|
%>
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
<% if @conf[:canonical_base_url] %>
|
6
|
+
<script type="application/ld+json">
|
7
|
+
<%=
|
8
|
+
breadcrumb_json_ld(
|
9
|
+
[
|
10
|
+
{
|
11
|
+
name: manual_home_name,
|
12
|
+
url: absolute_url_to(@urlmapper.document_url('index'))
|
13
|
+
},
|
14
|
+
{
|
15
|
+
name: _('All Libraries'),
|
16
|
+
url: absolute_url_to(library_index_url),
|
17
|
+
},
|
18
|
+
{
|
19
|
+
name: friendly_library_name(@entry.name),
|
20
|
+
url: canonical_url
|
21
|
+
}
|
22
|
+
]
|
23
|
+
)
|
24
|
+
%>
|
25
|
+
</script>
|
26
|
+
<% end %>
|
27
|
+
<header>
|
28
|
+
<nav>
|
29
|
+
<ol class="inline-breadcrumb-list">
|
30
|
+
<li>
|
31
|
+
<%= manual_home_link() %>
|
32
|
+
</li>
|
33
|
+
<li>
|
34
|
+
<a href="<%= library_index_url() %>"><%= _('All Libraries') %></a>
|
35
|
+
</li>
|
36
|
+
<li>
|
37
|
+
<%= friendly_library_name(@entry.name) %>
|
38
|
+
</li>
|
39
|
+
</ol>
|
40
|
+
</nav>
|
41
|
+
</header>
|
42
|
+
|
10
43
|
<%
|
11
44
|
headline_init
|
12
45
|
%>
|
@@ -75,4 +108,3 @@
|
|
75
108
|
<% end %>
|
76
109
|
</code></p>
|
77
110
|
<% end %>
|
78
|
-
|
@@ -2,10 +2,37 @@
|
|
2
2
|
@title = _('Library Index')
|
3
3
|
@description = _('Library Index')
|
4
4
|
%>
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
<% if @conf[:canonical_base_url] %>
|
6
|
+
<script type="application/ld+json">
|
7
|
+
<%=
|
8
|
+
breadcrumb_json_ld(
|
9
|
+
[
|
10
|
+
{
|
11
|
+
name: manual_home_name,
|
12
|
+
url: absolute_url_to(@urlmapper.document_url('index'))
|
13
|
+
},
|
14
|
+
{
|
15
|
+
name: _('All Libraries'),
|
16
|
+
url: canonical_url
|
17
|
+
}
|
18
|
+
]
|
19
|
+
)
|
20
|
+
%>
|
21
|
+
</script>
|
22
|
+
<% end %>
|
23
|
+
<header>
|
24
|
+
<nav>
|
25
|
+
<ol class="inline-breadcrumb-list">
|
26
|
+
<li>
|
27
|
+
<%= manual_home_link() %>
|
28
|
+
</li>
|
29
|
+
<li>
|
30
|
+
<%= _('All Libraries') %>
|
31
|
+
</li>
|
32
|
+
</ol>
|
33
|
+
</nav>
|
34
|
+
</header>
|
35
|
+
|
9
36
|
<%
|
10
37
|
headline_init
|
11
38
|
%>
|