Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/api-reference/auth/sendVerificationEmail.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Comment on lines 14 to 16
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Explore the documentation structure and locate environment-variables references

# List the content directory structure
echo "=== Content directory structure ==="
find content -type d -name "docs" -o -name "api-reference" | head -20

# Find environment-variables documentation file
echo -e "\n=== Looking for environment-variables file ==="
fd -t f "environment-variables" content/

# Search for references to environment-variables
echo -e "\n=== References to environment-variables in mdx files ==="
rg "environment-variables" content/ --type mdx -l

# Check the file structure
echo -e "\n=== Directory structure of content ==="
ls -la content/ 2>/dev/null | head -20

Repository: logchimp/docs

Length of output: 872


🏁 Script executed:

#!/bin/bash
# View the complete context around lines 14-22 in the file
echo "=== Content of lines 10-25 from sendVerificationEmail.mdx ==="
sed -n '10,25p' content/api-reference/auth/sendVerificationEmail.mdx

Repository: logchimp/docs

Length of output: 966


Revert the URL path change—it points to a non-existent directory.

The URL was changed from self-hosting/environment-variables#mail to docs/environment-variables#mail, but the documentation structure shows the file is located at content/self-hosting/environment-variables.mdx. There is no docs directory in the content folder. The URL will be broken in the deployed documentation. Revert this change on both lines 15 and 22 to restore the correct path.

Additionally, fix the grammar: "if have configured [...] are configured" should be "if the [...] is configured":

✏️ Grammar and URL fix
-          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.
+          The email is only sent if the [SMTP mail
+          server](https://docs.logchimp.codecarrot.net/self-hosting/environment-variables#mail)
+          is configured at the time of deploying LogChimp.

And similarly for line 22:

-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.
+The email is only sent if the [SMTP mail server](https://docs.logchimp.codecarrot.net/self-hosting/environment-variables#mail) is configured at the time of deploying LogChimp.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
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.
The email is only sent if the [SMTP mail
server](https://docs.logchimp.codecarrot.net/self-hosting/environment-variables#mail)
is configured at the time of deploying LogChimp.
🤖 Prompt for AI Agents
In `@content/api-reference/auth/sendVerificationEmail.mdx` around lines 14 - 16,
Revert the broken link change so the URL points to the existing page by
replacing occurrences of
"https://docs.logchimp.codecarrot.net/docs/environment-variables#mail" with the
original "self-hosting/environment-variables#mail" in sendVerificationEmail
content, and fix the grammar in the sentence that currently reads "The email is
only sent if have configured [SMTP mail server] are configured..." to "The email
is only sent if the [SMTP mail server] is configured" (apply the same
grammatical fix to the other similar sentence where the SMTP link appears).

---

{/* 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.


<APIPage document={"./content/api-reference/openapi.yaml"} operations={[{"path":"/auth/email/verify","method":"post"}]} webhooks={[]} hasHead={false} />
29 changes: 29 additions & 0 deletions src/app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import type { MetadataRoute } from "next";
import {
mainSource,
selfHostingSource,
platformSource,
guideSource,
openApiSource,
developingSource,
} from "../lib/source";

const buildTime = new Date().toISOString();

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: buildTime,
})),
);
}
Loading