eslint / zh-hans.docs.eslint.org

Simplified Chinese website
Apache License 2.0
15 stars 4 forks source link

Bug: Search result only include English and will be redirected to en site #113

Open kecrily opened 10 months ago

kecrily commented 10 months ago

URL(s)

Search box in all links

What did you do?

  1. Input any text in search box
  2. Click search result

What did you expect to happen?

Everything is fine

What actually happened?

  1. Only have English site content, Chinese content not included
image
  1. Clicking on the search results will redirect you to the English site

Participation

I can't seem to do anything about it.

Additional comments

No response

nzakas commented 10 months ago

We only have the blog on the english site. Isn't this the expected behavior?

kecrily commented 10 months ago

What I mean is that Chinese content cannot be searched in the search box of Chinese docs, and only the content of English site (include docs and blog) will appear in the search results.

nzakas commented 10 months ago

Oh, I see. Yeah, Algolia is only configured for English, and it's been a pain to work with so I'm not sure how easy it would be to have it also search Chinese. Maybe we should consider switching to PageFind so we can build the index as part of the website build.