Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #980 from perl6/remove-predefined
inline predefined-search-items
  • Loading branch information
coke committed Oct 26, 2016
2 parents 4ec4dbd + 42c2cd7 commit 517b4ad
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion htmlify.p6
Expand Up @@ -758,7 +758,7 @@ sub write-search-file() {
$_, $url
);
});
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")));
spurt("html/js/search.js", $template.subst("ITEMS", @items.join(",\n") ).subst("WARNING", "DO NOT EDIT generated by $?FILE:$?LINE"));
}

sub write-disambiguation-files() {
Expand Down
3 changes: 0 additions & 3 deletions predefined-search-items

This file was deleted.

14 changes: 13 additions & 1 deletion template/search_template.js
Expand Up @@ -66,7 +66,19 @@ $(function(){
},
position: { my: "right top", at: "right bottom", of: "#search div" },
source: [
PREDEFINED
{
category: "Syntax",
value: "# single-line comment",
url: "/language/syntax#Single-line_comments"
}, {
category: "Syntax",
value: "#` multi-line comment"
url: "/language/syntax#Multi-line_/_embedded_comments"
}, {
category: "Signature",
value: ";; (long name)",
url: "/type/Signature#index-entry-Long_Names"
},
ITEMS
],
select: function (event, ui) { window.location.href = ui.item.url; },
Expand Down

0 comments on commit 517b4ad

Please sign in to comment.