🎥 Make videos programmatically with React
Elements: Mark gallery cards for Algolia exclusion (#11202)
Igor Samokhovetsb57e3c9bacf1
diff --git a/packages/docs/src/components/Elements/ElementLibrary.tsx b/packages/docs/src/components/Elements/ElementLibrary.tsxindex 79c01720f7..6b32196cd1 100644--- a/packages/docs/src/components/Elements/ElementLibrary.tsx+++ b/packages/docs/src/components/Elements/ElementLibrary.tsx@@ -149,7 +149,13 @@ const ElementGrid: React.FC<{readonly sourceCodeBySlug: Readonly<Record<string, string>>;}> = ({definitions, prefersReducedMotion, sourceCodeBySlug}) => {return (- <ul className={styles.grid} role="list">+ // The Algolia recordExtractor must remove this subtree before extracting records.+ // This marker requires explicit crawler configuration; it is not built in.+ <ul+ className={styles.grid}+ role="list"+ data-algolia-exclude="element-cards"+ >{definitions.map((definition) => {const sourceCode = sourceCodeBySlug[definition.slug];if (!sourceCode) {