al_search 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d719de74a84d552fca7d9e021ef28f278fc0da42589a7014d63a66dad158bc39
4
- data.tar.gz: 4ff5ef3794f99ead0306bc6a387f597102fe70b425d5f4d9c0189fd6b2c40dc4
3
+ metadata.gz: 0c9f169d349ba63a68241bf20397e5573173b452715675ab4c4f1668763787ca
4
+ data.tar.gz: c9a1cab78aa031e14cec298752a69a7b3a8c60658b56470fa67c8a23fa9dc24d
5
5
  SHA512:
6
- metadata.gz: 37e7d996b24dab6e9f5e74253b4a627be69175a8ea953a3571831aff9cef99981853904fdeaea17bfb11a5d1d08486ae98b94513ade0925963da68222c908dba
7
- data.tar.gz: c82f09b9dcfc64a307021836227df9713917b3f9b2d5d6668103ba6c66b3c8e341faefb4b2cb748b93ad1e5c2e904af93dc18b7bfba24873d62602194f9af12b
6
+ metadata.gz: bb46bb6e60376b1c54cd923329f712849189d1c54c3c46ffa58c72a3844277961f55d6faff588483f7879abe4fc8e1febc7fbca5f1937f0f4d34c177f630c37a
7
+ data.tar.gz: f537ebed6820bfd7374b648113bc84b7f7e2e4c8fe99ef7a186a2bdac9674eb660bafda16a79a703d544cc467e485d6468bf38cc93a277c92d7354c6f4f62468
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.3 - 2026-07-27
4
+
5
+ - Replaced the full `site.pages` scan used to find the home page title with a single `where`/`map`/`first` filter chain in the generated search data.
6
+ - Added regression coverage asserting the home navigation entry resolves the title of the page whose permalink is `/`.
7
+
3
8
  ## 1.0.2 - 2026-02-17
4
9
 
5
10
  - Hardened navbar search button handling by binding `#search-toggle` directly to `openSearchModal`.
data/README.md CHANGED
@@ -1,6 +1,12 @@
1
- # Al-Search
1
+ # al-search
2
2
 
3
- A Jekyll plugin that provides the al-folio search experience as a standalone module.
3
+ `al_search` provides the search experience for `al-folio` v1.x.
4
+
5
+ ## What it owns
6
+
7
+ - Search runtime payload and setup logic
8
+ - Keyboard shortcut and navbar modal open behavior
9
+ - Search asset packaging (plugin-owned, not `al_folio_core`)
4
10
 
5
11
  ## Installation
6
12
 
@@ -8,8 +14,6 @@ A Jekyll plugin that provides the al-folio search experience as a standalone mod
8
14
  gem 'al_search'
9
15
  ```
10
16
 
11
- Enable in `_config.yml`:
12
-
13
17
  ```yaml
14
18
  plugins:
15
19
  - al_search
@@ -17,6 +21,17 @@ plugins:
17
21
 
18
22
  ## Usage
19
23
 
24
+ Render assets where your layout expects search runtime:
25
+
20
26
  ```liquid
21
27
  {% al_search_assets %}
22
28
  ```
29
+
30
+ ## Ecosystem context
31
+
32
+ - Starter wiring/integration tests live in `al-folio`.
33
+ - Search runtime behavior and component correctness tests live in this plugin.
34
+
35
+ ## Contributing
36
+
37
+ Search behavior and runtime asset updates should be proposed in this repository.
@@ -3,9 +3,7 @@ const ninja = document.querySelector('ninja-keys');
3
3
 
4
4
  // add the home and posts menu items
5
5
  ninja.data = [
6
- {%- for page in site.pages -%}
7
- {%- if page.permalink == '/' -%}{%- assign about_title = page.title | strip -%}{%- endif -%}
8
- {%- endfor -%}
6
+ {%- assign about_title = site.pages | where: "permalink", "/" | map: "title" | first | strip -%}
9
7
  {
10
8
  id: "nav-{{ about_title | slugify }}",
11
9
  title: "{{ about_title | truncatewords: 13 }}",
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: al_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - al-org
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-07-29 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: jekyll
@@ -58,7 +59,7 @@ dependencies:
58
59
  version: '2.0'
59
60
  - - "<"
60
61
  - !ruby/object:Gem::Version
61
- version: '3.0'
62
+ version: '5.0'
62
63
  type: :development
63
64
  prerelease: false
64
65
  version_requirements: !ruby/object:Gem::Requirement
@@ -68,7 +69,7 @@ dependencies:
68
69
  version: '2.0'
69
70
  - - "<"
70
71
  - !ruby/object:Gem::Version
71
- version: '3.0'
72
+ version: '5.0'
72
73
  - !ruby/object:Gem::Dependency
73
74
  name: rake
74
75
  requirement: !ruby/object:Gem::Requirement
@@ -139,6 +140,7 @@ metadata:
139
140
  allowed_push_host: https://rubygems.org
140
141
  homepage_uri: https://github.com/al-org-dev/al-search
141
142
  source_code_uri: https://github.com/al-org-dev/al-search
143
+ post_install_message:
142
144
  rdoc_options: []
143
145
  require_paths:
144
146
  - lib
@@ -153,7 +155,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
155
  - !ruby/object:Gem::Version
154
156
  version: '0'
155
157
  requirements: []
156
- rubygems_version: 4.0.6
158
+ rubygems_version: 3.5.22
159
+ signing_key:
157
160
  specification_version: 4
158
161
  summary: Search modal assets and data generation for Jekyll
159
162
  test_files: []