-
Notifications
You must be signed in to change notification settings - Fork 29
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: enforce string format to ensure Algolia search indexing functions correctly #902
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Tonic UI Demo
|
…e-only strings Co-authored-by: codiumai-pr-agent[bot] <138128286+codiumai-pr-agent[bot]@users.noreply.github.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v2 #902 +/- ##
=======================================
Coverage 74.91% 74.91%
=======================================
Files 378 378
Lines 6166 6166
=======================================
Hits 4619 4619
Misses 1547 1547
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…ns correctly (#902) * docs: enforce string format to ensure Algolia search indexing functions correctly * refactor: improve the string validation function to exclude whitespace-only strings Co-authored-by: codiumai-pr-agent[bot] <138128286+codiumai-pr-agent[bot]@users.noreply.github.com> --------- Co-authored-by: codiumai-pr-agent[bot] <138128286+codiumai-pr-agent[bot]@users.noreply.github.com>
…ns correctly (#902) * docs: enforce string format to ensure Algolia search indexing functions correctly * refactor: improve the string validation function to exclude whitespace-only strings Co-authored-by: codiumai-pr-agent[bot] <138128286+codiumai-pr-agent[bot]@users.noreply.github.com> --------- Co-authored-by: codiumai-pr-agent[bot] <138128286+codiumai-pr-agent[bot]@users.noreply.github.com>
PR Type
documentation, enhancement
Description
Flex
component and using plain strings to ensure better search indexing.icon
property from the flattened data.Changes walkthrough 📝
sidebar-routes.js
Simplify sidebar route titles for better search indexing
packages/react-docs/config/sidebar-routes.js
Flex
component for titles.algolia-search-indexing.js
Enhance Algolia search indexing script with string validation
packages/react-docs/scripts/algolia-search-indexing.js
isNonEmptyString
utility function.icon
property from flattened data.title
andpath
.