Skip to content

Commit 517b4ad

Browse files
authored
Merge pull request #980 from perl6/remove-predefined
inline predefined-search-items
2 parents 4ec4dbd + 42c2cd7 commit 517b4ad

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

htmlify.p6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ sub write-search-file() {
758758
$_, $url
759759
);
760760
});
761-
spurt("html/js/search.js", $template.subst("ITEMS", @items.join(",\n") ).subst("WARNING", "DO NOT EDIT generated by $?FILE:$?LINE").subst("PREDEFINED", slurp("predefined-search-items")));
761+
spurt("html/js/search.js", $template.subst("ITEMS", @items.join(",\n") ).subst("WARNING", "DO NOT EDIT generated by $?FILE:$?LINE"));
762762
}
763763

764764
sub write-disambiguation-files() {

predefined-search-items

Lines changed: 0 additions & 3 deletions
This file was deleted.

template/search_template.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,19 @@ $(function(){
6666
},
6767
position: { my: "right top", at: "right bottom", of: "#search div" },
6868
source: [
69-
PREDEFINED
69+
{
70+
category: "Syntax",
71+
value: "# single-line comment",
72+
url: "/language/syntax#Single-line_comments"
73+
}, {
74+
category: "Syntax",
75+
value: "#` multi-line comment"
76+
url: "/language/syntax#Multi-line_/_embedded_comments"
77+
}, {
78+
category: "Signature",
79+
value: ";; (long name)",
80+
url: "/type/Signature#index-entry-Long_Names"
81+
},
7082
ITEMS
7183
],
7284
select: function (event, ui) { window.location.href = ui.item.url; },

0 commit comments

Comments
 (0)