Skip to content

Commit

Permalink
Simplify package search fields (#454)
Browse files Browse the repository at this point in the history
Signed-off-by: R. Kent James <[email protected]>
  • Loading branch information
rkent authored Jan 8, 2025
1 parent df6c78c commit 45da01c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions _plugins/rosindex_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1578,8 +1578,7 @@ def generate(site)
'tags' => (p['tags'] + package_name.split('_')) * " ",
'name' => package_name,
'repo_name' => repo.name,
'released' => if repo_snapshot.released then 'is:released' else '' end,
'unreleased' => if repo_snapshot.released then 'is:unreleased' else '' end,
'released' => if repo_snapshot.released then 'released' else '' end,
'version' => p['version'],
'description' => p['description'].strip,
'maintainers' => p['maintainers'] * ", ",
Expand All @@ -1600,9 +1599,8 @@ def generate(site)
puts ("Precompiling lunr index for packages...").blue
reference_field = 'id'
indexed_fields = [
'baseurl', 'instance', 'url', 'tags:100','name:100',
'version', 'description:50', 'maintainers', 'authors',
'distro','readme', 'released', 'unreleased', 'org'
'tags:100', 'name:100', 'description:50', 'maintainers', 'authors',
'readme', 'released', 'org', 'repo'
]
site.static_files.push(*precompile_lunr_index(
site, packages_index, reference_field, indexed_fields,
Expand Down

0 comments on commit 45da01c

Please sign in to comment.