Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "Search Results: Display 'No Results Found'" Message Instead of 'undefined' #438

Open
damiansire opened this issue Aug 29, 2024 · 3 comments
Labels
help wanted is likely non-trival and help is wanted status: needs investigation triage needs further investigation upstream relates to an upstream package

Comments

@damiansire
Copy link

Describe the documentation issue

When you search for something and it finds nothing in the documentation, show the message: " Try searching for: undefined "

image

What solution would you like to see?

Display 'No Results Found' or something other Message Instead of 'undefined'

@ybiquitous ybiquitous transferred this issue from stylelint/stylelint Aug 29, 2024
@ybiquitous
Copy link
Member

@damiansire Thanks for the report. I've transferred this issue to the website repository.

@ybiquitous ybiquitous added the status: needs investigation triage needs further investigation label Aug 29, 2024
@ybiquitous
Copy link
Member

Here is the current algolia config:

algolia: {
appId: '0T0U7YW7T7',
apiKey: '2164fcb348ebad562ba0340da4760f25',
indexName: 'stylelint',
},

@ybiquitous
Copy link
Member

I've updated the Algolia index configuration according to the following docs:

I added lvl0 to the index config:

image

Then, the suggestions increased, but undefined still remains:
image

However, the same issue happens also in https://docusaurus.io, so I guess it's a problem with a UI component of Docusaurus or Algolia. 🤔

image

@ybiquitous ybiquitous added help wanted is likely non-trival and help is wanted upstream relates to an upstream package labels Aug 29, 2024
@jeddy3 jeddy3 changed the title Search Results: Display 'No Results Found' Message Instead of 'undefined' Fix "Search Results: Display 'No Results Found'" Message Instead of 'undefined' Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted is likely non-trival and help is wanted status: needs investigation triage needs further investigation upstream relates to an upstream package
Development

No branches or pull requests

2 participants