From 5778f73fac02a804b6a2ac3a90be33f0a051419c Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Wed, 10 Jun 2026 12:50:43 +0800 Subject: [PATCH] feat(docs): add SoftwareApplication schema, llms.txt, and AI crawler rules --- docs/app/layout.tsx | 85 +++++++++++++++++++++++++++++++++--------- docs/lib/metadata.ts | 28 ++++++++++++-- docs/public/llms.txt | 50 +++++++++++++++++++++++++ docs/public/robots.txt | 28 ++++++++++++++ 4 files changed, 171 insertions(+), 20 deletions(-) create mode 100644 docs/public/llms.txt diff --git a/docs/app/layout.tsx b/docs/app/layout.tsx index 22ecdf2a4..c8bf31ec2 100644 --- a/docs/app/layout.tsx +++ b/docs/app/layout.tsx @@ -24,29 +24,80 @@ export const metadata: Metadata = { }, }; +const WEBSITE_SCHEMA = { + "@context": "https://schema.org", + "@type": "WebSite", + name: SITE_NAME, + url: SITE_URL, + description: DEFAULT_DESCRIPTION, + potentialAction: { + "@type": "SearchAction", + target: { + "@type": "EntryPoint", + urlTemplate: `${SITE_URL}/search?q={search_term_string}`, + }, + "query-input": "required name=search_term_string", + }, +} as const; + +const SOFTWARE_APP_SCHEMA = { + "@context": "https://schema.org", + "@type": "SoftwareApplication", + name: SITE_NAME, + url: SITE_URL, + description: DEFAULT_DESCRIPTION, + applicationCategory: "Database Management", + operatingSystem: ["Windows", "macOS", "Linux", "Docker"], + offers: { + "@type": "Offer", + price: "0", + priceCurrency: "USD", + }, + author: { + "@type": "Organization", + name: SITE_NAME, + url: SITE_URL, + }, + releaseNotes: `${SITE_URL}/en/changelog`, + screenshot: `${SITE_URL}/screenshot-dark.png`, + featureList: [ + "Multiple database support (MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, ClickHouse, SQL Server, Oracle)", + "AI-powered SQL generation and explanation", + "MCP Server integration for AI coding agents", + "Schema browser and diff tools", + "Data grid with inline editing", + "SSH tunnel support", + "Docker self-hosting", + ], +} as const; + +const ORG_SCHEMA = { + "@context": "https://schema.org", + "@type": "Organization", + name: SITE_NAME, + url: SITE_URL, + description: DEFAULT_DESCRIPTION, + sameAs: [ + "https://github.com/t8y2/dbx", + "https://www.npmjs.com/package/@dbx-app/mcp-server", + ], +} as const; + export default function RootLayout({ children }: { children: ReactNode }) { return (