mirror of
https://github.com/Dokploy/website.git
synced 2026-06-15 20:25:25 +02:00
- Introduced `robots.ts` for defining robots.txt rules and sitemap URL. - Added `sitemap.ts` to generate a sitemap based on available documentation pages. - Enhanced the documentation page to include a "Copy as Markdown" button for easy copying of content. - Created `copy-markdown-button.tsx` component for clipboard functionality. - Implemented `llms.txt` route to provide a text-based overview of documentation links.
24 lines
489 B
TypeScript
24 lines
489 B
TypeScript
import { source } from "@/lib/source";
|
|
import type { MetadataRoute } from "next";
|
|
|
|
const baseUrl = "https://docs.dokploy.com";
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
const pages = source.getPages().map((page) => ({
|
|
url: `${baseUrl}${page.url}`,
|
|
lastModified: new Date(),
|
|
changeFrequency: "weekly" as const,
|
|
priority: 0.7,
|
|
}));
|
|
|
|
return [
|
|
{
|
|
url: baseUrl,
|
|
lastModified: new Date(),
|
|
changeFrequency: "monthly",
|
|
priority: 1,
|
|
},
|
|
...pages,
|
|
];
|
|
}
|