davsclaus opened a new pull request, #1875:
URL: https://github.com/apache/camel-website/pull/1875

   Fixes #1872
   
   AI agents handed a `camel.apache.org` link should be able to find `llms.txt` 
without being told about it. Until now it was reachable only through the 
`Accept: text/markdown` rule in `.htaccess`.
   
   ## Changes
   - **Footer:** `llms.txt` goes after Sitemap in the bottom row, the 
site-index links (`data/chrome.yaml`). Hugo and the Antora UI both read that 
file, so the link appears on every website page and every documentation page. 
Footer anchors stay in an agent's HTML-to-text conversion, which a `<head>` tag 
usually does not.
   - **`<head>`:** `<link rel="alternate" type="text/plain" title="llms.txt: 
documentation index for AI tools">` on every page:
     - Hugo: `layouts/partials/header.html`, next to the RSS alternate.
     - Antora: `antora-ui-camel/src/partials/head-meta.hbs`, plus the rebuilt 
`public/_` copy, as earlier theme PRs did.
     - `text/plain` matches the Content-Type the server returns for the file.
   - No front-page mention: the footer already shows on the home page.
   
   ## Verification
   - Hugo build: the footer anchor and the `<head>` link render on `/`, 
`/blog/` and `/download/`, both relative like the existing Sitemap and RSS 
links (`./llms.txt`, `../llms.txt`).
   - `antora-ui-camel` `yarn build`: the bundle's `partials/head-meta.hbs` 
contains the link.
   - `yarn test`: 23 tests, all pass.
   - Not run locally: the full `yarn build` + `yarn checks` (link check). 
`public/llms.txt` exists after `build:post`, so the link should resolve in CI.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to