Skip to content

Commit 405d878

Browse files
VaclavEliasCopilot
andauthored
Deploy latest website updates to production (#352)
* chore: NPM packages bumped * feat: Update index.html and silk.net-logo.svg - Added a new section in `index.html` promoting Silk.NET, including a description of its features and a call-to-action button linking to its website. - Added the `silk.net-logo.svg` file * feat: sponsor.html - Update sponsor template and styling - Removed a comment regarding the styling of widgets. - Replaced the inclusion of `oc_sponsors.njk` with `open-collective-sponsors.njk`. * refactor: File renamed and styling updated * refactor: Dependency removed * Initial plan * Bump packages to latest versions: @11ty/eleventy 3.1.2, bootstrap 5.3.7, sass 1.89.2 Co-authored-by: VaclavElias <4528464+VaclavElias@users.noreply.github.com> * chore: NPM packages bumped * feat: Adds search result pagination (#350) * feat: Implement pagination for search results - Modified search results display logic to utilize the new pagination system, slicing results based on the current page. - Implemented event delegation for pagination click handling, allowing users to navigate through pages of search results. - Made slight modifications to the HTML structure to ensure proper positioning of search results and pagination controls. * refactor: search.liquid removed and search.js added instead - Added a JSON configuration script in `search.liquid` for documentation search settings, URLs, and versioning. - Updated search results display logic to utilize the new configuration for generating documentation links. * feat: Boolean search added * chore: Post removed from popular section * style: Styling updates * refactor: Search improvements * refactor: Search logic updates * Update version to 2.0.0.32 in site.json --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent fcb6bb4 commit 405d878

13 files changed

Lines changed: 723 additions & 1283 deletions

_data/site.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.0.0.31",
2+
"version": "2.0.0.32",
33
"engine": "Eleventy 3.0",
44
"title": "Stride Game Engine",
55
"description": "C# Stride Game Engine is a powerful and versatile game development engine that is based on the C# programming language",
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="card mt-5">
22
<div class="oc-sponsors-container">
33
<div class="tier-container">
4-
<div class="tier-item gold">GOLD STRIDERS</div>
5-
<div class="tier-item">
4+
<div class="tier-item gold fw-bold display-4 text-dark">Gold Striders</div>
5+
<div class="tier-item">
66
{% for sponsor in gold_sponsors %}
77
<div class="img-container">
88
{% if sponsor.image %}
@@ -16,8 +16,8 @@
1616
</div>
1717
</div>
1818
<div class="tier-container">
19-
<div class="tier-item silver">SILVER STRIDERS</div>
20-
<div class="tier-item">
19+
<div class="tier-item silver fw-bold display-4 text-dark">Silver Striders</div>
20+
<div class="tier-item">
2121
{% for sponsor in silver_sponsors %}
2222
<div class="img-container">
2323
{% if sponsor.image %}
@@ -31,8 +31,8 @@
3131
</div>
3232
</div>
3333
<div class="tier-container">
34-
<div class="tier-item bronze">BRONZE STRIDERS</div>
35-
<div class="tier-item">
34+
<div class="tier-item bronze fw-bold display-4 text-dark">Bronze Striders</div>
35+
<div class="tier-item">
3636
{% for sponsor in bronze_sponsors %}
3737
<div class="img-container">
3838
{% if sponsor.image %}

_includes/search-form.html

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,60 @@
33
<div class="mb-3">
44
<input class="form-control" id="{{id}}" name="query" type="text" value="" autofocus tabindex="0" aria-label="Search">
55
</div>
6+
7+
{%- comment -%}
8+
Only show filters on the /search page AND only for the sidebar/aside search form.
9+
The aside include uses id="search-form-post"; header uses a different id.
10+
This avoids duplicate element IDs and label-target conflicts.
11+
{%- endcomment -%}
12+
{% if page.url == "/search/" and id == "search-form-post" %}
13+
<div id="source-filters" class="mb-3">
14+
<div class="row g-2">
15+
<div class="col-12">
16+
<div class="form-check">
17+
<input class="form-check-input" type="checkbox" value="manual" id="sf-manual" checked>
18+
<label class="form-check-label" for="sf-manual">📚 Manual</label>
19+
</div>
20+
</div>
21+
<div class="col-12">
22+
<div class="form-check">
23+
<input class="form-check-input" type="checkbox" value="tutorials" id="sf-tutorials" checked>
24+
<label class="form-check-label" for="sf-tutorials">🎓 Tutorial</label>
25+
</div>
26+
</div>
27+
<div class="col-12">
28+
<div class="form-check">
29+
<input class="form-check-input" type="checkbox" value="api" id="sf-api" checked>
30+
<label class="form-check-label" for="sf-api">🔧 API</label>
31+
</div>
32+
</div>
33+
<div class="col-12">
34+
<div class="form-check">
35+
<input class="form-check-input" type="checkbox" value="ReleaseNotes" id="sf-releasenotes" checked>
36+
<label class="form-check-label" for="sf-releasenotes">📝 Release Notes</label>
37+
</div>
38+
</div>
39+
<div class="col-12">
40+
<div class="form-check">
41+
<input class="form-check-input" type="checkbox" value="contributors" id="sf-contributors" checked>
42+
<label class="form-check-label" for="sf-contributors">🌟 Contributors</label>
43+
</div>
44+
</div>
45+
<div class="col-12">
46+
<div class="form-check">
47+
<input class="form-check-input" type="checkbox" value="community-resources" id="sf-community-resources" checked>
48+
<label class="form-check-label" for="sf-community-resources">🏋🏽 Community Resources</label>
49+
</div>
50+
</div>
51+
<div class="col-12">
52+
<div class="form-check">
53+
<input class="form-check-input" type="checkbox" value="web" id="sf-web" checked>
54+
<label class="form-check-label" for="sf-web">🕸️ Website</label>
55+
</div>
56+
</div>
57+
</div>
58+
</div>
59+
{% endif %}
60+
661
<button class="btn btn-stride" name="submit" type="submit" value="Search">Search</button>
762
</form>

assets/scripts/search.liquid

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

css/styles.scss

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@import "custom-bootstrap";
22
@import "/css/all.min.css";
3-
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
43

54
:root {
65
--main-shadow: 2px 2px 8px #0000001a;
@@ -297,7 +296,7 @@ svg path.logo-path {
297296
.tier-container {
298297
display: flex;
299298
flex-direction: column;
300-
299+
301300
@media screen and (min-width: 1280px) {
302301
flex-direction: row;
303302
}
@@ -309,22 +308,18 @@ svg path.logo-path {
309308
gap: 20px;
310309
align-items: center;
311310
justify-content: center;
312-
font-family: "Kanit", serif;
313-
font-weight: 900;
314-
font-size: 46px;
315-
letter-spacing: -2px;
316311
padding: 40px 12px;
317312
flex-wrap: wrap;
318313
}
319314

320-
.tier-item.gold {
315+
.tier-item.gold {
321316
background-color: rgb(221, 205, 62);
322317
}
323318

324319
.tier-item.silver {
325320
background-color: silver;
326321
}
327-
322+
328323
.tier-item.bronze {
329324
background-color: rgb(216, 156, 78);
330325
}

images/home/silk.net-logo.svg

Lines changed: 1 addition & 0 deletions
Loading

index.html

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,27 @@ <h2 class="h3 mb-3 fw-bold text-stride">Collaborate with us</h2>
9393
</div>
9494
</div>
9595
</div>
96+
<div class="col-12">
97+
<div class="card h-100">
98+
<div class="p-5 pull-left">
99+
<h2 class="mb-3 fw-bold">Too high level for you? Try Silk.NET.</h2>
100+
<div class="row">
101+
<div class="col-12 col-md-9">
102+
<p class="lead pe-0 pe-md-4">Stride takes care of most of the low-level game logic for you, and while the engine is fairly modular, you may prefer having full control over those bits of your engine. If that's the case, have a look at Silk.NET! Silk.NET is a powerful set of bindings supported by the .NET Foundation for multimedia applications.</p>
103+
</div>
104+
<div class="col-12 col-md-3">
105+
<a href="https://dotnet.github.io/Silk.NET/"><img src="/images/home/silk.net-logo.svg" style="" alt="Silk.NET Logo" class="img-fluid mt-4 mt-lg-0"></a>
106+
<div class="mt-5 text-lg-center">
107+
<a href="https://dotnet.github.io/Silk.NET/" class="btn btn-lg btn-outline-stride me-md-2">Learn more</a>
108+
</div>
109+
</div>
110+
</div>
111+
</div>
112+
</div>
113+
</div>
96114
</div>
97115
</div>
98-
99116
{% include blog-home.html %}
100-
101117
<div class="container-xl">
102118
<div class="row gy-4 gx-sm-4 justify-content-center mb-5">
103119
<div class="col-12">

0 commit comments

Comments
 (0)