feat: Search improvements
This commit is contained in:
Родитель
0eae41409a
Коммит
d21deca70c
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "2.0.0.25",
|
||||
"version": "2.0.0.26",
|
||||
"engine": "Eleventy 2.0",
|
||||
"title": "Stride Game Engine",
|
||||
"description": "C# Stride Game Engine is a powerful and versatile game development engine that is based on the C# programming language",
|
||||
|
|
|
@ -74,6 +74,8 @@ permalink: /scripts/search.js
|
|||
return '📝';
|
||||
case 'contributors':
|
||||
return '🌟';
|
||||
case 'community-resources':
|
||||
return '🏋🏽';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
|
@ -134,7 +136,7 @@ permalink: /scripts/search.js
|
|||
var docs = Promise.resolve();
|
||||
|
||||
if({{site.docs-search}}) {
|
||||
docs = fetch(`{{site.links.docs-search-url}}`).then(success);
|
||||
docs = fetch(`{{site.links.docs-search-url}}?version={{site.version}}`).then(success);
|
||||
}
|
||||
|
||||
Promise.all([web, docs])
|
||||
|
|
Загрузка…
Ссылка в новой задаче