feat(docs): add filterable UI Components table and improve build performance (#38253)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-03-04 08:32:25 -05:00
committed by GitHub
parent 983b633972
commit ef4b1d674b
21 changed files with 1597 additions and 833 deletions

View File

@@ -460,6 +460,9 @@ function generateDatabaseMDX(name, db) {
.replace(/\\/g, '\\\\')
.replace(/"/g, '\\"');
// Inline the database data directly to avoid importing the full databases.json
const inlineData = JSON.stringify(db);
return `---
title: ${name}
sidebar_label: ${name}
@@ -487,9 +490,10 @@ under the License.
*/}
import { DatabasePage } from '@site/src/components/databases';
import databaseData from '@site/src/data/databases.json';
<DatabasePage name="${name}" database={databaseData.databases["${name}"]} />
export const databaseInfo = ${inlineData};
<DatabasePage name="${name}" database={databaseInfo} />
`;
}