Mity Docs Mity Docs for Mity Digital
llms.txt for Statamic Documentation

Options

llms.txt for Statamic is ready to use after installation with no further required configuration.

But we all do have some preferences for our Bard editor, right?

If you want to make changes to the Bard editor that llms.txt uses, or adjust caching behaviour, publish the config file:

1php artisan vendor:publish --tag=statamic-llms-txt-config

This will publish the config file to config/statamic-llms-txt.php. Look at this file - we've included comments throughout to help make it easy for you to understand how to use each option too.

Content

The Content options all adjust the behaviour of the Bard field used when editing your llms.txt file.

You can use the link_collections config option to choose which Collections are linkable from the anchor component of the Bard editor.

1'link_collections' => [
2 'pages',
3 'blog',
4],

This will only list Entries in the Pages or Blog Collections when browsing for Entries to link to.

You can set this to null to allow all Collections to be available. This is the default.

toolbar_mode

Your llms.txt may get long - and some like a lean floating toolbar, and others like fixed. This setting lets you choose which you prefer.

1// for a fixed toolbar
2'toolbar_mode' => 'fixed',
3 
4// for a floating toolbar
5'toolbar_mode' => 'floating',

Cache

Caching your llms.txt can help prevent it being rendered on each request. By default this is enabled, and uses your site's default cache driver.

enabled

Pretty self explanatory: set to true to enable the cache, or false to disable caching.

Default: true

duration

The life of the cache, in minutes, or set to null to remember forever.

Default: null

key

The key used for caching.

Default: mitydigital-statamic-llms-txt