Skip to content

Conversation

@codedbychavez
Copy link
Contributor

@codedbychavez codedbychavez commented Dec 11, 2025

Describe the purpose of your pull request

  • Modify the "See all results" link in Algolia's search modal/dialog via CSS to remove the count.

Related issues (only if applicable)

Before:

docs-before

After:

docs-after

How to test? (only if applicable)

Preview link: https://modify-see-all-results-text.docs-xmy.pages.dev/docs/search/

What part of the application were affected by the changes?

  • The Algolia search modal/dialog.

What should be tested?

  • Check if the count was removed from the "See all results" text.

Requirement checklist

  • I have validated my changes on a test/local environment.
  • I have tested that the code snippets I added work. (Leave unchecked if there are no new code snippets.)
  • I have added my changes to the V1 and V2 documentations.

@codedbychavez codedbychavez requested a review from a team as a code owner December 11, 2025 16:50
Copy link
Member

@laliconfigcat laliconfigcat left a comment

Choose a reason for hiding this comment

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

I think this can be configured without css modifications:
In this documentation https://docusaurus.io/docs/search#connecting-algolia
thre is a point to this documentation with algolia's full config.
https://docsearch.algolia.com/docs/api/#resultsfootercomponent

Could you please try it?

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 12, 2025

Deploying configcat-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5aeff60
Status: ✅  Deploy successful!
Preview URL: https://4d1180a8.docs-xmy.pages.dev
Branch Preview URL: https://modify-see-all-results-text.docs-xmy.pages.dev

View logs

@codedbychavez
Copy link
Contributor Author

I think this can be configured without css modifications: In this documentation https://docusaurus.io/docs/search#connecting-algolia thre is a point to this documentation with algolia's full config. https://docsearch.algolia.com/docs/api/#resultsfootercomponent

Could you please try it?

Hi @laliconfigcat

Thanks for the feedback. I made the changes. Let me know what you think.

import type { Config } from '@docusaurus/types';
import { themes as prismThemes } from 'prism-react-renderer';
import type * as Preset from '@docusaurus/preset-classic';
import { relative } from 'path';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unused import.

laliconfigcat
laliconfigcat previously approved these changes Dec 12, 2025
Copy link
Member

@laliconfigcat laliconfigcat left a comment

Choose a reason for hiding this comment

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

Thanks for the change!

@codedbychavez
Copy link
Contributor Author

Thanks for the change!

No prob. I am going to do the same for the blog.

`resultsFooterComponent` itself. The wrapper div created a duplicate
parent which makes the "See all results" text appear smaller.
@codedbychavez
Copy link
Contributor Author

Hi @laliconfigcat

I removed the wrapper div because DocSearch-HitsFooter is already the resultsFooterComponent itself. The wrapper div created a duplicate parent which makes the "See all results" text appear smaller.

export default function SearchBar() {
return (
<DocSearch
appId='0MLXBNIK0Q'
Copy link
Member

Choose a reason for hiding this comment

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

Could you please add a comment to the docusaurus config next to the appid, secret there that tells us that if we change those ids, we have to do it here too?

@codedbychavez codedbychavez merged commit 2790566 into master Dec 15, 2025
3 checks passed
@codedbychavez codedbychavez deleted the modify-see-all-results-text-in-search-box branch December 15, 2025 17:09
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.

3 participants