mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 07:43:16 +10:00
**Description:** - Updated mobile header with respect to latest designs <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added a new `showText` property to the `MenuSwitcher` component to control text visibility. - Added a `textSectionClassName` property to the `AvatarWithText` component for conditional text section styling. - Updated the `CommandDialog` and `DialogContent` components with new positioning and styling properties. - **Style Updates** - Adjusted text size responsiveness in the `Hero` component for various screen sizes. - Modified text truncation and input styling in the `Widget` component. - Changed the width of the `SheetContent` element in `MobileNavigation` and adjusted footer layout. - **Documentation** - Added instructions for certificate placement in `SIGNING.md`. - **Refactor** - Standardized type imports across various components and utilities for improved type checking. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Adithya Krishna <adithya@documenso.com> Signed-off-by: Adithya Krishna <aadithya794@gmail.com> Co-authored-by: David Nguyen <davidngu28@gmail.com>
42 lines
881 B
TypeScript
42 lines
881 B
TypeScript
import type { MetadataRoute } from 'next';
|
|
|
|
import { allBlogPosts, allGenericPages } from 'contentlayer/generated';
|
|
|
|
import { getBaseUrl } from '@documenso/lib/universal/get-base-url';
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
const baseUrl = getBaseUrl();
|
|
const lastModified = new Date();
|
|
|
|
return [
|
|
{
|
|
url: baseUrl,
|
|
lastModified,
|
|
},
|
|
...allGenericPages.map((doc) => ({
|
|
url: `${baseUrl}/${doc._raw.flattenedPath}`,
|
|
lastModified,
|
|
})),
|
|
{
|
|
url: `${baseUrl}/blog`,
|
|
lastModified,
|
|
},
|
|
...allBlogPosts.map((doc) => ({
|
|
url: `${baseUrl}/${doc._raw.flattenedPath}`,
|
|
lastModified,
|
|
})),
|
|
{
|
|
url: `${baseUrl}/open`,
|
|
lastModified,
|
|
},
|
|
{
|
|
url: `${baseUrl}/oss-friends`,
|
|
lastModified,
|
|
},
|
|
{
|
|
url: `${baseUrl}/pricing`,
|
|
lastModified,
|
|
},
|
|
];
|
|
}
|