From 33ae70ec021032afbb742b28468498745eacc8c7 Mon Sep 17 00:00:00 2001 From: Yuan <45984206+Yuan325@users.noreply.github.com> Date: Wed, 4 Jun 2025 16:00:48 -0700 Subject: [PATCH] docs: add llms-full.txt (#656) Generating a `/llms-full.txt` to provide LLM-friendly content (that doesn't require navigation). For more information, checkout https://llmstxt.org/. Preview: https://googleapis.github.io/genai-toolbox/previews/PR-656/llms-full.txt --- .hugo/hugo.toml | 9 +++++++-- .hugo/layouts/index.llms-full.txt | 14 ++++++++++++++ .hugo/layouts/{index.txt => index.llms.txt} | 0 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 .hugo/layouts/index.llms-full.txt rename .hugo/layouts/{index.txt => index.llms.txt} (100%) diff --git a/.hugo/hugo.toml b/.hugo/hugo.toml index d32fb96cd7..57ad32773e 100644 --- a/.hugo/hugo.toml +++ b/.hugo/hugo.toml @@ -51,11 +51,16 @@ enableRobotsTXT = true unsafe= true [outputFormats] - [outputFormats.TXT] + [outputFormats.LLMS] mediaType = "text/plain" baseName = "llms" isPlainText = true root = true + [outputFormats.LLMS-FULL] + mediaType = "text/plain" + baseName = "llms-full" + isPlainText = true + root = true [outputs] - home = ["HTML", "TXT"] + home = ["HTML", "RSS", "LLMS", "LLMS-FULL"] diff --git a/.hugo/layouts/index.llms-full.txt b/.hugo/layouts/index.llms-full.txt new file mode 100644 index 0000000000..1b56e98c04 --- /dev/null +++ b/.hugo/layouts/index.llms-full.txt @@ -0,0 +1,14 @@ +{{ .Site.Params.description }} + +{{ range .Site.Sections }} +# {{ .Title }} +{{ .Description }} +{{ range .Pages }} +# {{ .Title }} +{{ .Description }} +{{ .RawContent }} +{{ range .Pages }} +# {{ .Title }} +{{ .Description }} +{{ .RawContent }} +{{end }}{{ end }}{{ end }} diff --git a/.hugo/layouts/index.txt b/.hugo/layouts/index.llms.txt similarity index 100% rename from .hugo/layouts/index.txt rename to .hugo/layouts/index.llms.txt