Skip to content

Commit 046e9a4

Browse files
Merge pull request #135 from rurema/update-generated-documents
Update generated documents
2 parents 978b2aa + cc1aa25 commit 046e9a4

22 files changed

Lines changed: 253 additions & 8 deletions

db/bitclust.rev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
13b72d7e3ae9404ab099fee7cc22868d4aa758a6
1+
4af72c373ad06494174df5de6be1ddff98335324

html/ja/3.0/js/search_data.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

html/ja/3.0/js/search_init.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,27 @@
1313
* set inline in the page <head> by the layout template.
1414
*/
1515
(function() {
16+
// BitClust extension (the vendored Aliki files above are kept verbatim).
17+
//
18+
// RDoc's parseQuery() rewrites "." to "::" (its class-method separator) and
19+
// matches "::"/"."/"#" queries against full_name instead of name. Ruby's
20+
// special variables are indexed with their "$" sigil in full_name, and one of
21+
// them ($.) contains a literal "." — so a "$." query would become "$::" and
22+
// never match. Wrap parseQuery so that any "$"-prefixed (special variable)
23+
// query keeps its literal text and is matched against full_name.
24+
// See https://github.com/rurema/bitclust/issues/194
25+
if (typeof parseQuery === 'function') {
26+
var alikiParseQuery = parseQuery;
27+
parseQuery = function(query) {
28+
var q = alikiParseQuery(query);
29+
if (query.charAt(0) === '$') {
30+
q.normalized = query.toLowerCase(); // undo the "." -> "::" rewrite
31+
q.matchesFullName = true; // the "$" sigil lives in full_name
32+
}
33+
return q;
34+
};
35+
}
36+
1637
function createSearchInstance(input, result) {
1738
if (!input || !result) return null;
1839

html/ja/3.0/search.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,20 @@
9696
border-radius: 2px;
9797
}
9898

99+
/* On hover the global `a:hover` rule paints the whole anchor with the #33a
100+
accent and white text. Round the anchor (and pad it slightly) so its
101+
background follows the rounded highlight instead of poking square corners
102+
out behind it, and recolor the highlighted match so the yellow background
103+
stays legible against the white-on-blue hover text. */
104+
.search-results .search-match > a {
105+
padding: 1px;
106+
border-radius: 3px;
107+
}
108+
109+
.search-results .search-match > a:hover > em {
110+
color: #33a;
111+
}
112+
99113
.search-type {
100114
display: inline-block;
101115
margin-left: 0.5em;

html/ja/3.1/js/search_data.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

html/ja/3.1/js/search_init.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,27 @@
1313
* set inline in the page <head> by the layout template.
1414
*/
1515
(function() {
16+
// BitClust extension (the vendored Aliki files above are kept verbatim).
17+
//
18+
// RDoc's parseQuery() rewrites "." to "::" (its class-method separator) and
19+
// matches "::"/"."/"#" queries against full_name instead of name. Ruby's
20+
// special variables are indexed with their "$" sigil in full_name, and one of
21+
// them ($.) contains a literal "." — so a "$." query would become "$::" and
22+
// never match. Wrap parseQuery so that any "$"-prefixed (special variable)
23+
// query keeps its literal text and is matched against full_name.
24+
// See https://github.com/rurema/bitclust/issues/194
25+
if (typeof parseQuery === 'function') {
26+
var alikiParseQuery = parseQuery;
27+
parseQuery = function(query) {
28+
var q = alikiParseQuery(query);
29+
if (query.charAt(0) === '$') {
30+
q.normalized = query.toLowerCase(); // undo the "." -> "::" rewrite
31+
q.matchesFullName = true; // the "$" sigil lives in full_name
32+
}
33+
return q;
34+
};
35+
}
36+
1637
function createSearchInstance(input, result) {
1738
if (!input || !result) return null;
1839

html/ja/3.1/search.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,20 @@
9696
border-radius: 2px;
9797
}
9898

99+
/* On hover the global `a:hover` rule paints the whole anchor with the #33a
100+
accent and white text. Round the anchor (and pad it slightly) so its
101+
background follows the rounded highlight instead of poking square corners
102+
out behind it, and recolor the highlighted match so the yellow background
103+
stays legible against the white-on-blue hover text. */
104+
.search-results .search-match > a {
105+
padding: 1px;
106+
border-radius: 3px;
107+
}
108+
109+
.search-results .search-match > a:hover > em {
110+
color: #33a;
111+
}
112+
99113
.search-type {
100114
display: inline-block;
101115
margin-left: 0.5em;

html/ja/3.2/js/search_data.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

html/ja/3.2/js/search_init.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,27 @@
1313
* set inline in the page <head> by the layout template.
1414
*/
1515
(function() {
16+
// BitClust extension (the vendored Aliki files above are kept verbatim).
17+
//
18+
// RDoc's parseQuery() rewrites "." to "::" (its class-method separator) and
19+
// matches "::"/"."/"#" queries against full_name instead of name. Ruby's
20+
// special variables are indexed with their "$" sigil in full_name, and one of
21+
// them ($.) contains a literal "." — so a "$." query would become "$::" and
22+
// never match. Wrap parseQuery so that any "$"-prefixed (special variable)
23+
// query keeps its literal text and is matched against full_name.
24+
// See https://github.com/rurema/bitclust/issues/194
25+
if (typeof parseQuery === 'function') {
26+
var alikiParseQuery = parseQuery;
27+
parseQuery = function(query) {
28+
var q = alikiParseQuery(query);
29+
if (query.charAt(0) === '$') {
30+
q.normalized = query.toLowerCase(); // undo the "." -> "::" rewrite
31+
q.matchesFullName = true; // the "$" sigil lives in full_name
32+
}
33+
return q;
34+
};
35+
}
36+
1637
function createSearchInstance(input, result) {
1738
if (!input || !result) return null;
1839

html/ja/3.2/search.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,20 @@
9696
border-radius: 2px;
9797
}
9898

99+
/* On hover the global `a:hover` rule paints the whole anchor with the #33a
100+
accent and white text. Round the anchor (and pad it slightly) so its
101+
background follows the rounded highlight instead of poking square corners
102+
out behind it, and recolor the highlighted match so the yellow background
103+
stays legible against the white-on-blue hover text. */
104+
.search-results .search-match > a {
105+
padding: 1px;
106+
border-radius: 3px;
107+
}
108+
109+
.search-results .search-match > a:hover > em {
110+
color: #33a;
111+
}
112+
99113
.search-type {
100114
display: inline-block;
101115
margin-left: 0.5em;

0 commit comments

Comments
 (0)