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] Skip components and hooks due to duplicate index #37539

Merged
merged 2 commits into from
Jun 12, 2023

Conversation

siriwatknp
Copy link
Member

@siriwatknp siriwatknp commented Jun 8, 2023

Problem

Go to one of the Base UI component and then search for Slider:

image

The result has 3 links:

  1. link to hook-api
  2. link to component-api
  3. link to demo

I think the last one is enough. It looks better because it groups the component API and hook API altogether.

Fix

According to our crawler, we can skip the DOM from being indexed by adding a className skip-algolia-crawler.


@siriwatknp siriwatknp changed the title [docs] Skip components and hooks from indexing [docs] Skip components and hooks due to duplicate index Jun 8, 2023
@siriwatknp siriwatknp added docs Improvements or additions to the documentation scope: docs-infra Specific to the docs-infra product labels Jun 8, 2023
@siriwatknp siriwatknp requested a review from a team June 8, 2023 03:36
@mui-bot
Copy link

mui-bot commented Jun 8, 2023

Netlify deploy preview

https://deploy-preview-37539--material-ui.netlify.app/

Bundle size report

No bundle size changes

Generated by 🚫 dangerJS against d6988b2

@DiegoAndai
Copy link
Member

This makes sense to me 👍🏼

@siriwatknp siriwatknp merged commit 5068695 into mui:master Jun 12, 2023
18 checks passed
@mnajdova
Copy link
Member

Nice catch Jun!

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 scope: docs-infra Specific to the docs-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants