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

[docs] For non-SSR language, internal search fall back to English #22902

Merged
merged 2 commits into from Oct 7, 2020
Merged

[docs] For non-SSR language, internal search fall back to English #22902

merged 2 commits into from Oct 7, 2020

Conversation

bicstone
Copy link
Contributor

@bicstone bicstone commented Oct 6, 2020

Closes #22901

For non-SSR language, internal search fall back to English.

in Japanese (non-SSR)

in Chinese (SSR)

eps1lon
eps1lon previously requested changes Oct 6, 2020
Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

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

Thanks. I'll let @oliviertassinari take a look at the algolia fix.

docs/src/modules/components/AppSearch.js Outdated Show resolved Hide resolved
@mui-pr-bot
Copy link

mui-pr-bot commented Oct 6, 2020

No bundle size changes comparing d9d60e6...a0018cf

Generated by 🚫 dangerJS against a0018cf

Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

Nice!

Getting ja working will be challenging. We don't server-side render the Japanese pages, Algolia can't extract the information.

To solve the problem, we would either need to server-side render all the pages. But I believe we would hit a performance issue (timeout in Netlify) or ask Algolia if it's fine to have https://docsearch.algolia.com/docs/config-file#javascript-rendering (basically, are they OK with paying the infra cost?).

@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation label Oct 6, 2020
@oliviertassinari oliviertassinari merged commit 11a4417 into mui:next Oct 7, 2020
@oliviertassinari
Copy link
Member

@bicstone Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[docs] Unable to internal search in non-SSR languages
4 participants