import {getPagesUnderRoute} from "nextra/context"; import Link from "next/link"; interface Page { name: string; route: string; children?: Page[]; meta?: Record; frontMatter?: any; } export function HowToGuideIndex({ more = "Read the guide" }) { const howTo = getPagesUnderRoute("/how-to-guides"); const deploy = getPagesUnderRoute("/docs/deployment"); // combine howTo and deploy const allGuides = [...howTo, ...deploy]; return allGuides .slice() .sort((a: Page, b: Page) => { const aTitle = a.frontMatter?.title || a.meta?.title || a.name; const bTitle = b.frontMatter?.title || b.meta?.title || b.name; return aTitle.localeCompare(bTitle); }) .filter((page: Page) => { return page.name !== "overview"; }) .map((page: Page) => { return (
{page.frontMatter?.title || page.meta?.title || page.name}

{page.meta?.description}{" "} {more + " →"}

); }); }