From 662547e04c4b05179e868f072a50c66b4fae2635 Mon Sep 17 00:00:00 2001 From: Vedant005 Date: Sat, 15 Nov 2025 23:44:48 +0530 Subject: [PATCH 1/2] feat: sitemap feature --- src/app/sitemap.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/app/sitemap.ts diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts new file mode 100644 index 0000000..801d7ad --- /dev/null +++ b/src/app/sitemap.ts @@ -0,0 +1,27 @@ +import type { MetadataRoute } from "next"; +import { + mainSource, + selfHostingSource, + platformSource, + guideSource, + openApiSource, + developingSource, +} from "../lib/source"; + +export default function sitemap(): MetadataRoute.Sitemap { + const sources = [ + mainSource, + selfHostingSource, + platformSource, + guideSource, + openApiSource, + developingSource, + ]; + + return sources.flatMap((s) => + s.getPages().map((page) => ({ + url: `https://docs.logchimp.codecarrot.net${page.url}`, + lastModified: new Date().toISOString(), + })), + ); +} From e01417899e1708da3a7b4a0c2fd6441580393155 Mon Sep 17 00:00:00 2001 From: Vedant005 Date: Sat, 15 Nov 2025 23:51:32 +0530 Subject: [PATCH 2/2] Revert "refactor: url change" This reverts commit 132572f08ce9d0d32ab9113eab711c40bda7300e. --- content/api-reference/auth/sendVerificationEmail.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/api-reference/auth/sendVerificationEmail.mdx b/content/api-reference/auth/sendVerificationEmail.mdx index dd9fe94..018dfcb 100644 --- a/content/api-reference/auth/sendVerificationEmail.mdx +++ b/content/api-reference/auth/sendVerificationEmail.mdx @@ -12,14 +12,14 @@ _openapi: Send a verification email to the user email address. The email is only sent if have configured [SMTP mail - server](https://docs.logchimp.codecarrot.net/self-hosting/environment-variables#mail) + server](https://docs.logchimp.codecarrot.net/docs/environment-variables#mail) are configured at the time of deploying LogChimp. --- {/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */} Send a verification email to the user email address. -The email is only sent if have configured [SMTP mail server](https://docs.logchimp.codecarrot.net/self-hosting/environment-variables#mail) are configured at the time of deploying LogChimp. +The email is only sent if have configured [SMTP mail server](https://docs.logchimp.codecarrot.net/docs/environment-variables#mail) are configured at the time of deploying LogChimp. \ No newline at end of file