Skip to content

Update search docs to recommend Pagefind over Algolia - #359

Merged
nate-double-u merged 8 commits into
mainfrom
copilot/update-site-search-page
Aug 6, 2026
Merged

nate-double-u merged 8 commits into
mainfrom
copilot/update-site-search-page

Conversation

Copilot AI commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

The site search page still centered Algolia DocSearch and did not mention Pagefind. This updates the comparison to include Pagefind as the primary self-hosted static-site option and moves Algolia lower in the page.

  • Search options

    • Add a new Pagefind section with a short description and focused pros/cons
    • Keep DocSearch by Algolia, but move it behind Pagefind and Lunr in the page flow and TOC
  • Recommendation guidance

    • Update the "When Is It Best To Use One Over Another?" section to recommend Pagefind first for projects that want site search without a third-party service
    • Preserve Lunr as an alternative for teams that want a more custom in-browser implementation
  • Content refresh

    • Reframe Algolia tradeoffs around hosted indexing, plan limits, and reduced control relative to self-hosted approaches
- [Google search](#programmable-search-engine-by-google)
- [Pagefind](#pagefind)
- [Lunr](#lunr)
- [DocSearch by Algolia](#docsearch-by-algolia)

Copilot AI linked an issue Jul 22, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Update site search page to remove Algolia and add PageFind Update search docs to recommend Pagefind over Algolia Jul 22, 2026
Copilot AI requested a review from nate-double-u July 22, 2026 17:17

@nate-double-u nate-double-u left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot, let's add Pagefind to the .cspell.yml file, and review this comment from Claude:

Accuracy — the DocSearch "cost" con is misleading for a CNCF (all–open-source) audience.** The new con says "Free plans are limited, and larger indexes may require a paid plan." But DocSearch is free for technical-docs sites, which is exactly this audience — Algolia: "DocSearch is now free for all docs sites", DocSearch program docs. The real trade-offs for DocSearch specifically are: you must apply and be approved, and you must display the "Search by Algolia" logo (or pay to drop it). The PR's third con ("less control… than self-hosted") is accurate and worth keeping. Note this isn't a regression — the old text ("Not entirely free / 10k records") was arguably more wrong — but since you're touching it anyway, worth getting right.

@nate-double-u nate-double-u left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot, another comment worth looking at from Claude:

Minor accuracy — "indexes your built site during your build process."** Pagefind runs as a post-build step against the already-built static output, not during the build. Small wording nit; the Cons ("requires a build step") are consistent. The rest of the Pagefind claims check out, including the on-demand/scales-better-than-in-browser pro, which is Pagefind's actual headline feature.

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

@copilot, let's add Pagefind to the .cspell.yml file, and review this comment from Claude:

Accuracy — the DocSearch "cost" con is misleading for a CNCF (all–open-source) audience.** The new co...

Fixed in 0d156a3. Added Pagefind to .cspell.yml and updated the DocSearch cons to cover approval for the free program, the required "Search by Algolia" logo, and the hosted/self-managed tradeoff.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the TechDocs “Site Search” documentation to position Pagefind as the primary recommended self-hosted/static-site search option, while keeping Algolia DocSearch as a secondary (hosted) alternative.

Changes:

  • Adds a new Pagefind section with pros/cons and updates the page flow/TOC ordering.
  • Moves DocSearch by Algolia below Pagefind and Lunr, and refreshes its pros/cons to emphasize hosted tradeoffs.
  • Updates recommendation guidance to suggest Pagefind first for projects avoiding third-party services.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/search.md Reorders and refreshes search provider guidance; introduces Pagefind and updates recommendations.
.cspell.yml Adds “Pagefind” to the spelling allowlist for the updated docs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/search.md Resolved

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

@copilot, another comment worth looking at from Claude:

Minor accuracy — "indexes your built site during your build process."** Pagefind runs as a post-build step against the already-built st...

Fixed in 25d3068. The Pagefind description now says it indexes the built site as a post-build step.

@nate-double-u nate-double-u left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, but @copilot, looks like you need to fix the file formatting as we have a prettier fail.

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

looks good to me, but @copilot, looks like you need to fix the file formatting as we have a prettier fail.

Fixed — Prettier reformatted a line wrap in the recommendation section. See the latest commit.

Comment thread docs/search.md Resolved
Comment thread docs/search.md Resolved

@nate-double-u nate-double-u left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

good bot.

@nate-double-u
nate-double-u requested a review from chalin July 22, 2026 18:51
Copilot AI and others added 5 commits July 31, 2026 16:23
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Nate W <natew@cncf.io>
Signed-off-by: Nate W <natew@cncf.io>
@chalin
chalin force-pushed the copilot/update-site-search-page branch from 840e80d to 431f801 Compare July 31, 2026 20:23
@netlify

netlify Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cncf-techdocs ready!

Name Link
🔨 Latest commit 26cddeb
🔍 Latest deploy log https://app.netlify.com/projects/cncf-techdocs/deploys/6a74dd58bd703a0008cd364a
😎 Deploy Preview https://deploy-preview-359--cncf-techdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@chalin chalin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified the Pagefind claims against pagefind.app (post-build indexing, on-demand chunked index, zero-config multilingual) and the reworked DocSearch cons against the DocSearch program terms: all accurate. TOC and section order line up, and the deploy preview renders cleanly. Two optional suggestions inline, fine to leave as is.

Nice addition, LGTM!

Comment thread docs/search.md Resolved
Comment thread docs/search.md Resolved
nate-double-u and others added 2 commits August 6, 2026 12:15
Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
Signed-off-by: Nate W <natew@cncf.io>
Co-authored-by: Patrice Chalin <chalin@users.noreply.github.com>
Signed-off-by: Nate W <natew@cncf.io>
@nate-double-u

Copy link
Copy Markdown
Member

Verified the Pagefind claims against pagefind.app (post-build indexing, on-demand chunked index, zero-config multilingual) and the reworked DocSearch cons against the DocSearch program terms: all accurate. TOC and section order line up, and the deploy preview renders cleanly. Two optional suggestions inline, fine to leave as is.

Nice addition, LGTM!

Thanks @chalin! I appreciate the review, and I've applied your suggestions.

I'm going to bypass the merge reqs (2 approvals) to merge this in as is now.

@nate-double-u
nate-double-u merged commit 67dbd1e into main Aug 6, 2026
4 checks passed
@nate-double-u
nate-double-u deleted the copilot/update-site-search-page branch August 6, 2026 19:17
hivecommons-hive Bot added a commit that referenced this pull request Dec 1, 2026
- #481, #428, #359 in dragonflyoss/d7y.io are open pull requests that
  already add the missing reference content, not issues requesting it;
  reframe recommendations/issues as 'review and merge' rather than
  'write content' or 'add labels and bodies'.
- Correct the open-issue count: the docs repo has 2 open issues
  (#427 mobile bug, already labeled bug; #348 Netlify build, unlabeled)
  and 4 open PRs (#486 dependabot, #481, #428, #359), not six open
  issues.
- Retarget the triage/labeling recommendation at #348, the only open
  issue lacking an effort/expertise label.
- Link #481/#428/#359 as /pull/ URLs instead of /issues/.

Verified against the live dragonflyoss/d7y.io repo via the GitHub API.

Signed-off-by: quality <280983584+hivecommons-hive[bot]@users.noreply.github.com>

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: quality <280983584+hivecommons-hive[bot]@users.noreply.github.com>
hivecommons-hive Bot added a commit that referenced this pull request Dec 2, 2026
Addresses a manual /verify pass (pullrequestreview-6157294795) that checked
every material claim against dragonflyoss/d7y.io at commit 8cde5cd, the live
site, the GitHub API, CLOMonitor, and afdocs.

Withdrawn findings (the thing already exists):
- The Quick Start > Kubernetes > Lightweight Deployment page is already an
  end-to-end first-download tutorial with a Verify step and timed pulls.
  Narrowed issue 05 to signposting it instead of writing a new one.
- The homepage already has a 28-organization adopter logo wall, a Join the
  Community section, and a 25-post blog / 30-session video archive; dropped
  or rescoped the related findings and recommendations.
- The docs site already has a Development Guides sidebar category; added it
  to the category list and raised the new-contributor rating from 3 to 4.

Corrected mischaracterizations:
- dragonflyoss/d7y.io#427 is not project-acknowledged: opened by an external
  contributor, self-labeled bug by the reporter, zero comments, no maintainer
  engagement in 5.5 months. Updated analysis.md, implementation.md, and
  issue 01.
- dragonflyoss/d7y.io#348 is Netlify infrastructure maintenance, not a
  good-first-issue fit; dropped issue 09 and replaced the recommendation with
  labeling newly filed issues instead.
- Replaced generic 'uneven feature coverage' with the actual bimodal-depth
  pattern plus stale Docker/Singularity stubs still in the next sidebar.
- Corrected the Open API section description (Preheat/Task APIs only, not
  general Manager REST coverage) and the Nydus out-of-scope description
  (governed subproject, not an unrelated ecosystem project).
- Fixed the 'no evidence of blacklist' claim (one instance remains) and
  reworded the GET STARTED CTA / Quick Start entry-point finding.

Newly confirmed and recorded findings:
- GA4 loads on Netlify deploy previews (confirmed via curl); lowered the GA4
  rating and made issue 09 a concrete gtag CONTEXT=='production' gate.
- Indexing scoping is already correct (noindex + canonical on previews);
  raised that rating and dropped indexing from issue 09.
- Concrete accessibility defects: mismatched footer icon alt text, 41 of 53
  homepage images missing alt text, 8 h1 elements, disabled color-mode
  switch. Seeded into issue 02 instead of leaving an unsupported rating.
- CLOMonitor agent-readiness score (64.29, 5/7 checks) and the specific
  markdown_availability/content_discoverability failures, plus the kapa.ai
  widget already shipped.
- Account custodians: recorded what was checked (Algolia, GA4, Netlify,
  Scarf) and that no custodian documentation exists.
- Minimal website requirements walked against the CNCF checklist (pass:
  copyright/trademark/CNCF hosting/DCO; fail: no CODE_OF_CONDUCT.md/
  CONTRIBUTING.md in d7y.io, personas not identified).
- PR review-latency data (#359 ~11mo changes-requested, #428 ~5mo no review,
  #481 ~3wk no review) added to the content-freshness discussion, with an
  explicit note that freshness was not systematically sampled against v2.5.0.
- The next-by-default navbar/footer links and next/v2.5.0 structural
  divergence, tied to issue #335's freshness goal; lowered content
  maintainability from 4 to 3.
- Chinese-language video sessions (15 pages) as a nuance on the English-only
  i18n note.

Mechanical fixes:
- Byline changed from 'Copilot CLI (AI draft, pending review by ...)' to
  'Quality Hive (@hivecommons-hive)', matching the Hive Commons analysis
  precedent of the hive as author with a named reviewer added after sign-off.
- Removed remaining em-dashes from analysis.md and implementation.md.
- Collapsed issues 06-08 (three separate 'review your own PR' issues) into a
  maintainer action in implementation.md/issues.md instead of filing them.
- Renumbered the issues/ backlog after the above withdrawals/collapses and
  fixed the 'already filed' PR checkboxes.

Refs #335

<!-- hive:carried-fence -->

Signed-off-by: quality <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update site search page

4 participants