diff --git a/packages/documentation/redirects.ts b/packages/documentation/redirects.ts index 4bf3c7bc..e07b8ba7 100644 --- a/packages/documentation/redirects.ts +++ b/packages/documentation/redirects.ts @@ -91,6 +91,9 @@ export const routeRules: Record = { "/docs/management/external-schema-composition": redirect( "/docs/schema-registry/external-schema-composition", ), + "/docs/schema-registry/management#create-a-new-project": redirect("/docs/schema-registry/management/projects#create-a-new-project"), + "/docs/schema-registry/management#conditional-breaking-changes": redirect("/docs/schema-registry/management/targets#conditional-breaking-changes"), + // Get started paths "/docs/get-started/**": redirect("/docs/schema-registry/get-started"), diff --git a/packages/documentation/src/routes/api/search.ts b/packages/documentation/src/routes/api/search.ts index 8c43e92e..e7b137f5 100644 --- a/packages/documentation/src/routes/api/search.ts +++ b/packages/documentation/src/routes/api/search.ts @@ -50,8 +50,8 @@ async function getChangelogStructuredData(): Promise { async function buildIndexes(): Promise { const source = await getSource(); - const { blog, caseStudies, productUpdates } = - await import("fumadocs-mdx:collections/server"); + // const { blog, caseStudies, productUpdates } = + // await import("fumadocs-mdx:collections/server"); const changelogStructuredData = getChangelogStructuredData(); @@ -69,58 +69,58 @@ async function buildIndexes(): Promise { })), ); - const caseStudyIndexes = await Promise.all( - caseStudies.map(async (entry) => { - const { structuredData } = await entry.load(); - const slug = pathToSlug(entry.info.path); - return { - breadcrumbs: ["Case Studies"], - description: entry.excerpt, - id: `/case-studies/${slug}`, - structuredData, - title: entry.title, - url: `/case-studies/${slug}`, - }; - }), - ); + // const caseStudyIndexes = await Promise.all( + // caseStudies.map(async (entry) => { + // const { structuredData } = await entry.load(); + // const slug = pathToSlug(entry.info.path); + // return { + // breadcrumbs: ["Case Studies"], + // description: entry.excerpt, + // id: `/case-studies/${slug}`, + // structuredData, + // title: entry.title, + // url: `/case-studies/${slug}`, + // }; + // }), + // ); - const productUpdateIndexes = await Promise.all( - productUpdates.map(async (entry) => { - const { structuredData } = await entry.load(); - const slug = pathToSlug(entry.info.path); - return { - breadcrumbs: ["Product Updates"], - description: entry.description, - id: `/product-updates/${slug}`, - structuredData, - title: entry.title ?? slug, - url: `/product-updates/${slug}`, - }; - }), - ); + // const productUpdateIndexes = await Promise.all( + // productUpdates.map(async (entry) => { + // const { structuredData } = await entry.load(); + // const slug = pathToSlug(entry.info.path); + // return { + // breadcrumbs: ["Product Updates"], + // description: entry.description, + // id: `/product-updates/${slug}`, + // structuredData, + // title: entry.title ?? slug, + // url: `/product-updates/${slug}`, + // }; + // }), + // ); - const blogIndexes = await Promise.all( - blog.map(async (entry) => { - const { structuredData } = await entry.load(); - const slug = entry.info.path - .replace(/\.mdx?$/, "") - .replace(/\/index$/, ""); - return { - breadcrumbs: ["Blog"], - description: entry.description, - id: `/blog/${slug}`, - structuredData, - title: entry.title ?? slug, - url: `/blog/${slug}`, - }; - }), - ); + // const blogIndexes = await Promise.all( + // blog.map(async (entry) => { + // const { structuredData } = await entry.load(); + // const slug = entry.info.path + // .replace(/\.mdx?$/, "") + // .replace(/\/index$/, ""); + // return { + // breadcrumbs: ["Blog"], + // description: entry.description, + // id: `/blog/${slug}`, + // structuredData, + // title: entry.title ?? slug, + // url: `/blog/${slug}`, + // }; + // }), + // ); return [ ...docsIndexes, - ...caseStudyIndexes, - ...productUpdateIndexes, - ...blogIndexes, + // ...caseStudyIndexes, + // ...productUpdateIndexes, + // ...blogIndexes, ]; }