Skip to content

Commit 5cfaaad

Browse files
authored
Deploy latest website updates to staging (#351)
* 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
1 parent a0db1a2 commit 5cfaaad

File tree

7 files changed

+464
-234
lines changed

7 files changed

+464
-234
lines changed

_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.

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"devDependencies": {
1818
"@11ty/eleventy": "^3.1.2",
1919
"@11ty/eleventy-plugin-rss": "^2.0.4",
20-
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.1"
20+
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.2"
2121
},
2222
"dependencies": {
2323
"@11ty/eleventy-fetch": "^5.1.0",
@@ -26,6 +26,6 @@
2626
"lunr": "^2.3.9",
2727
"markdown-it-anchor": "^9.2.0",
2828
"markdown-it-table-of-contents": "^0.9.0",
29-
"sass": "^1.89.2"
29+
"sass": "^1.90.0"
3030
}
3131
}

posts/2023-10-07-community-meeting-october-2023.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: "Community Meeting October 2023"
33
author: aggror
4-
popular: true
54
tags: ['.NET', 'Meeting', 'Avalonia']
65
---
76

0 commit comments

Comments
 (0)