Skip to content

Commit 4c386d6

Browse files
committed
chore: remove outdated documentation files for project structure, publishing to npm, quickstart guide, render service types, service connections, supported docker compose variables, supported registries, and testing
feat: add sitemap generation for dynamic pages in Next.js application
1 parent bc48414 commit 4c386d6

51 files changed

Lines changed: 33 additions & 7699 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/sitemap.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { MetadataRoute } from 'next';
2+
import { source } from '@/lib/source';
3+
4+
export const dynamic = 'force-static';
5+
6+
function getPages(tree: any): any[] {
7+
const pages: any[] = [];
8+
9+
function traverse(nodes: any[]) {
10+
for (const node of nodes) {
11+
if (node.type === 'page') {
12+
pages.push(node);
13+
} else if ('children' in node) {
14+
traverse(node.children);
15+
}
16+
}
17+
}
18+
19+
traverse(tree.children);
20+
return pages;
21+
}
22+
23+
export default function sitemap(): MetadataRoute.Sitemap {
24+
const pages = getPages(source.pageTree).map((page) => ({
25+
url: new URL(page.url, 'https://docs.deploystack.io').toString(),
26+
lastModified: page.lastModified,
27+
}));
28+
29+
return pages;
30+
}

docs-backup-2025-06-18T14-33-44-828Z/docs/deploystack/application-logo-configuration.mdx

Lines changed: 0 additions & 60 deletions
This file was deleted.

docs-backup-2025-06-18T14-33-44-828Z/docs/deploystack/deploystack-config-file.mdx

Lines changed: 0 additions & 259 deletions
This file was deleted.

0 commit comments

Comments
 (0)