Installation
Important
The extension supports Composer mode only. It depends on
league/html-to-markdown,
which is installed by Composer. Installations without Composer (classic
mode) are not supported: llms. would work, the Markdown
conversion of pages would fail.
Install the package
composer require woit/si-llms-txt
vendor/bin/typo3 extension:setup
vendor/bin/typo3 cache:flush
The package is available on
Packagist.
extension: adds the page fields and the cache tables
cache_ and cache_.
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:
dependencies:
- woit/si-llms-txt
Remove a static llms.txt
A file public/ 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
All three return status 200. The HTML of a page contains
<link rel="alternate" type="text/.