A SilverStripe module that provides a textarea field for llms.txt content.
composer require werkbot/werkbot-llms-txt
- You will need to run
/dev/build
- There should now be a textarea field in the site's setting for the llms.txt content.
- /llms.txt will return this content.
- Optionally add links to the
<head>.
<link rel="llms" type="text/plain" href="$BaseHref/llms.txt">
<link rel="llms-full" type="text/plain" href="$BaseHref/llms-full.txt">
./vendor/bin/phpunit vendor/werkbot/werkbot-llms-txt
Generate documentation using Doctum:
./vendor/bin/doctum.php update doctum.config.php
View the api documentation:
start doctum_build/index.html
The seeder content and testing fixture come from https://github.com/henu-wang/llms-txt-examples/blob/main/examples/local-business.txt.