From 5d7da9e59c09b3af3224bd53eb38380e78c4bfa9 Mon Sep 17 00:00:00 2001 From: Oleg Proskurin Date: Fri, 2 Jan 2026 19:13:31 +0700 Subject: [PATCH] fix: use trailing slashes --- .../src/app/(apps)/docs/api/flows/page.tsx | 8 +++---- .../app/(apps)/docs/api/generations/page.tsx | 8 +++---- .../src/app/(apps)/docs/api/images/page.tsx | 8 +++---- .../app/(apps)/docs/api/live-scopes/page.tsx | 8 +++---- apps/landing/src/app/(apps)/docs/api/page.tsx | 16 +++++++------- .../app/(apps)/docs/authentication/page.tsx | 6 ++--- .../src/app/(apps)/docs/generation/page.tsx | 8 +++---- .../src/app/(apps)/docs/images/page.tsx | 6 ++--- .../src/app/(apps)/docs/live-urls/page.tsx | 6 ++--- apps/landing/src/app/(apps)/docs/page.tsx | 12 +++++----- apps/landing/src/app/sitemap.ts | 20 ++++++++--------- .../components/docs/layout/DocsSidebar.tsx | 22 +++++++++---------- apps/landing/src/components/shared/Footer.tsx | 4 +--- apps/landing/src/config/footer.ts | 4 ++-- 14 files changed, 67 insertions(+), 69 deletions(-) diff --git a/apps/landing/src/app/(apps)/docs/api/flows/page.tsx b/apps/landing/src/app/(apps)/docs/api/flows/page.tsx index a0af1a9..de8f373 100644 --- a/apps/landing/src/app/(apps)/docs/api/flows/page.tsx +++ b/apps/landing/src/app/(apps)/docs/api/flows/page.tsx @@ -47,21 +47,21 @@ export default function FlowsAPIPage() {

- See Authentication for details on obtaining and using API keys. + See Authentication for details on obtaining and using API keys.

@@ -227,25 +227,25 @@ export default function APIOverviewPage() { - Pro Tip: Use aliases like @logo instead of UUIDs. See Working with Images to learn about aliases. + Pro Tip: Use aliases like @logo instead of UUIDs. See Working with Images to learn about aliases. diff --git a/apps/landing/src/app/(apps)/docs/images/page.tsx b/apps/landing/src/app/(apps)/docs/images/page.tsx index d1424f5..7ed502d 100644 --- a/apps/landing/src/app/(apps)/docs/images/page.tsx +++ b/apps/landing/src/app/(apps)/docs/images/page.tsx @@ -40,20 +40,20 @@ export default function ImagesPage() {

- Learn more about Live URLs → + Learn more about Live URLs →

diff --git a/apps/landing/src/app/sitemap.ts b/apps/landing/src/app/sitemap.ts index c204655..6283be4 100644 --- a/apps/landing/src/app/sitemap.ts +++ b/apps/landing/src/app/sitemap.ts @@ -12,62 +12,62 @@ export default function sitemap(): MetadataRoute.Sitemap { }, // Documentation - Guides { - url: `${baseUrl}/docs`, + url: `${baseUrl}/docs/`, lastModified: new Date(), changeFrequency: 'weekly', priority: 0.9, }, { - url: `${baseUrl}/docs/generation`, + url: `${baseUrl}/docs/generation/`, lastModified: new Date(), changeFrequency: 'weekly', priority: 0.8, }, { - url: `${baseUrl}/docs/images`, + url: `${baseUrl}/docs/images/`, lastModified: new Date(), changeFrequency: 'weekly', priority: 0.8, }, { - url: `${baseUrl}/docs/live-urls`, + url: `${baseUrl}/docs/live-urls/`, lastModified: new Date(), changeFrequency: 'weekly', priority: 0.8, }, { - url: `${baseUrl}/docs/authentication`, + url: `${baseUrl}/docs/authentication/`, lastModified: new Date(), changeFrequency: 'weekly', priority: 0.8, }, // Documentation - API Reference { - url: `${baseUrl}/docs/api`, + url: `${baseUrl}/docs/api/`, lastModified: new Date(), changeFrequency: 'weekly', priority: 0.8, }, { - url: `${baseUrl}/docs/api/generations`, + url: `${baseUrl}/docs/api/generations/`, lastModified: new Date(), changeFrequency: 'weekly', priority: 0.7, }, { - url: `${baseUrl}/docs/api/images`, + url: `${baseUrl}/docs/api/images/`, lastModified: new Date(), changeFrequency: 'weekly', priority: 0.7, }, { - url: `${baseUrl}/docs/api/flows`, + url: `${baseUrl}/docs/api/flows/`, lastModified: new Date(), changeFrequency: 'weekly', priority: 0.7, }, { - url: `${baseUrl}/docs/api/live-scopes`, + url: `${baseUrl}/docs/api/live-scopes/`, lastModified: new Date(), changeFrequency: 'weekly', priority: 0.7, diff --git a/apps/landing/src/components/docs/layout/DocsSidebar.tsx b/apps/landing/src/components/docs/layout/DocsSidebar.tsx index aaaf960..2147d7d 100644 --- a/apps/landing/src/components/docs/layout/DocsSidebar.tsx +++ b/apps/landing/src/components/docs/layout/DocsSidebar.tsx @@ -40,33 +40,33 @@ interface DocsSidebarProps { const navigationItems: NavItem[] = [ { label: 'Getting Started', - href: '/docs', + href: '/docs/', }, { label: 'Image Generation', - href: '/docs/generation', + href: '/docs/generation/', }, { label: 'Working with Images', - href: '/docs/images', + href: '/docs/images/', }, { label: 'Live URLs', - href: '/docs/live-urls', + href: '/docs/live-urls/', }, { label: 'Authentication', - href: '/docs/authentication', + href: '/docs/authentication/', }, { label: 'API Reference', - href: '/docs/api', + href: '/docs/api/', children: [ - { label: 'Overview', href: '/docs/api' }, - { label: 'Generations', href: '/docs/api/generations' }, - { label: 'Images', href: '/docs/api/images' }, - { label: 'Flows', href: '/docs/api/flows' }, - { label: 'Live Scopes', href: '/docs/api/live-scopes' }, + { label: 'Overview', href: '/docs/api/' }, + { label: 'Generations', href: '/docs/api/generations/' }, + { label: 'Images', href: '/docs/api/images/' }, + { label: 'Flows', href: '/docs/api/flows/' }, + { label: 'Live Scopes', href: '/docs/api/live-scopes/' }, ], }, ]; diff --git a/apps/landing/src/components/shared/Footer.tsx b/apps/landing/src/components/shared/Footer.tsx index 72a0cb8..201a40d 100644 --- a/apps/landing/src/components/shared/Footer.tsx +++ b/apps/landing/src/components/shared/Footer.tsx @@ -1,7 +1,7 @@ 'use client'; import Image from 'next/image'; -import { /* footerLinks, */ footerCopyright } from '@/config/footer'; +import { footerLinks, footerCopyright } from '@/config/footer'; export const Footer = () => { return ( @@ -20,7 +20,6 @@ export const Footer = () => { /> - {/* Navigation - hidden until sections are ready - */}
diff --git a/apps/landing/src/config/footer.ts b/apps/landing/src/config/footer.ts index cbd4220..9e141a4 100644 --- a/apps/landing/src/config/footer.ts +++ b/apps/landing/src/config/footer.ts @@ -1,6 +1,6 @@ export const footerLinks = [ - { label: 'Documentation', href: '#' }, - { label: 'API Reference', href: '#' }, + { label: 'Documentation', href: '/docs/' }, + { label: 'API Reference', href: '/docs/api/' }, { label: 'Pricing', href: '#' }, { label: 'Contact', href: '#' }, ];