Skip to content

Configuration

config/packages/llms_txt.yaml
llms_txt:
# The H1 of the file, the name of the site (required, unless a listener sets it), e.g. 'SILARHI'
title: null
# A short summary, rendered as a blockquote, e.g. 'Agence de développement Web PHP à Toulouse.'
summary: null
# Free Markdown rendered after the summary: paragraphs, lists, anything but headings
details: null
# The section of the routes carrying an "llms_txt" option without one of their own
route_section: 'Pages'
# Where llms-txt:dump writes the file, and where the controller looks for it first
dump_directory: '%kernel.project_dir%/public'
# "text/markdown" is more accurate, but browsers download it instead of showing it
content_type: 'text/plain; charset=UTF-8'
# Cache-Control max-age of the controller responses, in seconds
max_age: 3600
discovery:
# Adds the file to the Link header of the HTML pages, through WebLink: needs symfony/web-link
link_header: false
# The relation of the Link header and of the llms_txt_link() tag
rel: 'llms-txt'