fix(docs): resolve documentation search in documentation header#29245
fix(docs): resolve documentation search in documentation header#29245romitg2 merged 4 commits intocalcom:mainfrom
Conversation
|
Welcome to Cal.diy, @PSNY-23! Thanks for opening this pull request. A few things to keep in mind:
A maintainer will review your PR soon. Thanks for contributing! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughAdds a 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
|
Hi, The docs build now requires the Severity: remediation recommended | Category: reliability How to fix: Move pagefind to dependencies Agent prompt to fix - you can give this to your LLM of choice:
Qodo code review - free for open-source. |
Merge postbuild script into build command to ensure pagefind runs in all CI environments (Vercel, Turbo, yarn workspace).
Fixes #29241
How to reproduce
See issue #29241 for reproduction steps.
Summary
The “Search documentation” input box was not working due to a missing Pagefind package required by Nextra. This PR fixes the issue by adding the
pagefindpackage and configuring the docs build process correctly.Since Nextra’s search feature only works in production builds, a
postbuildscript has been added to the docspackage.jsonto ensure the search index is generated after the build step.Changes made
pagefinddependency required for documentation searchpostbuildscript to generate search index after docs buildTesting
yarn turbo run build --filter=@calcom/docsImage Demo:
Before
Search input was showing an error and not returning results.

After
Search works correctly and returns documentation results.

Mandatory Tasks (DO NOT REMOVE)