Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds Typesense-powered search to the Topper docs site by integrating the Docusaurus Typesense theme and wiring CI to re-index content after deployments.
Changes:
- Add Typesense DocSearch configuration and local env sample.
- Integrate
docusaurus-theme-search-typesenseand Typesense config into Docusaurus. - Extend the deploy workflow to run the Typesense scraper on
master.
Reviewed changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
typesense-docsearch-config.json |
Adds the Typesense DocSearch scraper configuration (index name, sitemap/start URLs, selectors). |
package.json |
Updates Docusaurus versions, adds the Typesense theme dependency, and introduces scripts for running Typesense + indexing via the scraper container. |
docusaurus.config.js |
Configures the Typesense search theme and reads Typesense connection details from env vars. |
.github/workflows/deploy.docusaurus.yml |
Runs indexing on master after deploying to Cloudflare Pages and injects env vars for build/index. |
.env.typesense.sample |
Documents expected Typesense env vars for local/Typesense Cloud usage. |
.gitignore |
Ignores local Typesense env file and Typesense data directory. |
README.md |
Minor wording/capitalization updates. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
f6eaaca to
ce10da4
Compare
|
🚀 Preview has been deployed.
|
ce10da4 to
5fefc5f
Compare
5fefc5f to
f3b0d8d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added search to the documentation using Typesense.
How it works: The search bar is registered as a Docusaurus theme and appears automatically in the navigation bar. A scraper crawls the built website and indexes the content into Typesense. On every
masterdeploy, the CI rebuilds and re-indexes automatically.Requirements: A Typesense instance needs to be provisioned and the following three secrets added to the repository.
Hosting options: A decision needs to be made regarding the hosting of this service.
Typesense Cloud - managed, free tier is 720 hours/10GB one-time, then ~$25/month;
Self-hosted - deploy Typesense into an existing Uphold server, which requires Docker and an open port.
Related Issues
SWY-482
Screenshots
Screen.Recording.2026-04-01.at.17.20.57.mov