Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

add sitemap so google can crawl

Sarina Li8509fb113ddb
diff --git a/docs/src/app/sitemap.ts b/docs/src/app/sitemap.ts
new file mode 100644
index 0000000000..00acd5ebe8
--- /dev/null
+++ b/docs/src/app/sitemap.ts
@@ -0,0 +1,27 @@
+import { MetadataRoute } from 'next';
+import { source } from '@/lib/source';
+
+export default function sitemap(): MetadataRoute.Sitemap {
+ const baseUrl = 'https://cua.ai';
+
+ // Get all pages from fumadocs source
+ const pages = source.getPages();
+
+ // Map pages to sitemap entries
+ const docPages = pages.map((page) => ({
+ url: `${baseUrl}${page.url}`,
+ lastModified: new Date(),
+ changeFrequency: 'weekly' as const,
+ priority: page.url === '/docs' ? 1.0 : 0.8,
+ }));
+
+ // Add main docs page if not included
+ const mainDocsPage = {
+ url: `${baseUrl}/docs`,
+ lastModified: new Date(),
+ changeFrequency: 'weekly' as const,
+ priority: 1.0,
+ };
+
+ return [mainDocsPage, ...docPages];
+}