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
3 changes: 3 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ Host: https://docs.arcade.dev

# Sitemaps
Sitemap: https://docs.arcade.dev/sitemap.xml

# AI Agent Resources
# https://docs.arcade.dev/llms.txt
18 changes: 18 additions & 0 deletions tests/sitemap.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { readFileSync } from "node:fs";
import { join } from "node:path";
import { expect, test } from "vitest";

test("sitemap lists expected URLs", async () => {
Expand Down Expand Up @@ -33,3 +35,19 @@ test("sitemap lists expected URLs", async () => {
}
}
});

test("robots.txt references the sitemap", () => {
const robotsPath = join(process.cwd(), "public", "robots.txt");
const robotsContent = readFileSync(robotsPath, "utf-8");

expect(robotsContent).toContain(
Copy link
Contributor

Choose a reason for hiding this comment

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

@evantahler Shouldn't it also reference llms.txt? Since, technically, agents be bots?

"Sitemap: https://docs.arcade.dev/sitemap.xml"
);
});

test("robots.txt references llms.txt", () => {
const robotsPath = join(process.cwd(), "public", "robots.txt");
const robotsContent = readFileSync(robotsPath, "utf-8");

expect(robotsContent).toContain("# https://docs.arcade.dev/llms.txt");
});