Skip to content

Commit 40fd2bc

Browse files
committed
removed unnecessary dependencies
1 parent 2e368bf commit 40fd2bc

File tree

8 files changed

+14
-85
lines changed

8 files changed

+14
-85
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ jobs:
4747
- name: Build Astro site
4848
run: npm run build
4949

50-
- name: Generate Pagefind search index
51-
run: npx pagefind --site dist
52-
5350
- name: Upload artifact
5451
uses: actions/upload-pages-artifact@v3
5552
with:

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
A static site catalog that aggregates Nextflow modules and subworkflows from multiple repositories. Built with [Astro](https://astro.build) and deployed to GitHub Pages.
44

5+
**Live site: [bioimagetools.github.io/nf-module-aggregator](https://bioimagetools.github.io/nf-module-aggregator/)**
6+
57
## Features
68

79
- Aggregates modules from multiple nf-core-style repositories
@@ -189,9 +191,6 @@ npm run fetch-modules
189191
# Build the site
190192
npm run build
191193

192-
# Generate search index
193-
npx pagefind --site dist
194-
195194
# Deploy the ./dist directory to your hosting provider
196195
```
197196

@@ -220,10 +219,6 @@ Configure which repositories to fetch modules from:
220219
}
221220
```
222221

223-
## Search
224-
225-
The site uses [Pagefind](https://pagefind.app/) for client-side search. The search index is generated during the build process and enables fast, full-text search across all module content.
226-
227222
## License
228223

229224
MIT

src/components/ModuleCard.astro

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@ const displayName = org ? `${org}/${name}` : name;
1818

1919
<article
2020
class="module-card bg-white rounded-lg border border-gray-200 p-6 hover:border-blue-300"
21-
data-pagefind-body
22-
data-org={org}
21+
data-org={org}
2322
data-type={type}
2423
data-searchtext={searchText}
2524
>
2625
<div class="flex items-start justify-between gap-4">
2726
<div class="flex-1 min-w-0">
2827
<div class="flex items-center gap-2">
29-
<h3 class="text-lg font-semibold text-gray-900 truncate" data-pagefind-meta="title">
28+
<h3 class="text-lg font-semibold text-gray-900 truncate">
3029
<a href={`${base}modules/${slug}/`} class="hover:text-blue-600 transition-colors">
3130
{displayName}
3231
</a>
@@ -38,7 +37,7 @@ const displayName = org ? `${org}/${name}` : name;
3837
)}
3938
</div>
4039

41-
<p class="mt-2 text-gray-600 text-sm line-clamp-2" data-pagefind-meta="description">
40+
<p class="mt-2 text-gray-600 text-sm line-clamp-2">
4241
{description}
4342
</p>
4443

@@ -47,8 +46,7 @@ const displayName = org ? `${org}/${name}` : name;
4746
{tags.slice(0, 4).map((tag) => (
4847
<span
4948
class="inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-gray-100 text-gray-600"
50-
data-pagefind-filter="tag"
51-
>
49+
>
5250
{tag}
5351
</span>
5452
))}

src/components/ModuleListItem.astro

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ const displayName = org ? `${org}/${name}` : name;
1717

1818
<div
1919
class="module-list-item px-4 py-3 hover:bg-gray-50 transition-colors"
20-
data-pagefind-body
21-
data-org={org}
20+
data-org={org}
2221
data-type={type}
2322
data-searchtext={searchText}
2423
>
@@ -27,16 +26,15 @@ const displayName = org ? `${org}/${name}` : name;
2726
<a
2827
href={`${base}modules/${slug}/`}
2928
class="font-medium text-gray-900 hover:text-blue-600 transition-colors truncate"
30-
data-pagefind-meta="title"
31-
>
29+
>
3230
{displayName}
3331
</a>
3432
{type && (
3533
<span class={`shrink-0 inline-flex items-center px-2 py-0.5 rounded text-xs font-medium ${type === 'subworkflow' ? 'bg-purple-100 text-purple-700' : 'bg-blue-100 text-blue-700'}`}>
3634
{type}
3735
</span>
3836
)}
39-
<span class="hidden sm:block text-gray-400 text-sm truncate" data-pagefind-meta="description">
37+
<span class="hidden sm:block text-gray-400 text-sm truncate">
4038
{description}
4139
</span>
4240
</div>
@@ -47,8 +45,7 @@ const displayName = org ? `${org}/${name}` : name;
4745
{keywords.slice(0, 2).map((keyword) => (
4846
<span
4947
class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-gray-100 text-gray-600"
50-
data-pagefind-filter="tag"
51-
>
48+
>
5249
{keyword}
5350
</span>
5451
))}

src/components/SearchBar.astro

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

src/layouts/BaseLayout.astro

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,8 @@ const base = import.meta.env.BASE_URL;
1616
<meta name="description" content={description} />
1717
<link rel="icon" type="image/svg+xml" href={`${base}favicon.svg`} />
1818
<title>{title}</title>
19-
20-
<!-- Pagefind UI -->
21-
<link href={`${base}pagefind/pagefind-ui.css`} rel="stylesheet" />
22-
<script is:inline define:vars={{ base }}>
23-
window.pagefindBasePath = base;
24-
</script>
2519
</head>
2620
<body class="min-h-screen bg-gray-50 text-gray-900">
2721
<slot />
28-
29-
<!-- Pagefind UI Script -->
30-
<script is:inline>
31-
window.addEventListener('DOMContentLoaded', () => {
32-
const script = document.createElement('script');
33-
script.src = window.pagefindBasePath + 'pagefind/pagefind-ui.js';
34-
script.onload = () => {
35-
new PagefindUI({
36-
element: '#search',
37-
showSubResults: true,
38-
showImages: false,
39-
baseUrl: window.pagefindBasePath,
40-
});
41-
};
42-
document.head.appendChild(script);
43-
});
44-
</script>
4522
</body>
4623
</html>

src/pages/modules/[slug].astro

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const displayName = org ? `${org}/${module.name}` : module.name;
9898
<BaseLayout title={`${displayName} - Nextflow Module Catalog`} description={module.description}>
9999
<Header />
100100

101-
<main class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12" data-pagefind-body>
101+
<main class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
102102
<!-- Breadcrumb -->
103103
<nav class="mb-8">
104104
<a href={base} class="text-blue-600 hover:text-blue-800 transition-colors">
@@ -111,14 +111,14 @@ const displayName = org ? `${org}/${module.name}` : module.name;
111111
<div class="flex items-start justify-between gap-4 flex-wrap">
112112
<div class="flex-1">
113113
<div class="flex items-center gap-3 flex-wrap">
114-
<h1 class="text-3xl font-bold text-gray-900" data-pagefind-meta="title">
114+
<h1 class="text-3xl font-bold text-gray-900">
115115
{displayName}
116116
</h1>
117117
<span class={`inline-flex items-center px-2.5 py-1 rounded text-sm font-medium ${module.type === 'subworkflow' ? 'bg-purple-100 text-purple-700' : 'bg-blue-100 text-blue-700'}`}>
118118
{module.type}
119119
</span>
120120
</div>
121-
<p class="mt-3 text-lg text-gray-600" data-pagefind-meta="description">
121+
<p class="mt-3 text-lg text-gray-600">
122122
{module.description}
123123
</p>
124124
</div>
@@ -135,9 +135,7 @@ const displayName = org ? `${org}/${module.name}` : module.name;
135135
<div class="mt-4 flex flex-wrap gap-2">
136136
{module.keywords.map((keyword) => (
137137
<span
138-
class="inline-flex items-center px-2.5 py-1 rounded-md text-sm font-medium bg-gray-100 text-gray-600"
139-
data-pagefind-filter="tag"
140-
>
138+
class="inline-flex items-center px-2.5 py-1 rounded-md text-sm font-medium bg-gray-100 text-gray-600" >
141139
{keyword}
142140
</span>
143141
))}

src/styles/global.css

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
@import 'tailwindcss';
22

3-
/* Pagefind UI customizations */
4-
:root {
5-
--pagefind-ui-scale: 1;
6-
--pagefind-ui-primary: #2563eb;
7-
--pagefind-ui-text: #1f2937;
8-
--pagefind-ui-background: #ffffff;
9-
--pagefind-ui-border: #e5e7eb;
10-
--pagefind-ui-tag: #f3f4f6;
11-
--pagefind-ui-border-width: 1px;
12-
--pagefind-ui-border-radius: 8px;
13-
--pagefind-ui-font: system-ui, -apple-system, sans-serif;
14-
}
15-
163
/* Module card hover effects */
174
.module-card {
185
transition: transform 0.2s ease, box-shadow 0.2s ease;

0 commit comments

Comments
 (0)