Skip to content

Commit aa5f058

Browse files
[WEB-10017] Add llms.txt hint to docs homepage for AI agents (#39703)
* Add llms.txt hint to docs homepage for AI agents Homepage now includes a hidden hint directing AI agents to /llms.txt, matching the pattern already used on other pages via page-agent-hint-block.html. * Add link/rel format to llm link on index
1 parent 9bd0dd4 commit aa5f058

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

hugo/layouts/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
{{- $bodyClass := $.Scratch.Get "bodyClass" -}}
4747
{{- $customClass := $.Params.customclass -}}
4848
<body class="{{ .Site.Language.Lang }} {{ if .Kind }}kind-{{.Kind}}{{ end }} {{ if .IsPage }} {{ replace $.Type "/" "-" }} {{ else }} {{ .Section }} {{ end }} {{ $bodyClass }} {{ $customClass }} {{ if .Site.Params.announcement_banner }}announcement{{ end }}">
49-
49+
<div style="position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0" class="exclude-from-md sr-only">For AI agents: A documentation index is available at <link href="/llms.txt" rel="describedby">/llms.txt</link>.
50+
</div>
5051

5152
{{ partial "header/header.html" . }}
5253

0 commit comments

Comments
 (0)