Installation 

Install the package 

In the project root
composer require woit/si-llms-txt
vendor/bin/typo3 extension:setup
vendor/bin/typo3 cache:flush
Copied!

The package is available on Packagist. extension:setup adds the page fields and the cache tables cache_sillmstxt and cache_sillmstxt_tags.

Add the site set 

The extension only works for sites that depend on its site set. Add it in Site Management > Sites, tab General, field Sets for this Site, or directly in the site configuration:

config/sites/<identifier>/config.yaml
dependencies:
  - woit/si-llms-txt
Copied!

Remove a static llms.txt 

A file public/llms.txt is delivered by the web server before TYPO3 is called and hides the generated one. Delete it, and make sure no deployment script creates it again.

Check the installation 

curl https://example.org/llms.txt
curl https://example.org/de/llms.txt
curl https://example.org/de/<page-slug>.md
Copied!

All three return status 200. The HTML of a page contains <link rel="alternate" type="text/markdown" …>.