This is an automated email from the ASF dual-hosted git repository.
spetz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iggy-website.git
The following commit(s) were added to refs/heads/main by this push:
new 0d0db59c feat(site): add sitemap, robots.txt, llms.txt and page
metadata (#77)
0d0db59c is described below
commit 0d0db59c9073ccae6642cd66789d243af9f12d7e
Author: Justin Mclean <[email protected]>
AuthorDate: Thu Sep 3 17:11:50 2026 +1000
feat(site): add sitemap, robots.txt, llms.txt and page metadata (#77)
`/sitemap.xml`, `/robots.txt` and `/llms.txt` all returned 404, and the
only metadata in the tree was a title, a description and a favicon.
- `sitemap.ts` — 109 URLs: all docs pages, published posts, and the
hand-written routes. Those are listed in `src/lib/site.ts`; a static
export has nothing to discover them from, so a new page under `(site)/`
needs adding there.
- `robots.ts` — allow all, pointing at the sitemap.
- `llms.txt/route.ts` — an [llms.txt](https://llmstxt.org) index built
with `fumadocs-core`'s `llms()` helper, so it tracks `meta.json` instead
of duplicating it. It says plainly that Iggy is a server and there's no
API on this domain to call, which is what tools currently get wrong
about us.
- `layout.tsx` — `metadataBase`, per-route canonical, Open Graph and
Twitter cards, and `Organization` / `WebSite` / `SoftwareApplication`
JSON-LD.
- `not-found.tsx` — recovery links. We already return a real 404; it
just had nowhere to go but `/docs`.
- `(home)/page.tsx` — the "How it works" steps were `h4` under an `h2`,
skipping a level. Now `h3`; nothing moves visually.
Tested with `npm run build`: checked the three new files, the
canonical/`og:*`/JSON-LD in `out/index.html`, and the links in
`out/404.html`.
---
src/app/llms.txt/route.ts | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/app/llms.txt/route.ts b/src/app/llms.txt/route.ts
index 5fe8a4d0..9c25ea53 100644
--- a/src/app/llms.txt/route.ts
+++ b/src/app/llms.txt/route.ts
@@ -20,7 +20,7 @@
import { llms } from "fumadocs-core/source/llms";
import { source } from "@/lib/source";
import { publishedPosts } from "@/lib/blog";
-import { SITE_DESCRIPTION, SITE_URL, absoluteUrl } from "@/lib/site";
+import { SITE_DESCRIPTION, absoluteUrl } from "@/lib/site";
export const dynamic = "force-static";
@@ -42,10 +42,6 @@ https://github.com/apache/iggy.
- Command line and web administration: ${absoluteUrl("/docs/cli")} and
${absoluteUrl("/docs/web_ui")}
- Downloading a release: ${absoluteUrl("/downloads")}
- Contributing, or reaching the project's mailing lists and Discord:
${absoluteUrl("/community")}
-
-Every documentation page has a Markdown copy at the same path with a .md
-suffix, so ${absoluteUrl("/docs/server/security")} is also served as
-${SITE_URL}/docs/server/security.md.
`;
export function GET(): Response {